Blame t/98_pod.t

Packit 258f23
#!/usr/bin/perl
Packit 258f23
Packit 258f23
# Test that the syntax of our POD documentation is valid
Packit 258f23
use strict;
Packit 258f23
Packit 258f23
BEGIN {
Packit 258f23
    $|  = 1;
Packit 258f23
    $^W = 1;
Packit 258f23
}
Packit 258f23
Packit 258f23
my @MODULES = (
Packit 258f23
    'Pod::Simple 3.07',
Packit 258f23
    'Test::Pod 1.26',
Packit 258f23
);
Packit 258f23
Packit 258f23
# Don't run tests during end-user installs
Packit 258f23
use Test::More;
Packit 258f23
unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) {
Packit 258f23
    plan( skip_all => "Author tests not required for installation" );
Packit 258f23
}
Packit 258f23
Packit 258f23
# Load the testing modules
Packit 258f23
foreach my $MODULE (@MODULES) {
Packit 258f23
    eval "use $MODULE";
Packit 258f23
    if ($@) {
Packit 258f23
        $ENV{RELEASE_TESTING}
Packit 258f23
          ? die("Failed to load required release-testing module $MODULE")
Packit 258f23
          : plan( skip_all => "$MODULE not available for testing" );
Packit 258f23
    }
Packit 258f23
}
Packit 258f23
Packit 258f23
all_pod_files_ok();
Packit 258f23
Packit 258f23
1;