Archive::Zip install fails on Strawberry Perl - windows

I installed Strawberry Perl. I then tried to install Archive::Perl module using CPAN, failed.
I then tried installing other modules like Log::Log4perl, successful.
Platform -
Summary of my perl5 (revision 5 version 20 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=6.3, archname=MSWin32-x64-multi-thread
uname='Win32 strawberry-perl 5.20.1.1 #1 Mon Sep 15 13:26:45 2014 x64'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.8.3', gccosandvers=''
Error Summary -
Test Summary Report
-------------------
t/02_main.t (Wstat: 512 Tests: 47 Failed: 7)
Failed tests: 25, 32-34, 38, 46-47
Non-zero exit status: 2
Parse errors: Bad plan. You planned 141 tests but ran 47.
t/03_ex.t (Wstat: 1536 Tests: 17 Failed: 6)
Failed tests: 4, 6, 10, 13-14, 16
Non-zero exit status: 6
Files=16, Tests=140, 9 wallclock secs ( 0.09 usr + 0.13 sys = 0.22 CPU)
Result: FAIL
Failed 2/16 test programs. 13/140 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
PHRED/Archive-Zip-1.39.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PHRED/Archive-Zip-1.39.tar.gz
Stopping: 'install' failed for 'Archive::Zip'.
Failed during this command:
PHRED/Archive-Zip-1.39.tar.gz : make_test NO
Complete install output -
cpan> install Archive::Zip
Running install for module 'Archive::Zip'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\P\PH\PHRED\Archive-Zip-1.39.tar.gz ok
Configuring P/PH/PHRED/Archive-Zip-1.39.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Archive::Zip
Writing MYMETA.yml and MYMETA.json
PHRED/Archive-Zip-1.39.tar.gz
C:\strawberry\perl\bin\perl.exe Makefile.PL make=dmake -- OK
Running make for P/PH/PHRED/Archive-Zip-1.39.tar.gz
cp lib/Archive/Zip/ZipFileMember.pm blib\lib\Archive\Zip\ZipFileMember.pm
cp lib/Archive/Zip/MockFileHandle.pm blib\lib\Archive\Zip\MockFileHandle.pm
cp lib/Archive/Zip/DirectoryMember.pm blib\lib\Archive\Zip\DirectoryMember.pm
cp lib/Archive/Zip/FileMember.pm blib\lib\Archive\Zip\FileMember.pm
cp lib/Archive/Zip/NewFileMember.pm blib\lib\Archive\Zip\NewFileMember.pm
cp lib/Archive/Zip/MemberRead.pm blib\lib\Archive\Zip\MemberRead.pm
cp lib/Archive/Zip/Member.pm blib\lib\Archive\Zip\Member.pm
cp lib/Archive/Zip/Tree.pm blib\lib\Archive\Zip\Tree.pm
cp lib/Archive/Zip/Archive.pm blib\lib\Archive\Zip\Archive.pm
cp lib/Archive/Zip/FAQ.pod blib\lib\Archive\Zip\FAQ.pod
cp lib/Archive/Zip/BufferedFileHandle.pm blib\lib\Archive\Zip\BufferedFileHandle.pm
cp lib/Archive/Zip.pm blib\lib\Archive\Zip.pm
cp lib/Archive/Zip/StringMember.pm blib\lib\Archive\Zip\StringMember.pm
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e cp -- script/crc32 blib\script\crc32
pl2bat.bat blib\script\crc32
PHRED/Archive-Zip-1.39.tar.gz
C:\STRAWB~1\c\bin\dmake.exe -- OK
Running make test
"C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\li
b', 'blib\arch')" t/*.t
t/01_compile.t ................ ok
t/02_main.t ................... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/02_main.t ................... 1/141
# Failed test at t/02_main.t line 95.
# got: 'testdir/RwLiD4dp9b/'
# expected: 'testdir\RwLiD4dp9b/'
error: member not found
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 185.
Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x3123628), "testdir\\RwLiD4dp9b/") called at t/02_main.t line 128
# Failed test at t/02_main.t line 129.
# got: '2'
# expected: '0'
# Failed test at t/02_main.t line 130.
# Failed test at t/02_main.t line 133.
# Failed test at t/02_main.t line 146.
# got: 'testdir/RwLiD4dp9b/string.txt'
# expected: 'testdir\RwLiD4dp9b/string.txt'
error: member not found
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 185.
Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x3123628), "testdir\\RwLiD4dp9b/string.txt") called at t/02_main.t
line 175
# Failed test at t/02_main.t line 176.
# got: '2'
# expected: '0'
# Failed test at t/02_main.t line 177.
Can't use an undefined value as a symbol reference at t/common.pm line 163.
# Looks like you planned 141 tests but ran 47.
# Looks like you failed 7 tests of 47 run.
# Looks like your test exited with 2 just after 47.
t/02_main.t ................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 101/141 subtests
(less 3 skipped subtests: 37 okay)
t/03_ex.t ..................... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/03_ex.t ..................... 1/17 error: member not found
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 185.
Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x4c8468), "testdir\\cq6T6jDiTJ/testing.txt") called at examples/ext
ract.pl line 34
Extracting testdir\cq6T6jDiTJ/testing.txt from C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zip failed
t/03_ex.t ..................... 4/17 # Failed test at t/03_ex.t line 37.
# got: '65280'
# expected: '0'
Can't call method "desiredCompressionLevel" on an undefined value at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Arc
hive.pm line 257.
# Failed test at t/03_ex.t line 41.
# got: '512'
# expected: '0'
t/03_ex.t ..................... 8/17
# Failed test at t/03_ex.t line 55.
# got: 'testdir/cq6T6jDiTJ/testing.txt:100
# '
# expected: 'testdir\cq6T6jDiTJ/testing.txt:100
# '
error: testdir\cq6T6jDiTJ\testing.txt is neither a file nor a directory
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 355.
Archive::Zip::Archive::addFileOrDirectory(Archive::Zip::Archive=HASH(0x458588), "testdir\\cq6T6jDiTJ\\testing.txt") called at exampl
es/selfex.pl line 28
# Failed test 'extracted\testdir\cq6T6jDiTJ\testing.txt exists'
# at t/03_ex.t line 69.
# got: undef
# expected: '1'
error: Can't rename C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zip as C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zbk Permission
denied
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 472.
Archive::Zip::Archive::overwriteAs(Archive::Zip::Archive=HASH(0x637a98), "C:\\Users\\amurty\\AppData\\Local\\Temp\\testout-P4oqi.zip
") called at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 440
Archive::Zip::Archive::overwrite(Archive::Zip::Archive=HASH(0x637a98)) called at examples/updateTree.pl line 28
t/03_ex.t ..................... 14/17 # Failed test 'updateTree.pl create'
# at t/03_ex.t line 78.
# got: '512'
# expected: '0'
error: Can't rename C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zip as C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zbk Permission
denied
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 472.
Archive::Zip::Archive::overwriteAs(Archive::Zip::Archive=HASH(0x4e7a98), "C:\\Users\\amurty\\AppData\\Local\\Temp\\testout-P4oqi.zip
") called at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 440
Archive::Zip::Archive::overwrite(Archive::Zip::Archive=HASH(0x4e7a98)) called at examples/updateTree.pl line 28
# Failed test 'updateTree.pl update'
# at t/03_ex.t line 81.
# got: '512'
# expected: '0'
# Looks like you failed 6 tests of 17.
t/03_ex.t ..................... Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/17 subtests
t/04_readmember.t ............. The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/04_readmember.t ............. ok
t/05_tree.t ................... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/05_tree.t ................... ok
t/06_update.t ................. The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/06_update.t ................. ok
t/07_filenames_of_0.t ......... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/07_filenames_of_0.t ......... ok
t/08_readmember_record_sep.t .. skipped: Ignoring failing tests on Win32
t/09_output_record_sep.t ...... ok
t/10_chmod.t .................. The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/10_chmod.t .................. ok
t/11_explorer.t ............... ok
t/12_bug_47223.t .............. ok
t/13_bug_46303.t .............. ok
t/14_leading_separator.t ...... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/14_leading_separator.t ...... ok
t/15_decrypt.t ................ ok
t/16_decrypt.t ................ ok
Test Summary Report
-------------------
t/02_main.t (Wstat: 512 Tests: 47 Failed: 7)
Failed tests: 25, 32-34, 38, 46-47
Non-zero exit status: 2
Parse errors: Bad plan. You planned 141 tests but ran 47.
t/03_ex.t (Wstat: 1536 Tests: 17 Failed: 6)
Failed tests: 4, 6, 10, 13-14, 16
Non-zero exit status: 6
Files=16, Tests=140, 9 wallclock secs ( 0.09 usr + 0.13 sys = 0.22 CPU)
Result: FAIL
Failed 2/16 test programs. 13/140 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
PHRED/Archive-Zip-1.39.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PHRED/Archive-Zip-1.39.tar.gz
Stopping: 'install' failed for 'Archive::Zip'.
Failed during this command:
PHRED/Archive-Zip-1.39.tar.gz : make_test NO
cpan>

they changed something, because it works now.
Running make test
"C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\li
b', 'blib\arch')" t/*.t
t/01_compile.t ................ ok
t/02_main.t ................... ok
t/03_ex.t ..................... ok
t/04_readmember.t ............. ok
t/05_tree.t ................... ok
t/06_update.t ................. ok
t/07_filenames_of_0.t ......... ok
t/08_readmember_record_sep.t .. skipped: Ignoring failing tests on Win32
t/09_output_record_sep.t ...... ok
t/10_chmod.t .................. ok
t/11_explorer.t ............... ok
t/12_bug_47223.t .............. ok
t/13_bug_46303.t .............. ok
t/14_leading_separator.t ...... ok
t/15_decrypt.t ................ ok
t/16_decrypt.t ................ ok
t/17_101092.t ................. ok
t/18_bug_92205.t .............. ok
t/19_bug_101240.t ............. ok
All tests successful.
Files=19, Tests=272, 10 wallclock secs ( 0.09 usr + 0.14 sys = 0.23 CPU)
Result: PASS
Archive::Zip is up to date (1.46).

Related

Oracle EBS 12.9 adnodemgrctl stack

01/23/23-10:07:16 :: adnodemgrctl.sh version 120.11.12020000.12
Calling txkChkEBSDependecies.pl to perform dependency checks for ALL MANAGED SERVERS
ERROR DESCRIPTION:
(FATAL ERROR
PROGRAM : /oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkEBSDependecies.pl(/oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/bin/txkrun.pl)
TIME : Mon Jan 23 10:07:17 2023
FUNCTION: TXK::Process::run [ Level 3 ]
MESSAGES:
Command error: = 2304, = unzip -o /oracle/u02/VIS/fs2/inst/apps/VIS_vision/logs/appl/rgf/TXK/txkChkEBSDependecies_Mon_Jan_23_10_07_17_2023/formsapp.ear -d /oracle/u02/VIS/fs2/inst/apps/VIS_vision/logs/appl/rgf/TXK/txkChkEBSDependecies_Mon_Jan_23_10_07_17_2023
STACK TRACE
at /oracle/u02/VIS/fs2/EBSapps/appl/au/12.0.0/perl/TXK/Error.pm line 168
TXK::Error::abort('TXK::Error', 'HASH(0xd432e8)') called at /oracle/u02/VIS/fs2/EBSapps/appl/au/12.0.0/perl/TXK/Common.pm line 299
TXK::Common::doError('TXK::Process=HASH(0x19224d0)', 'Command error: = 2304, = unzip -o /oracle/u02/...', undef) called at /oracle/u02/VIS/fs2/EBSapps/appl/au/12.0.0/perl/TXK/Common.pm line 314
TXK::Common::setError('TXK::Process=HASH(0x19224d0)', 'Command error: = 2304, = unzip -o /oracle/u02/...') called at /oracle/u02/VIS/fs2/EBSapps/appl/au/12.0.0/perl/TXK/Process.pm line 449
TXK::Process::run('TXK::Process=HASH(0x19224d0)', 'HASH(0x1a22af0)') called at /oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkEBSDependecies.pl line 1163
TXK::RunScript::unzipFile('/oracle/u02/VIS/fs2/inst/apps/VIS_vision/logs/appl/rgf/TXK/tx...', '/oracle/u02/VIS/fs2/inst/apps/VIS_vision/logs/appl/rgf/TXK/tx...') called at /oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkEBSDependecies.pl line 815
TXK::RunScript::extractLatestFrmSrvJar() called at /oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkEBSDependecies.pl line 1248
TXK::RunScript::checkFormsApp() called at /oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkEBSDependecies.pl line 276
eval {...} called at /oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkEBSDependecies.pl line 182
require /oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkChkEBSDependecies.pl called at /oracle/u02/VIS/fs2/EBSapps/appl/au/12.0.0/perl/TXK/RunScript.pm line 105
TXK::RunScript::require('TXK::RunScript', '/oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txk...') called at /oracle/u02/VIS/fs2/EBSapps/appl/au/12.0.0/perl/TXK/Script.pm line 177
eval {...} called at /oracle/u02/VIS/fs2/EBSapps/appl/au/12.0.0/perl/TXK/Script.pm line 177
TXK::Script::run('TXK::Script=HASH(0x139e460)', '/oracle/u02/VIS/fs2/inst/apps/VIS_vision/logs/appl/rgf/TXK', '/oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txk...') called at /oracle/u02/VIS/fs2/EBSapps/appl/fnd/12.0.0/bin/txkrun.pl line 174
)
W A R N I N G *
Error while executing the perl script txkChkEBSDependecies.pl
We have determined that one or more checks failed for MANAGED SERVERS.
Please check logs for more details.
Validated the passed arguments for the option ebs-get-nmstatus
Connecting to Node Manager ...
Successfully Connected to Node Manager.
The Node Manager is up.
NodeManager log is located at /oracle/u02/VIS/fs2/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1
01/23/23-10:07:21 :: adnodemgrctl.sh: exiting with status 2
CAN ANY ONE HELP ME WITH THIS PROBLEM ?

How to pass sh command inside withCredentials for maven in Jenkins file

I'm always getting the not found error in the 6th line(Dsonar.branch.name) of the code from my Jenkinsfile below. If I swap the 6th line as Dsonar.sources it says the source is not found.
withCredentials([string(credentialsId: 'sonar_token', variable: 'token')]) {
sh"""
mvn sonar:sonar \
-Dsonar.projectKey=app \
-Dsonar.host.url=https://sonarqube.test.dev \
-Dsonar.login="917336a835asdf3528c863498"\
-Dsonar.exclusions=$env.WORKSPACE/apps/core-app/src/test
-Dsonar.branch.name=$env.BRANCH_NAME
-Dsonar.sources=$env.WORKSPACE/apps/
-Dsonar.exclusions=$env.WORKSPACE/registry/apps/support-app/src/test
-Dsonar.exclusions=src/apitest/**,src/test/**
"""
}
Error below,
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:13 min
[INFO] Finished at: 2022-01-18T07:15:59Z
[INFO] ------------------------------------------------------------------------
+ -Dsonar.branch.name=feature/docker-build
/home/jenkins/agent/workspace/nt-registry_feature_docker-build#tmp/durable-d9e51887/script.sh: 3: -Dsonar.branch.name=feature/docker-build: not found
I have used the function below instead sh command. It works as expected.
sonarResult = sonarqubeScan(
serverName: 'sonarqube',
sonarScannerExec: "$env.WORKSPACE/sonar-scanner-4.0.0.1744-linux/bin/sonar-scanner",
credentialsId: 'sonar_token',
sources: ".",
addlArgs: config.sonar.sonarAdditionalArguments
)

Jenkins - script block multiple bash commands doesn't work [duplicate]

I've defined If-Else in the jenkins script section. But it doesn't get executed at all. Any idea what's wrong.
script {
unit_test_result = sh (
script: ''' #!/bin/bash
mvn clean test | grep \'Tests run:\' | grep -v \'Time elapsed\'
if [[ $? == 1 ]];
then echo "No Unit tests to run!";
fi
''',
returnStdout: true
).trim()
}
But the if section doesn't run at all..
[Pipeline] script
[Pipeline]
[Pipeline]
+ grep Tests run:
+ mvn clean test
+ grep -v Time elapsed
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch Unit Tests
grep -v 'Time elapsed' exits with status code 1 only if every input line did not contain Time elapsed, but this will never happen as mvn seems to always print a summary.
According to this website, the output of mvn clean test looks as follows if there are tests
-------------------------------------------------------
T E S T S
-------------------------------------------------------
[...]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.547 sec
[...]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
and according to this question, as follows if there are no tests
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
In both cases, grep 'Tests run:' will print at least the summary in the last line. The summary never contains Time elapsed. Therefore grep -v 'Time elapsed' always exits with status code 0.
Try the following script instead:
#!/bin/bash
if ! mvn clean test | grep -q '^Tests run: [^0]'; then
echo "No Unit tests to run!";
fi
For the outputs shown in this question, we could use if mvn clean test | grep -Fxq 'There are no tests to run.' instead. But I found other sample outputs where mvn did not print that string; sometimes even no summary. The first script handles all of these cases too.

Installing Win32::Unicode::Console fails on Windows 10: Failed test at t/04_print.t

I am trying to install Win32::Unicode::Console on Windows 10. I am using Strawberry Perl. From the command prompt:
> perl --version
This is perl 5, version 30, subversion 1 (v5.30.1) built for MSWin32-x64-multi-thread
> chcp
Active code page: 65001
> perl Makefile.PL
Writing ppport.h
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for Win32::Unicode
Writing MYMETA.yml and MYMETA.json
> gmake
[...]
> gmake test
"C:\Strawberry\perl\bin\perl.exe" "-Iinc" -MExtUtils::Command::MM -e cp_nonempty -- Unicode.bs blib\arch\auto\Win32\Unicode\Unicode.bs 644
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t
t/00_compile.t ........... ok
t/01_load.t .............. ok
t/02_export.t ............ ok
t/03_encode.t ............ ok
t/04_print.t ............. 1/?
# Failed test at t/04_print.t line 14.
# STDOUT is:
# I ⥠Perl
# not:
# I ♥ Perl
# as expected
# Failed test at t/04_print.t line 15.
# STDOUT is:
# [ I ⥠Perl]
# not:
# [ I ♥ Perl]
# as expected
# Failed test at t/04_print.t line 16.
# STDOUT is:
# I ⥠Perl
#
# not:
# I ♥ Perl
#
# as expected
t/04_print.t ............. 5/? # Looks like you failed 3 tests of 13.
t/04_print.t ............. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/13 subtests
t/05_write.t ............. ok
t/06_dir_functions.t ..... ok
t/06_dir_methods.t ....... ok
t/06_dir_tree.t .......... ok
t/07_file.t .............. ok
t/08_error.t ............. ok
t/09_normalize.t ......... ok
t/10_read.t .............. ok
t/10_read_with_offset.t .. ok
t/11_write.t ............. ok
t/12_syswrite.t .......... ok
t/13_system.t ............ ok
t/15_flock.t ............. ok
t/15_flock_win32.t ....... ok
t/16_io_handle_like.t .... ok
t/17_slurp.t ............. ok
t/30_native.t ............ ok
t/31_native_import.t ..... ok
t/32_native_file.t ....... ok
t/33_native_dir.t ........ ok
t/34_args.t .............. ok
t/50_util.t .............. ok
Test Summary Report
-------------------
t/04_print.t (Wstat: 768 Tests: 13 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
Files=27, Tests=284, 25 wallclock secs ( 0.16 usr + 0.05 sys = 0.20 CPU)
Result: FAIL
Failed 1/27 test programs. 3/284 subtests failed.
gmake: *** [Makefile:1038: test_dynamic] Error 255
What can be the problem here?

Make test failing for Wordnet-Similarity

I am trying to install Wordnet-Similarity-2.05.
But it fails ath the "make test" step. Could someone Please explain why the "make test" is failing and what i could fix it?
Following are the details, starting from the failed test:
t/trace.t ......... 51/132
# Failed test at t/trace.t line 141.
# got: '4'
# expected: '0'
# lesk: The lines 'Overlaps: 1 x "the" 1 x "small" 1 x "of" 2 x "any" 1 x "in the" 1 x "or" 1 x "resembling the" 1 x "and" ' and 'Overlaps: 1 x "the" 1 x "small" 1 x "in the" 1 x "or" 1 x "of" 1 x "resembling the" 2 x "any" 1 x "and" ' differ
t/trace.t ......... 121/132 # Looks like you failed 1 test of 132.
t/trace.t ......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/132 subtests
t/vector.t ........ ok
t/vector_pairs.t .. ok
t/wn30loop.t ...... ok
t/wup.t ........... ok
Test Summary Report
-------------------
t/trace.t (Wstat: 256 Tests: 132 Failed: 1)
Failed test: 76
Non-zero exit status: 1
Files=22, Tests=2027, 134 wallclock secs ( 0.44 usr 0.06 sys + 128.26 cusr 4.94 csys = 133.70 CPU)
Result: FAIL
Failed 1/22 test programs. 1/2027 subtests failed.
make: *** [test_dynamic] Error 255
Thanks

Resources