| 1 | #!/usr/bin/perl |
| 2 | |
| 3 | # Test that the syntax of our POD documentation is valid |
| 4 | |
| 5 | use strictscip-perl cpan Module-Inspector 1.05 strict/; |
| 6 | BEGIN { |
| 7 | $|scip-perl cpan Module-Inspector 1.05 main/`$|`. = 1; |
| 8 | $^Wscip-perl cpan Module-Inspector 1.05 main/`$^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::Morescip-perl cpan Module-Inspector 1.05 Test/More/; |
| 18 | unless ( $ENVscip-perl cpan Module-Inspector 1.05 main/`%ENV`.{AUTOMATED_TESTING} or $ENVscip-perl cpan Module-Inspector 1.05 main/`%ENV`.{RELEASE_TESTING} ) { |
| 19 | planscip-perl cpan Module-Inspector 1.05 main/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 ( $@scip-perl cpan Module-Inspector 1.05 main/`$@`. ) { |
| 26 | $ENVscip-perl cpan Module-Inspector 1.05 main/`%ENV`.{RELEASE_TESTING} |
| 27 | ? diescip-perl cpan Module-Inspector 1.05 main/die().( "Failed to load required release-testing module $MODULE" ) |
| 28 | : planscip-perl cpan Module-Inspector 1.05 main/plan().( skip_all => "$MODULE not available for testing" ); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | all_pod_files_okscip-perl cpan Module-Inspector 1.05 main/all_pod_files_ok().(); |