}
}
-tests_recursive (qw|
- t
-|);
+tests_recursive ('t');
+tests_recursive ('xt') if (
+ $Module::Install::AUTHOR
+ or
+ $ENV{DBICTEST_RUN_ALL_TESTS}
+ or
+ (
+ ( $ENV{TRAVIS}||'' ) eq 'true'
+ and
+ ($ENV{TRAVIS_REPO_SLUG}||'') =~ m|\w+/dbix-class$|
+ )
+ or
+ ( $ENV{AUTOMATED_TESTING} and ! $ENV{PERL5_CPANM_IS_RUNNING} and ! $ENV{RELEASE_TESTING} )
+);
install_script (qw|
script/dbicadmin
or
DBICTest::RunMode->is_plain
) {
- for (qw(indirect multidimensional bareword::filehandles)) {
- exists $INC{ Module::Runtime::module_notional_filename($_) }
- and
- $tb->ok(0, "$_ load should not have been attempted!!!" )
+ for my $mod (qw(indirect multidimensional bareword::filehandles)) {
+ ( my $fn = "$mod.pm" ) =~ s|::|/|g;
+
+ $tb->ok(0, "Load of '$mod' should not have been attempted!!!" )
+ if exists $INC{$fn};
}
}
}
},
'DBIx::Class::Admin::*' => { skip => 1 },
+ 'DBIx::Class::Optional::Dependencies' => { skip => 1 },
'DBIx::Class::ClassResolver::PassThrough' => { skip => 1 },
'DBIx::Class::Componentised' => { skip => 1 },
'DBIx::Class::AccessorGroup' => { skip => 1 },
skip ("$module exempt", 1) if ($ex->{skip});
+ skip ("$module not loadable", 1) unless eval "require $module";
+
# build parms up from ignore list
my $parms = {};
$parms->{trustme} =