[svn:modperl-modules] rev 135 - Apache-Scoreboard-1.0/trunk

[email protected] 5 Feb 2005 03:27:09 -0000
Newsgroups perl.modperl.modules.svn
Message-ID <[email protected]>
Author: stas
Date: Fri Feb  4 19:27:08 2005
New Revision: 135

Modified:
   Apache-Scoreboard-1.0/trunk/Makefile.PL
Log:
required changes to enable the new test suite


Modified: Apache-Scoreboard-1.0/trunk/Makefile.PL
==============================================================================
--- Apache-Scoreboard-1.0/trunk/Makefile.PL	(original)
+++ Apache-Scoreboard-1.0/trunk/Makefile.PL	Fri Feb  4 19:27:08 2005
@@ -5,17 +5,37 @@
 
 my $src = Apache::src->new;
 
+# enable 'make test|clean'
+use Apache::TestMM qw(test clean);
+# prerequisites
+
+my %require = (
+    "Apache::Test" => "1.10", # ipv6 fixes
+    "mod_perl"     => "1.18",
+);
+
+my @scripts = qw(t/TEST);
+
+# accept the configs from command line
+Apache::TestMM::filter_args();
+Apache::TestMM::generate_script('t/TEST');
+
 WriteMakefile(
-    'NAME'	=> 'Apache::Scoreboard',
-    'VERSION_FROM' => 'Scoreboard.pm',
-    'INC'       => $src->inc,
-    'DEFINE' => $src->define,
-    'TYPEMAPS' => $src->typemaps,
-    'dist'    => {
-        #PREOP => 'pod2text Scoreboard.pm > README',
-    },
+    NAME         => 'Apache::Scoreboard',
+    VERSION_FROM => 'Scoreboard.pm',
+    PREREQ_PM    => \%require,
+    INC          => $src->inc,
+    DEFINE       => $src->define,
+    TYPEMAPS     => $src->typemaps,
+    clean        => {
+        FILES => "@{ clean_files() }",
+    }
 );
 
+sub clean_files {
+    return \@scripts;
+}
+
 sub MY::postamble {
     return <<'EOF';