httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Perl test framework, TestConfig, and debugging A::T
Date Sun, 18 Jan 2004 08:14:38 GMT
Stas Bekman wrote:
> Stas Bekman wrote:
> 
>> I've reproduced the problem:
>>
>> setenv APACHE /home/stas/httpd/1.3-dynamic/bin/httpd
>> t/TEST -v -trace=debug -port select
>> t/TEST -v -trace=debug
>>
>> one the first run, extra.conf.in is parsed:
>>
>> Including /tmp/bug-reporting-skeleton-mp1/t/conf/extra.conf config file
>> generating conf/extra.conf from 
>> /tmp/bug-reporting-skeleton-mp1/t/conf/extra.conf.in
>> [...]
>> saving config data to apache_test_config.pm
>>
>>
>> on the second run, extra.conf.in is not parsed:
>>
>> Including /tmp/bug-reporting-skeleton-mp1/t/conf/extra.conf config file
>> Including /tmp/bug-reporting-skeleton-mp1/t/conf/extra.conf config file
>> [...]
>> saving config data to apache_test_config.pm
> 
> 
> It's the env variable APACHE that causes that reconfiguration. Till it 
> gets fixed please use:
> 
> perl Makefile.PL
> t/TEST -httpd /path/to/httpd -conf
> t/TEST -start
> t/TEST -run
> 
> or even better configure during 'Makefile.PL', assuming that you call:
> 
> Apache::TestMM::filter_args();
> Apache::TestRunPerl->generate_script();
> 
> which Geoff's skeleton does. So now you can do:
> 
> perl Makefile.PL -httpd /path/to/httpd
> t/TEST -start
> t/TEST -run
> 
> that's the approach I use everywhere.

William, the cvs version of Apache-Test now has this bug solved. So if you 
want to use that APACHE solution try it. Though the suggested above solution 
is more efficient, as it won't reconfigure the test suite on every t/TEST run.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message