File: Makefile.PL

package info (click to toggle)
perl 5.40.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 126,156 kB
  • sloc: ansic: 668,539; perl: 525,522; sh: 72,038; pascal: 6,925; xml: 2,428; yacc: 1,410; makefile: 1,191; cpp: 208; lisp: 1
file content (40 lines) | stat: -rw-r--r-- 994 bytes parent folder | download | duplicates (3)
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;
    }
}