23b3453be8063378f30b6b9d5b2de77056f47687
[dbsrgits/DBIx-Class.git] / t / 06notabs.t
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::NoTabs 0.9',
10 );
11
12 # Don't run tests for installs
13 unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) {
14   plan( skip_all => "Author tests not required for installation" );
15 }
16 # Load the testing modules
17 foreach my $MODULE ( @MODULES ) {
18   eval "use $MODULE";
19   if ( $@ ) {
20     $ENV{RELEASE_TESTING}
21     ? die( "Failed to load required release-testing module $MODULE" )
22     : plan( skip_all => "$MODULE not available for testing" );
23   }
24 }
25
26 all_perl_files_ok(qw/t lib script maint/);
27
28 done_testing;