Reworked test files for better error reporting
[nasm/perl-rewrite.git] / perl / t / pod.t
blob7b5e600f33083448730dbd77e0af329128fe7922
1 #!/usr/bin/env perl
3 # Test that the syntax of our POD documentation is valid
4 use strict;
5 BEGIN {
6 $| = 1;
7 $^W = 1;
10 my @MODULES = (
11 'Pod::Simple 3.07',
12 'Test::Pod 1.26',
15 # Don't run tests during end-user installs
16 use Test::More;
17 unless(
18 $ENV{AUTOMATED_TESTING} or
19 $ENV{RELEASE_TESTING} or
20 $ENV{POD_TESTING}
22 plan( skip_all => "test not required for installation" );
25 # Load the testing modules
26 foreach my $MODULE ( @MODULES ) {
27 eval "use $MODULE";
28 if ( $@ ) {
29 $ENV{RELEASE_TESTING}
30 ? die( "Failed to load required release-testing module $MODULE" )
31 : plan( skip_all => "$MODULE not available for testing" );
35 all_pod_files_ok();