Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (26 sloc) 0.642 kB
cd9acb7 @stash pod test
authored
1 #!/usr/bin/perl
2
3 # Test that the syntax of our POD documentation is valid
4 use strict;
5 BEGIN {
6 $| = 1;
7 $^W = 1;
8 }
9
10 my @MODULES = (
11 'Pod::Simple 3.07',
12 'Test::Pod 1.26',
13 );
14
15 # Don't run tests during end-user installs
16 use Test::More;
17 plan( skip_all => 'Author tests not required for installation' )
18 unless ( $ENV{RELEASE_TESTING} or $ENV{AUTOMATED_TESTING} );
19
20 # Load the testing modules
21 foreach my $MODULE ( @MODULES ) {
22 eval "use $MODULE";
23 if ( $@ ) {
24 $ENV{RELEASE_TESTING}
25 ? die( "Failed to load required release-testing module $MODULE" )
26 : plan( skip_all => "$MODULE not available for testing" );
27 }
28 }
29
30 all_pod_files_ok();
31
32 1;
Something went wrong with that request. Please try again.