This didn't occur to me until yesterday but we need a:t version 1.30 to
run the tests for apache::reload. Here's my thoughts on how to implement
it, any other suggestions?
Index: Makefile.PL
===================================================================
--- Makefile.PL (revision 606234)
+++ Makefile.PL (working copy)
@@ -5,6 +5,7 @@
my %prereqs = ();
my %mp2 = ( mod_perl2 => 1.99022 );
my %mp1 = ( mod_perl => 0 );
+my $at_min_ver = 1.30;
my $mp_gen;
if ($ENV{MOD_PERL_2_BUILD}) {
@@ -51,6 +52,12 @@
sub check_for_apache_test {
return unless eval {
require Apache::Test;
+ if ($Apache::Test::VERSION < $at_min_ver) {
+ warn "Apache::Test version is " . $Apache::Test::VERSION .
+ ", minimum version required is $at_min_ver" .
+ ", tests will be skipped\n";
+ die;
+ }
require Apache::TestMM;
require Apache::TestRunPerl;
1;
@@ -212,7 +219,15 @@
return $self->Apache::TestMM::test(@_) if $HAS_APACHE_TEST;
- return $self->SUPER::test(@_);
+ return <<EOF
+test::
[EMAIL PROTECTED]
[EMAIL PROTECTED] sorry, cannot run tests without a properly
[EMAIL PROTECTED] configured Apache-Test environment, mininum
[EMAIL PROTECTED] Apache::Test version needes is $at_min_ver
[EMAIL PROTECTED]
+EOF
+
}
sub clean {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]