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 Sat, 17 Jan 2004 06:02:14 GMT
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.


__________________________________________________________________
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