X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Feol.t;h=221bce422bca048f602b274bf0e25cbb07e02e68;hb=da89304fa29f8fd18d235d120ccbea7d2cfbecdf;hp=e61ce414d5836e4a7ba86fb17914919707ded69b;hpb=39c9c72df61c84b595715e3d164bacc0b8e68439;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/eol.t b/xt/eol.t index e61ce41..221bce4 100644 --- a/xt/eol.t +++ b/xt/eol.t @@ -5,28 +5,21 @@ use Test::More; use lib 't/lib'; use DBICTest; -# Don't run tests for installs -if ( DBICTest::RunMode->is_plain ) { - plan( skip_all => "Author tests not required for installation" ); -} - -plan skip_all => 'Test::EOL very broken'; - require DBIx::Class; unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_eol') ) { my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_eol'); - (! DBICTest::RunMode->is_plain && ! DBICTest::RunMode->is_smoker ) + $ENV{RELEASE_TESTING} ? die ("Failed to load release-testing module requirements: $missing") : plan skip_all => "Test needs: $missing" } -TODO: { - local $TODO = 'Do not fix those yet - we have way too many branches out there, merging will be hell'; - Test::EOL::all_perl_files_ok({ trailing_whitespace => 1}, - qw/t xt lib script/, - DBICTest::RunMode->is_author ? ('maint') : (), - ); -} +Test::EOL::all_perl_files_ok({ trailing_whitespace => 1 }, + qw/t xt lib script examples maint/, +); + +# Changes is not a "perl file", hence checked separately +Test::EOL::eol_unix_ok('Changes', { trailing_whitespace => 1 }); -# FIXME - need to fix Test::EOL +# FIXME - Test::EOL declares 'no_plan' which conflicts with done_testing +# https://github.com/schwern/test-more/issues/14 #done_testing;