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 | |
c2b5c835 |
12 | plan skip_all => 'Does not work with done_testing, temp disabled'; |
13 | |
a8064486 |
14 | # Don't run tests for installs |
281738a4 |
15 | unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) { |
16 | plan( skip_all => "Author tests not required for installation" ); |
17 | } |
a8064486 |
18 | # Load the testing modules |
19 | foreach my $MODULE ( @MODULES ) { |
20 | eval "use $MODULE"; |
21 | if ( $@ ) { |
22 | $ENV{RELEASE_TESTING} |
23 | ? die( "Failed to load required release-testing module $MODULE" ) |
24 | : plan( skip_all => "$MODULE not available for testing" ); |
25 | } |
26 | } |
27 | |
d7f20fdf |
28 | all_perl_files_ok(qw/t lib script maint/); |
281738a4 |
29 | |
30 | done_testing; |