root/trunk/Makefile.PL

Revision 57, 0.7 kB (checked in by clinton, 4 years ago)

Adding Apache::Test style tests harness, tid 10737

Line 
1 use ExtUtils::MakeMaker;
2 use strict;
3 use warnings;
4
5 use lib qw(../blib/lib lib );
6 use Apache::TestMM qw(test clean); #enable 'make test'
7
8 # prerequisites
9 my %require =
10   (
11    # 'Apache' => 1.27,
12    "Apache::Test" => "",
13    'Apache2::Const' => 2,
14   );
15 my @scripts = qw(t/TEST);
16
17 # accept the configs from command line
18 Apache::TestMM::filter_args();
19 Apache::TestMM::generate_script('t/TEST');
20
21 WriteMakefile(
22               NAME            => 'Mungo',
23               VERSION_FROM    => 'lib/Mungo.pm',
24               PREREQ_PM       => \%require,
25               clean        => {
26                                FILES => "@{ clean_files() }",
27                               },
28 );
29
30
31 sub clean_files {
32     return [@scripts];
33 }
Note: See TracBrowser for help on using the browser.