develooper Front page | perl.perl5.porters | Postings from November 2003

Re: [PATCH 5.8.2 @21574] make tests relocatable

Thread Previous | Thread Next
Alan Burlison
November 13, 2003 13:53
Re: [PATCH 5.8.2 @21574] make tests relocatable
Message ID:
Ilya Zakharevich wrote:

> It is crucial that an individual test can be run without the
> intervention of TEST:
>   ./perl t/op/stat.t
> to provide as small "Perl-related environment" as possible.  E.g.,
> consider line-ending bugs;  if
>   ./perl t/TEST op/stat.t
> fails, I do not know whether I should debug t/TEST, or t/op/stat.t.

In the ./perl case you already have to set LD_LIBRARY_PATH to get it to work 
if you build with, setting PERL5LIB in the environment is hardly 
a great burden.  The problem with the existing "BEGIN { ... }" junk is that 
it BREAKS any attempt to use PERL5LIB  as it forcibly overwrites @INC, so 
you can't run the tests from anywhere other than $SRC/t.  Adding yet another 
environment variable (PERLTEST_KEEP_INC) seems to be overly complicated whe 
we could just rip out all the BEGIN blocks, get TEST to set PERL5LIB 
properly and simplify the whole mess.

Alan Burlison

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