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