blob: 8b51c57d443dd9a4c33c7effcb65ae56f7cede0e (
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
|
#!/usr/bin/perl
# Test that our declared minimum Perl version matches our syntax
use strict;
BEGIN {
$| = 1;
$^W = 1;
}
my @MODULES = (
'Perl::MinimumVersion 1.20',
'Test::MinimumVersion 0.008',
);
# Don't run tests during end-user installs
use Test::More;
unless (-d '.git' || $ENV{IS_MAINTAINER}) {
plan( skip_all => "Author tests not required for installation" );
}
# Load the testing modules
foreach my $MODULE ( @MODULES ) {
eval "use $MODULE";
if ( $@ ) {
plan( skip_all => "$MODULE not available for testing" );
die "Failed to load required release-testing module $MODULE"
if -d '.git' || $ENV{IS_MAINTAINER};
}
}
# Note: constant_hash requires 5.8 but works okay with 5.6.2 here
all_minimum_version_ok("5.008");
1;
|