Commit | Line | Data |
281738a4 |
1 | use warnings; |
2 | use strict; |
3 | |
4 | use Test::More; |
281738a4 |
5 | use lib 't/lib'; |
6 | use DBICTest; |
a8064486 |
7 | |
8 | my @MODULES = ( |
9 | 'Test::NoTabs 0.9', |
10 | ); |
11 | |
12 | # Don't run tests for installs |
281738a4 |
13 | unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) { |
14 | plan( skip_all => "Author tests not required for installation" ); |
15 | } |
a8064486 |
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 | |
281738a4 |
26 | all_perl_files_ok(); |
27 | |
28 | done_testing; |