develooper Front page | perl.perl5.porters | Postings from June 2001

Why extra -I in "make test"?

Thread Next
Michael G Schwern
June 29, 2001 21:25
Why extra -I in "make test"?
Message ID:
Using MakeMaker, "make test" does this:

PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t

Now, I can understand why -Iblib/arch and -Iblib/lib are there, but
why -I/usr/lib/perl/5.6.1 and -I/usr/share/perl/5.6.1?  As these are
hard-wired into perl, why is it necessary to reiterte them on the
command line?

This often causes annoyances when I have something like PERL5LIB set
to point at my personal library directory.  It leaves me unable to
override core libraries with personal versions (at least for the
purposes of running tests).

What's the rationale here?  Why is it necessary to put -I$PERL_ARCHLIB
and -I$PERL_LIB in the test run anyway?


Michael G. Schwern   <>
Perl6 Quality Assurance     <>	     Kwalitee Is Job One
Follow me to certain death!

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About