I installing perl-5.28.1 via perlbrew. Some tests fail:
../cpan/Tie-RefHash/t/storable.t ................................... ok
../cpan/Tie-RefHash/t/threaded.t ................................... skipped: -- threads aren't enabled in your perl, or Scalar::Util::weaken is missing
# Failed test 'timelocal year for 1970 1 2 0 0 0'
# at t/Local.t line 109.
# got: '170'
# expected: '70'
# Failed test 'timegm year for 1970 1 2 0 0 0'
# at t/Local.t line 124.
# got: '170'
# expected: '70'
# Looks like you failed 2 tests of 187.
../cpan/Time-Local/t/Local.t .......................................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/187 subtests
(less 8 skipped subtests: 177 okay)
../cpan/Time-Piece/t/01base.t ...................................... ok
...
Test Summary Report
-------------------
../cpan/Time-Local/t/Local.t (Wstat: 512 Tests: 187 Failed: 2)
Failed tests: 6, 12
Non-zero exit status: 2
Files=2653, Tests=1157584, 928 wallclock secs (116.85 usr 11.01 sys + 603.60 cusr 55.01 csys = 786.47 CPU)
Result: FAIL
makefile:835: recipe for target 'test_harness' failed
make: *** [test_harness] Error 2
##### Brew Failed #####
How to rerun only this failed test?
To run a single one of perl's test file, you can use
t/TEST ../cpan/Time-Local/t/Local.t
This would be run from the following directory:
cd "${PERLBREW_ROOT:-$HOME/perl5/perlbrew}"
cd build/perl-5.x.y/perl-5.x.y
See the What if make test doesn't work? section of the INSTALL file in the same folder for more on testing perl.
Related
I am using cpan -L local PDL::Graphics::PLplot. I am getting a failure message.
Test Summary Report
-------------------
t/plplot.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/plplot_library_tests.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=3, Tests=0, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.20 cusr 0.01 csys = 0.24 CPU)
Result: FAIL
Failed 2/3 test programs. 0/0 subtests failed.
Makefile:803: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 2
-> FAIL Installing PDL::Graphics::PLplot
When installing using cpanm I noticed I was missing some modules libpdl-stats-perl Cannot find hdf library, libdf.a, libplplotd.so, HDF, GD, Proj once those were installed it started working. I did have to install to a non standard perl directory.
I have installed bioperl on WSL Ubuntu 18.04 with sudo apt-get install bioperl bioperl-run. I tried to install Bio::Grep with cpanm but it failed. From build.log file it seems that something fails during testing:
#
# *****************************************************************************
# * Bioperl : FOUND *
# * Bioperl-run: FOUND *
# * Backend : No backend found in path. You should install the back-ends *
# * before running these tests. This way you make sure that the *
# * parsers work with your installed version of the back-end. *
# * EMBOSS : FOUND *
# *****************************************************************************
t/00.checkprereq.t ............ ok
# Failed test 'use Bio::Grep::Backend::Agrep;'
# at t/00.load.t line 14.
# Tried to use 'Bio::Grep::Backend::Agrep'.
# Error: UNIVERSAL does not export anything at ...
...
Test Summary Report
-------------------
t/00.load.t (Wstat: 1280 Tests: 12 Failed: 5)
Failed tests: 3-7
Non-zero exit status: 5
t/10.backends.all.t (Wstat: 65280 Tests: 133 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 344 tests but ran 133.
t/11.backends.guugle.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 1
Parse errors: Bad plan. You planned 0 tests but ran 1.
t/11.backends.re.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 1.
t/20.filter.t (Wstat: 65280 Tests: 17 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 46 tests but ran 17.
t/30.features.alignments.t (Wstat: 65280 Tests: 50 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 108 tests but ran 50.
t/30.features.updownstream.t (Wstat: 65280 Tests: 16 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 46 tests but ran 16.
t/40.utils.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 1.
t/50.synopsis.t (Wstat: 512 Tests: 9 Failed: 2)
Failed tests: 6-7
Non-zero exit status: 2
Files=13, Tests=242, 10 wallclock secs ( 0.11 usr 0.19 sys + 2.33 cusr 5.13 csys = 7.76 CPU)
Result: FAIL
Failed 9/13 test programs. 8/242 subtests failed.
-> FAIL Installing Bio::Grep failed
It seems that someone created ticket and encountered similar problem before but I did not find a solution.
The fix is simple: Remove the use UNIVERSAL ...; line.
wget https://cpan.metacpan.org/authors/id/L/LI/LIMAONE/Bio-Grep-v0.10.6.tar.gz
tar xvzf Bio-Grep-v0.10.6.tar.gz
cd Bio-Grep-v0.10.6
perl -pe's/^(?=use UNIVERSAL)/#/' -i~ lib/Bio/Grep/Backend/BackendI.pm
perl Makefile.PL && make test && make install
I need to download a program that needs some modules in Perl, all were installed normally but when I got to the part of installing the WWW :: Mechanize I could not and the following errors appeared:
Error 1:
t/dump.t ............................................ Test/Output.pm
did not return a true value at t/dump.t line 6.
BEGIN failed--compilation aborted at t/dump.t line 6.
#Looks like your test exited with 255 before it could output anything.
t/dump.t ................................. Dubious, test returned 255(wstat 65280, 0xff00)
Failed 6/6 subtests
Error 2:(I do not think that this error is who is disturbing the installation but even so I put)
t/local/overload.t ................................. skipped: Mysteriously
stopped passing, and I don't know why.
Test Summary Report:
Test Summary Report
-------------------
t/dump.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 6 tests but ran 0.
Files=59, Tests=752, 121 wallclock secs ( 0.73 usr 0.21 sys + 33.15 cusr 5.02 csys = 39.11 CPU)
Result: FAIL
Failed 1/59 test programs. 0/752 subtests failed.
Makefile:943: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
OALDERS/WWW-Mechanize-1.91.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports OALDERS/WWW-Mechanize-1.91.tar.gz
I start using Strawberry Perl and wanted to install some modules using the cpan command. But i receive the error message "Error code 255, while making 'test_dynamic'".
First i tried to install WWW::Mechanize::Firefox finding that i miss three other module: MozRepl::RemoteObject 0.39; Object::Import and Shell::Command. The first two of those 3 give the same error message. The Shell::Command installed whitout any error message.
MozRepl::RemoteObject 0.39:
Test Summary Report
-------------------
t/10-plugin-repl-enter.t (Wstat: 512 Tests: 3 Failed: 2)
Failed tests: 2-3
Non-zero exit status: 2
t/16-plugin-repl-home.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
t/18-plugin-repl-util-help_url_for.t (Wstat: 768 Tests: 4 Failed: 3)
Failed tests: 2-4
Non-zero exit status: 3
t/19-plugin-repl-util-doc_for.t (Wstat: 768 Tests: 7 Failed: 3)
Failed tests: 2-3, 5
Non-zero exit status: 3
t/20-plugin-json.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
Files=14, Tests=58, 6 wallclock secs ( 0.01 usr + 0.05 sys = 0.06 CPU)
Result: FAIL
Failed 5/14 test programs. 10/58 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
ZIGOROU/MozRepl-0.06.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 ZIGOROU/MozRepl-0.06.tar.gz
Stopping: 'test' failed for 'MozRepl'.
Object::Import
Test Summary Report
-------------------
t/04_handle.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 56 tests but ran 3.
Files=14, Tests=265, 3 wallclock secs ( 0.09 usr + 0.06 sys = 0.16 CPU)
Result: FAIL
Failed 1/14 test programs. 0/265 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
AMBRUS/Object-Import-1.004.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 AMBRUS/Object-Import-1.004.tar.gz
Stopping: 'install' failed for 'Object::Import'.
Failed during this command:
AMBRUS/Object-Import-1.004.tar.gz : make_test NO
I'm not a Perl programmer, just startet.
/edit: the other question is about another package. I read the cpantesters page and the packages should be OK. But could it be that there is something whit the 64-bit version. On the cpantesters site are all windows related entries are for win32:
http://www.cpantesters.org/distro/O/Object-Import.html#Object-Import-1.004
http://www.cpantesters.org/distro/M/MozRepl-RemoteObject.html#MozRepl-RemoteObject-0.39
/edit2: Tried to get some reports and run both installs again, now it looks like the MozRepl::RemoteObject went good, but the Object::Import didn't: So here is the error report from that:
Running install for module 'Object::Import'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\A\AM\AMBRUS\Object-Import-1.004.tar.gz ok
Scanning cache C:\STRAWB~1\cpan\build for sizes
............................................................................DONE
Configuring A/AM/AMBRUS/Object-Import-1.004.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Object::Import
Writing MYMETA.yml and MYMETA.json
AMBRUS/Object-Import-1.004.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for A/AM/AMBRUS/Object-Import-1.004.tar.gz
cp lib/Object/Import.pm blib\lib\Object\Import.pm
AMBRUS/Object-Import-1.004.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\lib', 'blib\arch')" t/*.t
t/00_require.t ... ok
t/01_basic.t ..... ok
t/02_auto.t ...... ok
t/03_bigint.t .... ok
t/04_handle.t ....
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 53/56 subtests
t/05_nometh.t .... ok
t/06_deref.t ..... ok
t/07_mary.t ...... ok
t/08_target.t .... ok
t/09_parm.t ...... ok
t/10_alias.t ..... ok
t/11_exporter.t .. ok
t/12_taint.t ..... ok
t/13_meta.t ...... ok
Test Summary Report
-------------------
t/04_handle.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 56 tests but ran 3.
Files=14, Tests=265, 3 wallclock secs ( 0.09 usr + 0.06 sys = 0.16 CPU)
Result: FAIL
AMBRUS/Object-Import-1.004.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 AMBRUS/Object-Import-1.004.tar.gz
Stopping: 'install' failed for 'Object::Import'.
I tried to install HTML::TreeBuilderX::ASP_NET with cpan on Windows 7.
I have strawberry perl setup.
Everything went smoothly until the end when I got the following. Is this something I should worry about?
Test Summary Report
-------------------
t/10-traits.t (Wstat: 65280 Tests: 3 Failed: 2)
Failed tests: 2-3
Non-zero exit status: 255
Parse errors: Bad plan. You planned 5 tests but ran 3.
t/boilerplate.t (Wstat: 0 Tests: 2 Failed: 0)
TODO passed: 1-2
Files=7, Tests=22, 3 wallclock secs ( 0.08 usr + 0.01 sys = 0.09 CPU)
Result: FAIL
Failed 1/7 test programs. 2/22 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'
ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz: make_test NO
then when installing WWW::Mechanize
I got
Test Summary Report
-------------------
t\local\back.t (Wstat: 256 Tests: 47 Failed: 1)
Failed test: 33
Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
TODO passed: 15-17, 19
Files=52, Tests=550, 247 wallclock secs ( 0.42 usr + 0.28 sys = 0.70 CPU)
Result: FAIL
Failed 1/52 test programs. 1/550 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'
JESSE/WWW-Mechanize-1.70.tar.gz
C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports JESSE/WWW-Mechanize-1.70.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
JESSE/WWW-Mechanize-1.70.tar.gz : make_test NO
It tells you that some tests failed and therefore the install will not proceed. The failed tests are in t/10-traits.t and the failed tests are 2 and 3. Whether you should worry about this depends on what the tests are and why they are failing.
These are the failing tests:
eval { HTML::TreeBuilderX::ASP_NET->new_with_traits( traits => ['htmlElement'] ) };
ok ( !$#, 'htmlElement trait construction is good!!' );
eval {
HTML::TreeBuilderX::ASP_NET->new_with_traits( traits => ['htmlElement'] );
HTML::Element->new('a', href => "__doPostBack('foo','bar')" )->httpRequest;
};
like ( $#, qr/<form>/, 'Success with use! (failed without the parent form)' );