You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-dev@httpd.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2004/06/23 20:56:10 UTC
new runtime option: -no-httpd
hi all.
we have been using Apache-Test to run our entire testing framework, which is
great - we can mix and match apache-related and non-apache related tests
under the same testing tree and it all works without a hitch.
the only problem is that when working on small testing units that don't
require apache the overhead Apache-Test introduces when cleaning,
configuring, starting, and stopping the server is significant. so, I'd like
to add a new runtime option to remove apache-based foo from the test running
process. the usage would be something like this
$ t/TEST -no-httpd t/TMCS/Constants/01compile.t -v
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /home/geoff/src/tmtest/unit/t/TEST
-no-httpd 't/TMCS/Constants/01compile.t' -v
[warning] skipping configuration: -no-httpd specified
t/TMCS/Constants/01compile....1..1
ok 1 - use TMCS::Constants;
ok
All tests successful.
the net result is that this takes, on average, half the time to run this
test when apache is taken out of the picture (, which is much better for
developers - reducing developer frustration is an important step toward the
road to overall test adoption :)
anyway, patch attached.
--Geoff
Re: new runtime option: -no-httpd
Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
>>may be use -nohttpd, so that you don't need to quote the key string?
>
>
> I did it that way to mirror run-tests and others, thinking that using a
> hyphen to join words was the norm for this project. but either is fine with me.
same here, just an idea... no-httpd is fine.
--
__________________________________________________________________
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
Re: new runtime option: -no-httpd
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> +1
:)
>> + if ($self->{opts}->{'no-httpd'}) {
>> + warning "skipping configuration: -no-httpd specified";
>
>
> may be it's better to say"skipping httpd configuration"?
sure, that's fine.
>> + return
>
>
> please don't forget ; if } is on the next line.
oops :)
> may be use -nohttpd, so that you don't need to quote the key string?
I did it that way to mirror run-tests and others, thinking that using a
hyphen to join words was the norm for this project. but either is fine with me.
--Geoff
Re: new runtime option: -no-httpd
Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> hi all.
>
> we have been using Apache-Test to run our entire testing framework, which is
> great - we can mix and match apache-related and non-apache related tests
> under the same testing tree and it all works without a hitch.
>
> the only problem is that when working on small testing units that don't
> require apache the overhead Apache-Test introduces when cleaning,
> configuring, starting, and stopping the server is significant. so, I'd like
> to add a new runtime option to remove apache-based foo from the test running
> process. the usage would be something like this
>
> $ t/TEST -no-httpd t/TMCS/Constants/01compile.t -v
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /usr/bin/perl /home/geoff/src/tmtest/unit/t/TEST
> -no-httpd 't/TMCS/Constants/01compile.t' -v
> [warning] skipping configuration: -no-httpd specified
> t/TMCS/Constants/01compile....1..1
> ok 1 - use TMCS::Constants;
> ok
> All tests successful.
>
> the net result is that this takes, on average, half the time to run this
> test when apache is taken out of the picture (, which is much better for
> developers - reducing developer frustration is an important step toward the
> road to overall test adoption :)
>
> anyway, patch attached.
+1
>
> + if ($self->{opts}->{'no-httpd'}) {
> + warning "skipping configuration: -no-httpd specified";
may be it's better to say"skipping httpd configuration"?
> + return
please don't forget ; if } is on the next line.
> + }
> +
> - $self->start;
> + $self->start unless $self->{opts}->{'no-httpd'};
>
> $self->run_tests;
>
> - $self->stop;
> + $self->stop unless $self->{opts}->{'no-httpd'};
> }
may be use -nohttpd, so that you don't need to quote the key string?
--
__________________________________________________________________
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