Commit | Line | Data |
0a87afc4 |
1 | use warnings; |
2 | use strict; |
3 | |
4 | use Test::More; |
5 | use lib 't/lib'; |
6 | use DBICTest; |
7 | |
8 | my @MODULES = ( |
9 | 'Test::EOL 0.6', |
10 | ); |
11 | |
12 | # Don't run tests for installs |
13 | unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) { |
14 | plan( skip_all => "Author tests not required for installation" ); |
15 | } |
16 | # Load the testing modules |
17 | foreach my $MODULE ( @MODULES ) { |
18 | eval "use $MODULE"; |
19 | if ( $@ ) { |
20 | $ENV{RELEASE_TESTING} |
21 | ? die( "Failed to load required release-testing module $MODULE" ) |
22 | : plan( skip_all => "$MODULE not available for testing" ); |
23 | } |
24 | } |
25 | |
26 | all_perl_files_ok({ trailing_whitespace => 1}, qw/t lib script maint/); |
27 | |
28 | done_testing; |