Subject: | make test dependency not mentioned in Build.PL |
make test failed when it couldn't find File::Finder. Build.PL does not
specify this, so the CPAN shell couldn't automatically resolve the
dependency.
Perl 5.8.6 on OSX 10.4 Build output:
Writing Makefile for Perl::Tidy
cp lib/Perl/Tidy.pm blib/lib/Perl/Tidy.pm
cp bin/perltidy blib/script/perltidy
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/perltidy
Manifying blib/man1/perltidy.1
Manifying blib/man3/Perl::Tidy.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/test......ok
t/testsa....ok
t/testss....ok
All tests successful.
Files=3, Tests=3, 3 wallclock secs ( 1.51 cusr + 0.19 csys = 1.70 CPU)
/usr/bin/make test -- OK
Running make install
Installing /Library/Perl/5.8.6/Perl/Tidy.pm
Installing /usr/local/man/man1/perltidy.1
Installing /usr/local/man/man3/Perl::Tidy.3pm
Installing /usr/bin/perltidy
Writing
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/Perl/Tidy/.packlist
Appending installation info to
//System/Library/Perl/5.8.6/darwin-thread-multi-2level/perllocal.pod
/usr/bin/make install -- OK
Running make for E/EV/EVDB/Test-PerlTidy-20050726.tar.gz
Is already unwrapped into directory
/var/root/.cpan/build/Test-PerlTidy-20050726
CPAN.pm: Going to build E/EV/EVDB/Test-PerlTidy-20050726.tar.gz
/usr/bin/perl Build --makefile_env_macros 1
lib/Test/PerlTidy.pm -> blib/lib/Test/PerlTidy.pm
Manifying blib/lib/Test/PerlTidy.pm -> blib/libdoc/Test::PerlTidy.3pm
/usr/bin/make -- OK
Running make test
/usr/bin/perl Build --makefile_env_macros 1 test
t/is_file_tidy....Can't locate File/Finder.pm in @INC (...) at
/private/var/root/.cpan/build/Test-PerlTidy-20050726/blib/lib/Test/PerlTidy.pm
line 6.
BEGIN failed--compilation aborted at
/private/var/root/.cpan/build/Test-PerlTidy-20050726/blib/lib/Test/PerlTidy.pm
line 6.
Compilation failed in require at t/is_file_tidy.t line 6.
BEGIN failed--compilation aborted at t/is_file_tidy.t line 6.
# Looks like your test died before it could output anything.
t/is_file_tidy....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/list_files......Can't locate File/Finder.pm in @INC (...) at
/private/var/root/.cpan/build/Test-PerlTidy-20050726/blib/lib/Test/PerlTidy.pm
line 6.
BEGIN failed--compilation aborted at
/private/var/root/.cpan/build/Test-PerlTidy-20050726/blib/lib/Test/PerlTidy.pm
line 6.
Compilation failed in require at t/list_files.t line 6.
BEGIN failed--compilation aborted at t/list_files.t line 6.
# Looks like your test died before it could output anything.
t/list_files......dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/perltidy........Can't locate File/Finder.pm in @INC (...) at
/private/var/root/.cpan/build/Test-PerlTidy-20050726/blib/lib/Test/PerlTidy.pm
line 6.
BEGIN failed--compilation aborted at
/private/var/root/.cpan/build/Test-PerlTidy-20050726/blib/lib/Test/PerlTidy.pm
line 6.
Compilation failed in require at t/perltidy.t line 4.
BEGIN failed--compilation aborted at t/perltidy.t line 4.
t/perltidy........dubious
Test returned status 2 (wstat 512, 0x200)
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/is_file_tidy.t 255 65280 2 4 200.00% 1-2
t/list_files.t 255 65280 1 2 200.00% 1
t/perltidy.t 2 512 ?? ?? % ??
Failed 3/3 test scripts, 0.00% okay. 3/3 subtests failed, 0.00% okay.
make: *** [test] Error 2
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force