| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | # Test that our META.yml file matches the current specification. |
| 4 | |
| 5 | use strict; |
| 6 | BEGIN { |
| 7 | $| = 1; |
| 8 | $^W = 1; |
| 9 | } |
| 10 | |
| 11 | my $MODULE = 'Test::CPAN::Meta 0.12'; |
| 12 | |
| 13 | # Don't run tests for installs |
| 14 | use Test::More; |
| 15 | unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { |
| 16 | plan( skip_all => "Author tests not required for installation" ); |
| 17 | } |
| 18 | |
| 19 | # Load the testing module |
| 20 | eval "use $MODULE"; |
| 21 | if ( $@ ) { |
| 22 | $ENV{RELEASE_TESTING} |
| 23 | ? die( "Failed to load required release-testing module $MODULE" ) |
| 24 | : plan( skip_all => "$MODULE not available for testing" ); |
| 25 | } |
| 26 | |
| 27 | meta_yaml_ok(); |