Mod Cplusplus CVS committal
Author : gr84b8
Project : mod_cplusplus
Module : test
Dir : mod_cplusplus/test/t
Modified Files:
CPPTest
Log Message:
update to make the test suite smarter (i.e. to not inherit configs from your httpd.conf
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/test/t/CPPTest,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- CPPTest 2001/05/22 19:52:15 1.1
+++ CPPTest 2001/12/30 15:44:35 1.2
@@ -1,18 +1,26 @@
#!/usr/local/bin/perl
use strict;
-package CPPTest;
use warnings FATAL => 'all';
use lib map { "$_/Apache-Test/lib" } qw(. ..);
+
+package MyTestConfig;
+
+our @ISA = qw(Apache::TestConfig);
+sub inherit_config {}
+
-use Apache::TestRunPerl ();
+use Apache::TestRun ();
+package CPPTest;
+our @ISA = qw(Apache::TestRun);
+
sub new_test_config {
my $self = shift;
- return $self->SUPER::new_test_config;
+ my $config = bless MyTestConfig->new($self->{conf_opts}), 'Apache::TestConfig';
+ return $config;
}
-our @ISA = qw(Apache::TestRun);
my $test_server = CPPTest->new();
$test_server->run(@ARGV);
|