Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Test fails: 01_Archive-Extract.t and TGZ files

by compused (Acolyte)
on Feb 16, 2012 at 12:08 UTC ( [id://954209]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Test fails: 01_Archive-Extract.t and TGZ files
in thread Test fails: 01_Archive-Extract.t and TGZ files

thanx...via cpan I installed the latest (0.58) Archive::Extract but 'make test' gives 154 failures and says it will only install with force; using the foo.pl file also gives 154 errors. Here it is (& is it ok/how do you do the forced install?:

(for all of it go to: http://paste2.org/p/1905968 )

cpan[2]> install Archive::Extract etc etc etc Writing Makefile for Archive::Extract Writing MYMETA.yml cp lib/Archive/Extract.pm blib/lib/Archive/Extract.pm BINGOS/Archive-Extract-0.58.tar.gz /share/MD0_DATA/.qpkg/Optware/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /share/MD0_DATA/.qpkg/Optware/bin/perl "-MExtUtils:: +Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_Archive-Extract.t .. 24/? # Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 + Bin: 1)' # at t/01_Archive-Extract.t line 478. # Failed test 'Found correct number of output files ()' # at t/01_Archive-Extract.t line 491. # got: '0' # expected: '2' # Failed test 'Found correct output file 'x/w'' # at t/01_Archive-Extract.t line 498. # got: undef # expected: 'x/w' # Failed test 'Output file '/share/MD0_DATA/.cpan/build_dir/Archive- +Extract-0.58-rulOTV/t/out/x/w' exists' # at t/01_Archive-Extract.t line 501. # Failed test 'Extract dir found' # at t/01_Archive-Extract.t line 503. Use of uninitialized value in -d at t/01_Archive-Extract.t line 505. # Failed test 'Extract dir exists' # at t/01_Archive-Extract.t line 505. # Failed test 'Extract dir is expected '/share/MD0_DATA/.cpan/build_ +dir/Archive-Extract-0.58-rulOTV/t/out/x'' # at t/01_Archive-Extract.t line 507. # got: undef etc etc t/01_Archive-Extract.t .. 1479/? # Looks like you failed 154 tests of +1584. t/01_Archive-Extract.t .. Dubious, test returned 154 (wstat 39424, 0x9 +a00) Failed 154/1584 subtests (less 538 skipped subtests: 892 okay) Test Summary Report ------------------- t/01_Archive-Extract.t (Wstat: 39424 Tests: 1584 Failed: 154) Failed tests: 87, 89-94, 98, 100-105, 111, 113-118, 122 124-129, 231, 233-238, 242, 244-249, 435 437-442, 446, 448-453, 507, 509-514, 518 520-525, 555, 557-562, 566, 568-573, 651 653-658, 662, 664-669, 711, 713-718, 722 724-729, 783, 785-790, 794, 796-801, 807 809-814, 818, 820-825, 831, 833-838, 842 844-849 Non-zero exit status: 154 Files=1, Tests=1584, 13 wallclock secs ( 1.46 usr 0.02 sys + 8.34 cu +sr 2.33 csys = 12.15 CPU) Result: FAIL # expected: '/share/MD0_DATA/.cpan/build_dir/Archive-Extract-0.58- +rulOTV/t/out/x'

Replies are listed 'Best First'.
Re^5: Test fails: 01_Archive-Extract.t and TGZ files
by bingos (Vicar) on Feb 16, 2012 at 22:21 UTC

    A forced install would be with force install instead of just install

    But before you do that, it does look like all the tests involving binary extractor programs failed for some reason.

    I surmise that you are using some sort of QNAP NAS device with the Optware packages installed and it's packaged perl

    What would be a big favour is to run the following in the Archive-Extract directory and post the output, please:

    perl -Ilib -MArchive::Extract -e 'print "$_\n" for map { join " ", $_, + Archive::Extract->$_ } qw(bin_gzip bin_unzip bin_tar bin_bunzip2 bin +_uncompress bin_unlzma bin_unxz);'

      Thanks again; output shows:

      [/share/MD0_DATA/.cpan/build_dir/Archive-Extract-0.58-SYDw3d] # < "$_\n" for map { join " ", $_, Archive::Extract->$_ } qw(bin_gzip bi +n_unzip bin_tar bin_bunzip2 bin_uncompress bin_unlzma bin_unxz);' bin_gzip /opt/bin/gzip bin_unzip /usr/bin/unzip bin_tar /opt/bin/tar bin_bunzip2 /usr/bin/bunzip2 bin_uncompress /opt/bin/uncompress bin_unlzma bin_unxz

      I notice there are two missing; I had previously downloaded the latest binaries thinking that might help:

      # /opt/bin/uncompress --version gunzip (gzip) 1.4 /opt/bin/gzip --version gzip 1.4 # /opt/bin/tar --version tar (GNU tar) 1.26 # /usr/bin/bunzip2 --version bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010. # /usr/bin/unzip --version /usr/bin/unzip: invalid option -- - BusyBox v1.10.3 (2010-05-17 05:57:25 UTC) multi-call binary

        Hi Bingos

        You set me on the right direction, as Archive::Extract will now install via cpan without error (see below)

        I installed the full version of 'unzip':

        wget http://downloads.sourceforge.net/infozip/unzip60.tar.gz

        so that now, instead of the link to busybox 1.10 we see:

        unzip --help UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler.

        and the sweet output of a successful install:

        cpan[1]> install Archive::Extract Going to read '/share/MD0_DATA/.cpan/Metadata' Database was generated on Thu, 16 Feb 2012 11:10:54 GMT Running install for module 'Archive::Extract' Running make for B/BI/BINGOS/Archive-Extract-0.58.tar.gz Checksum for /share/MD0_DATA/.cpan/sources/authors/id/B/BI/BINGOS/Arch +ive-Extract-0.58.tar.gz ok Scanning cache /share/MD0_DATA/.cpan/build_dir for sizes ...................................................................... +......DONE 'YAML' not installed, will not store persistent state CPAN.pm: Going to build B/BI/BINGOS/Archive-Extract-0.58.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Archive::Extract Writing MYMETA.yml cp lib/Archive/Extract.pm blib/lib/Archive/Extract.pm BINGOS/Archive-Extract-0.58.tar.gz /share/MD0_DATA/.qpkg/Optware/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /share/MD0_DATA/.qpkg/Optware/bin/perl "-MExtUtils:: +Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_Archive-Extract.t .. ok All tests successful. Files=1, Tests=1584, 12 wallclock secs ( 1.30 usr 0.06 sys + 7.96 cu +sr 2.63 csys = 11.95 CPU) Result: PASS BINGOS/Archive-Extract-0.58.tar.gz /share/MD0_DATA/.qpkg/Optware/bin/make test -- OK Running make install Installing /share/MD0_DATA/lib/perl5/5.14.2/Archive/Extract.pm Appending installation info to /share/MD0_DATA/lib/perl5/5.14.2/armv5t +el-linux-thread-multi/perllocal.pod BINGOS/Archive-Extract-0.58.tar.gz /opt/bin/make install -- OK

        However I think I need to reconfigure cpan via o conf as my previous Extract.pm has not been overwritten!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://954209]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found