Author: phred Date: Wed Jan 2 09:14:25 2008 New Revision: 608149 URL: http://svn.apache.org/viewvc?rev=608149&view=rev Log: Check for Apache::Test v1.30, needed to run the tests (t_write_test_lib). Don't run any tests if Apache::Test isn't installed.
Modified: perl/Apache-Reload/trunk/Makefile.PL Modified: perl/Apache-Reload/trunk/Makefile.PL URL: http://svn.apache.org/viewvc/perl/Apache-Reload/trunk/Makefile.PL?rev=608149&r1=608148&r2=608149&view=diff ============================================================================== --- perl/Apache-Reload/trunk/Makefile.PL (original) +++ perl/Apache-Reload/trunk/Makefile.PL Wed Jan 2 09:14:25 2008 @@ -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,14 @@ 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 {