NAME

Apache::TestRun - Run the test suite

SYNOPSIS

DESCRIPTION

The Apache::TestRun package controls the configuration and running of the test suite.

METHODS

Several methods are sub-classable, if the default behavior should be changed.

pre_configure

The pre_configure() method is executed before the configuration for Apache::Test is generated. So if you need to adjust the setup before httpd.conf and other files are autogenerated, this is the right place to do so.

For example if you don't want to inherit a LoadModule directive for mod_apreq.so but to make sure that the local version is used, you can sub-class Apache::TestRun and override this method in t/TEST.PL:

package My::TestRun;
use base 'Apache::TestRun';
use Apache::TestConfig;
__PACKAGE__->new->run(@ARGV);

sub pre_configure {
    my $self = shift;
    # Don't load an installed mod_apreq
    Apache::TestConfig::autoconfig_skip_module_add('mod_apreq.c');
}

Notice that the extension is .c, and not .so.