Commit | Line | Data |
0a87afc4 |
1 | use warnings; |
2 | use strict; |
3 | |
4 | use Test::More; |
5 | use lib 't/lib'; |
6 | use DBICTest; |
7 | |
d146b340 |
8 | require DBIx::Class; |
9 | unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_eol') ) { |
10 | my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_eol'); |
20884f55 |
11 | $ENV{RELEASE_TESTING} |
d146b340 |
12 | ? die ("Failed to load release-testing module requirements: $missing") |
13 | : plan skip_all => "Test needs: $missing" |
0a87afc4 |
14 | } |
15 | |
8273e845 |
16 | Test::EOL::all_perl_files_ok({ trailing_whitespace => 1 }, |
47589465 |
17 | qw/t xt lib script examples maint .generated_pod/, |
8273e845 |
18 | ); |
0a87afc4 |
19 | |
a8b66abc |
20 | # Changes is not a "perl file", hence checked separately |
21 | Test::EOL::eol_unix_ok('Changes', { trailing_whitespace => 1 }); |
22 | |
8273e845 |
23 | # FIXME - Test::EOL declares 'no_plan' which conflicts with done_testing |
24 | # https://github.com/schwern/test-more/issues/14 |
d146b340 |
25 | #done_testing; |