Added POD tests and a Perl::Critic test
[nasm/perl-rewrite.git] / perl / t / pod.t
blob633213170299025dd3ba8cad0b9d0102220aa6a9
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} or
21 $ENV{AUTHOR_TESTING}
23 plan( skip_all => "Author tests not required for installation" );
26 # Load the testing modules
27 foreach my $MODULE ( @MODULES ) {
28 eval "use $MODULE";
29 if ( $@ ) {
30 $ENV{RELEASE_TESTING}
31 ? die( "Failed to load required release-testing module $MODULE" )
32 : plan( skip_all => "$MODULE not available for testing" );
36 all_pod_files_ok();