1#!/usr/bin/perl 2 3# Test that our declared minimum Perl version matches our syntax 4 5use 5.008001; 6 7use strict; 8use warnings; 9 10use Test::More; 11 12my @MODULES = ( 13 'Perl::MinimumVersion 1.20', 14 'Test::MinimumVersion 0.101082', 15); 16 17# Don't run tests for installs 18use Test::More; 19unless ( $ENV{AUTHOR_TESTING} ) { 20 plan( skip_all => "Author testing only" ); 21} 22 23# Load the testing modules 24foreach my $MODULE ( @MODULES ) { 25 ## no critic (BuiltinFunctions::ProhibitStringyEval) 26 eval "use $MODULE"; 27 if ( $@ ) { 28 plan( skip_all => "$MODULE not available for testing" ); 29 } 30} 31 32all_minimum_version_from_mymetayml_ok(); 33