Subject: | Build issues on AIX - "make test" fails 202 of 205 tests |
Hello,
I'm running under perl 5.20.1.
"make test" fails when it throw the following error for most test cases:
t/base._calc_date_ymwd.t .. Can't locate tests.pl in @INC (@INC contains: ...) at t/base._calc_date_ymwd.t line 7.
Files=205, Tests=0, 8 wallclock secs ( 0.54 usr 0.20 sys + 2.76 cusr 0.85 csys = 4.35 CPU)
Result: FAIL
Failed 202/205 test programs. 0/0 subtests failed.
make: 1254-004 The error code from the last command is 2.
It fails since ./t isn't in @INC, so it fails on the "require test.pl;" command.
I can get the tests to pass by doing the following 1st:
export PERL5LIB=./t
make test
I also got it to work by hacking the Makefile without having to reset PERL5LIB. Did this by adding 't' to the list of dirs in test_harness. But I haven't figured out how to fix in Makefile.PL yet which would be simpler than fixing all your t/*.t programs to explicitly took in the "t" dir for your program.
/tmp/build/Date-Manip-6.81> diff Makefile Makefile.old
9972c9972
< PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)', 't')" $(TEST_FILES)
---
Show quoted text
> PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES)
/tmp/build/Date-Manip-6.81>
Hope to see a fix in your next release :)
Curtis