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