Hi,

I want my test suite run once with mod_ssl.so loaded and once without. My 
TEST.PL looks this:

use strict;
use warnings FATAL => 'all';

use lib qw(lib);

use Apache::TestRunPerl ();

my $I=Apache::TestRunPerl->new;

$I->run(@ARGV);

Apache::TestConfig::autoconfig_skip_module_add('mod_ssl.c');

$I->refresh;

$I->run(@ARGV);

This works fine but I need to know in my handlers and in the tests itself what 
case is running. For the handlers I set a variable in extra.conf.in:

<IfModule mod_ssl.c>
    PerlSetVar HAVE_SSL 1
</IfModule>

But how do I know it in the tests? Is there another way except of scanning 
conf/httpd.conf?

Torsten

Attachment: pgpaUmwUI4E3t.pgp
Description: PGP signature

Reply via email to