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

Why extra -I in "make test"?

Thread Next
From:
Michael G Schwern
Date:
June 29, 2001 21:25
Subject:
Why extra -I in "make test"?
Message ID:
20010630002526.A3008@blackrider
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   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
Follow me to certain death!
	http://www.unamerican.com/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About