-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I need to write a TEST.PL that starts an apache with mod_ssl loaded and run 
the tests and then starts an apache without mod_ssl loaded and runs the tests 
again.

How can I do that?

How can the actual test determine which case (with or without mod_ssl) is 
currently running?

Here is my TEST.PL so far.

#!perl

use strict;
use warnings FATAL => '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 = 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 
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBhSMEwicyCTir8T4RAuqtAKC9HxBG9c8n5fkQcCdMV1aAc3/08ACgnVUj
7x46Sv/rkaor/9mlweaF6MU=
=zvtl
-----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

Reply via email to