7
my $runner = Apache::TestRunPerl::Custom->new()->run(@ARGV);
10
package Apache::TestRunPerl::Custom;
12
use base qw(Apache::TestRunPerl);
22
my $conf_file = $self->_conf_file();
23
my $skip_file = File::Spec->catfile( $self->{test_config}{vars}{t_conf}, 'skip' );
25
for my $file ( $conf_file, $skip_file )
30
or die "Cannot unlink $file: $!";
34
$self->SUPER::configure(@_);
36
if ( $self->{test_config}{server}{rev} >= 2 )
38
my $apreq2 = $self->{test_config}->find_apache_module('mod_apreq2.so');
42
$self->_write_apreq_conf( "LoadModule apreq_module $apreq2" );
46
$self->_write_apreq_conf('');
47
open my $fh, '>', $skip_file
48
or die "Cannot write to $skip_file: $!";
53
$self->_write_apreq_conf('');
57
sub _conf_file { File::Spec->catfile( $_[0]->{test_config}{vars}{t_conf}, 'apreq2.conf' ) }
64
my $conf_file = $self->_conf_file();
66
open my $fh, '>', $conf_file
67
or die "Cannot write to $conf_file: $!";
68
print $fh $content . "\n"
69
or die "Cannot write to $conf_file: $!";
71
or die "Cannot write to $conf_file: $!";