| 1 | #!/usr/bin/env perl |
| 2 | |
| 3 | # Test that Changes has an entry for current version |
| 4 | use strictscip-perl cpan Perl-Tidy-Sweetened 1.20 strict/; |
| 5 | |
| 6 | BEGIN { |
| 7 | $|scip-perl cpan Perl-Tidy-Sweetened 1.20 main/`$|`. = 1; |
| 8 | $^Wscip-perl cpan Perl-Tidy-Sweetened 1.20 main/`$^W`. = 1; |
| 9 | } |
| 10 | |
| 11 | my @MODULES = ( 'Test::CheckChanges 0.08', ); |
| 12 | |
| 13 | # Don't run tests during end-user installs |
| 14 | use Test::Morescip-perl cpan Perl-Tidy-Sweetened 1.20 Test/More/; |
| 15 | # plan( skip_all => 'Author tests not required for installation' ) |
| 16 | # unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} ); |
| 17 | |
| 18 | # Load the testing modules |
| 19 | foreach my $MODULE (@MODULES) { |
| 20 | eval "use $MODULE"; |
| 21 | if ($@scip-perl cpan Perl-Tidy-Sweetened 1.20 main/`$@`.) { |
| 22 | $ENVscip-perl cpan Perl-Tidy-Sweetened 1.20 main/`%ENV`.{RELEASE_TESTING} |
| 23 | ? diescip-perl cpan Perl-Tidy-Sweetened 1.20 main/die().("Failed to load required release-testing module $MODULE") |
| 24 | : planscip-perl cpan Perl-Tidy-Sweetened 1.20 main/plan().( skip_all => "$MODULE not available for testing" ); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | ok_changesscip-perl cpan Perl-Tidy-Sweetened 1.20 main/ok_changes().(); |
| 29 | |
| 30 | 1; |