| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | # Test that the syntax of our POD documentation is valid |
| 4 | |
| 5 | use strict; |
| 6 | BEGIN { |
| 7 | $| = 1; |
| 8 | $^W = 1; |
| 9 | } |
| 10 | |
| 11 | my @MODULES = ( |
| 12 | 'Pod::Simple 3.07', |
| 13 | 'Test::Pod 1.26', |
| 14 | ); |
| 15 | |
| 16 | # Don't run tests for installs |
| 17 | use Test::More; |
| 18 | unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { |
| 19 | plan( skip_all => "Author tests not required for installation" ); |
| 20 | } |
| 21 | |
| 22 | # Load the testing modules |
| 23 | foreach my $MODULE ( @MODULES ) { |
| 24 | eval "use $MODULE"; |
| 25 | if ( $@ ) { |
| 26 | $ENV{RELEASE_TESTING} |
| 27 | ? die( "Failed to load required release-testing module $MODULE" ) |
| 28 | : plan( skip_all => "$MODULE not available for testing" ); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | all_pod_files_ok(); |