Reworked test files for better error reporting
[nasm/perl-rewrite.git] / perl / t / perl-critic.t
blob10cd50bb2250debd9bdd7de91aa9cd3d757f9379
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}
19 plan( skip_all => "test not required for installation" );
22 # Load the testing modules
23 foreach my $MODULE ( @MODULES ) {
24 eval "use $MODULE;";
25 if ( $@ ) {
26 $ENV{RELEASE_TESTING}
27 ? die( "Failed to load required release-testing module $MODULE" )
28 : plan( skip_all => "$MODULE not available for testing" );
32 all_critic_ok();