Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (33 sloc) 1.15 KB
#!/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 for installs
use Test::More;
# NOTE: Perl::MinimumVersion / PPI can't parse hash definitions with utf8
# values or keys. That means that t/stash-xs-unicode.t always fails. We
# have no option but to disable this test until PPI can handle this case
# or Test::MinimumVersion gives us a way to specify files to skip.
plan( skip_all => "These aren't the tests you're looking for... move along" );
# NOTHING RUN PAST THIS POINT
unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) {
plan( skip_all => "Author tests not required for installation" );
}
# Load the testing modules
foreach my $MODULE ( @MODULES ) {
eval "use $MODULE";
if ( $@ ) {
$ENV{RELEASE_TESTING}
? die( "Failed to load required release-testing module $MODULE" )
: plan( skip_all => "$MODULE not available for testing" );
}
}
#all_minimum_version_ok(5.006);
minimum_version_ok('t/stash-xs-unicode.t', 5.006);