summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/dist/Test/Makefile.PL
blob: 7ed3642590bb569ced0151ec219ec1696a00f4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 5.004;
use ExtUtils::MakeMaker;

WriteMakefile(
    NAME		=> 'Test',
    VERSION_FROM	=> './lib/Test.pm',
    ABSTRACT_FROM	=> './lib/Test.pm',
    PREREQ_PM	  	=> {
        'Test::Harness'  => 1.1601,
        'File::Spec'     => 0,
    },
    INSTALLDIRS        => ( $] < 5.011 ? 'perl' : 'site' ),
);

{
    package MY;

    sub test_via_harness {
        my($self, $orig_perl, $tests) = @_;

        my @perls = ($orig_perl);
        # XXX: This should probably be updated to something more modern,
        # or removed outright. - Yves
        push @perls, qw(bleadperl 
                        perl5.6.1
                        perl5.6.0
                        perl5.005_03 
                        perl5.004_05 
                        perl5.004_04
                        perl5.004)
          if $ENV{PERL_TEST_ALL};

        my $out;
        foreach my $perl (@perls) {
            $out .= $self->SUPER::test_via_harness($perl, $tests);
        }

        return $out;
    }
}