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

Re: [PATCH 5.8.2 @21574] make tests relocatable

Thread Previous | Thread Next
From:
Alan Burlison
Date:
November 13, 2003 09:57
Subject:
Re: [PATCH 5.8.2 @21574] make tests relocatable
Message ID:
3FB3C5FA.2040206@sun.com
Ilya Zakharevich wrote:

> Running the following script in the root of Perl distribution will fix most of
> the tests in ./t to be relocatable.  All it does is replace
> 
>   @INC = '../lib';	# and some clones thereof
> 
> by
> 
>   @INC = '../lib' unless \$ENV{PERLTEST_KEEP_INC};
> 
> The patch which follows the script updates the tests tools for a run from a
> different directory.

While this is a good start, it isn't sufficient.  Lots of the tests fail if 
the test suite is run outside of $SRC/t because they assume they are being 
run from there - looking for random bits of the build environment such as 
README files is a common cause of breakage.  I'm patching stuff up as I go 
to get the test suite to pass when integrated into Solaris, I'll submit a it 
when I'm done.  It probably won't be a final fix, but it will show where the 
issues are.

-- 
Alan Burlison
--


Thread Previous | 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