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 | |
c2b5c835 |
12 | plan skip_all => 'Does not work with done_testing, temp disabled'; |
13 | |
0a87afc4 |
14 | # Don't run tests for installs |
15 | unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) { |
16 | plan( skip_all => "Author tests not required for installation" ); |
17 | } |
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 | |
c2b5c835 |
28 | TODO: { |
29 | local $TODO = 'Do not fix those yet - we have way too many branches out there, merging will be hell'; |
30 | all_perl_files_ok({ trailing_whitespace => 1}, qw/t lib script maint/); |
31 | } |
0a87afc4 |
32 | |
33 | done_testing; |