609f6adfc40325155edc1c671cc4cc5eb13d65a9
[dbsrgits/DBIx-Class.git] / xt / eol.t
1 use warnings;
2 use strict;
3
4 use Test::More;
5 use lib 't/lib';
6 use DBICTest;
7
8 # Don't run tests for installs
9 unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) {
10   plan( skip_all => "Author tests not required for installation" );
11 }
12
13 plan skip_all => 'Test::EOL very broken';
14
15 require DBIx::Class;
16 unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_eol') ) {
17   my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_eol');
18   $ENV{RELEASE_TESTING} || DBICTest::AuthorCheck->is_author
19     ? die ("Failed to load release-testing module requirements: $missing")
20     : plan skip_all => "Test needs: $missing"
21 }
22
23 TODO: {
24   local $TODO = 'Do not fix those yet - we have way too many branches out there, merging will be hell';
25   Test::EOL::all_perl_files_ok({ trailing_whitespace => 1},
26     qw/t xt lib script/,
27     DBICTest::AuthorCheck->is_author ? ('maint') : (),
28   );
29 }
30
31 # FIXME - need to fix Test::EOL
32 #done_testing;