Added POD tests and a Perl::Critic test
[nasm/perl-rewrite.git] / perl / t / perl-critic.t
blobe58a21635ca633778e33c4301cbcb0517d83ec0f
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 'Test::Perl::Critic'
14 # Don't run tests during end-user installs
15 use Test::More;
16 unless (
17 $ENV{RELEASE_TESTING} or
18 $ENV{AUTHOR_TESTING}
20 plan( skip_all => "Author tests not required for installation" );
23 # Load the testing modules
24 foreach my $MODULE ( @MODULES ) {
25 eval "use $MODULE;";
26 if ( $@ ) {
27 $ENV{RELEASE_TESTING}
28 ? die( "Failed to load required release-testing module $MODULE" )
29 : plan( skip_all => "$MODULE not available for testing" );
33 all_critic_ok();