Apache::Test with and without mod_ssl
[prev]
[thread]
[next]
[Date index for 2004/10/31]
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I need to write a TEST.PL that starts an apache with mod_ssl loaded and run=
=20
the tests and then starts an apache without mod_ssl loaded and runs the tes=
ts=20
again.
How can I do that?
How can the actual test determine which case (with or without mod_ssl) is=20
currently running?
Here is my TEST.PL so far.
#!perl
use strict;
use warnings FATAL =3D> 'all';
use lib qw(lib);
use Apache::TestRunPerl ();
Apache::TestRunPerl->new->run(@ARGV);
package My::TestRun;
use base 'Apache::TestRun';
use Apache::TestConfig;
__PACKAGE__->new->run(@ARGV);
sub pre_configure {
my $I =3D shift;
Apache::TestConfig::autoconfig_skip_module_add('mod_ssl.c');
$I->SUPER::pre_configure();
}
It runs the tests twice but the httpd.conf is not recreated for the second=
=20
case. If I only run the second case mod_ssl is not loaded as expected.
What should I call to recreate the configuration for the second case?
Torsten
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBhSMEwicyCTir8T4RAuqtAKC9HxBG9c8n5fkQcCdMV1aAc3/08ACgnVUj
7x46Sv/rkaor/9mlweaF6MU=3D
=3Dzvtl
=2D----END PGP SIGNATURE-----
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
 |
Apache::Test with and without mod_ssl
Torsten =?iso-8859-1?q?F=F6rtsch?= 17:38 on 31 Oct 2004
|