On Saturday, February 22, 2003, at 12:19 PM, [EMAIL PROTECTED] wrote:
[localhost:~/Getopt-ArgvFile-1.06] fz% make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;'
t/*.t
t/base..............FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/prefix............FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
Failed Test Status Wstat Total Fail Failed List of failed
----------------------------------------------------------------------- --------
t/base.t 5 5 100.00% 1-5
t/prefix.t 2 2 100.00% 1-2
Failed 2/2 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 255
So, is it at this point using the correct Test::Harness? If yes, what am I doing wrong? If no, what am I doing wrong?
Looks like maybe PERL5LIB isn't set anymore? It always need to be set in order to find stuff in your non-standard location.
Thanks again. (I already replied once to say that I'm positive PERL5LIB was set, but somehow this hasn't made it to the list yet.) The problem, it seems, is that the "-I/System/Library/Perl" overrides it :-( Viz. the difference if I run the tests manually with and without this flag:
[localhost:~/Getopt-ArgvFile-1.06] fz% echo $PERL5LIB
/Volumes/Unix/usrlocal/lib/perl5
[localhost:~/Getopt-ArgvFile-1.06] fz% perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/prefix............FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
Failed Test Status Wstat Total Fail Failed List of failed
-------------------------------------------------------------------------------
t/base.t 5 5 100.00% 1-5
t/prefix.t 2 2 100.00% 1-2
Failed 2/2 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay.
[localhost:~/Getopt-ArgvFile-1.06] fz% echo $PERL5LIB
/Volumes/Unix/usrlocal/lib/perl5
Files=2, Tests=7, 2 wallclock secs ( 0.85 cusr + 0.31 csys = 1.16 CPU)
[localhost:~/Getopt-ArgvFile-1.06] fz% perl -Iblib/arch -Iblib/lib -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base......ok
t/prefix....ok
All tests successful.
Files=2, Tests=7, 1 wallclock secs ( 0.86 cusr + 0.37 csys = 1.23 CPU)So, is there a workaround to force the use of the newer Test::Harness in "make test"?
