Codebase list libdbix-class-perl / 2b2c98d
Run xt/ tests on non-plain installs ( cherry-pick of c26b30de and 554484cb ) FACEDESK: Module::Install::Makefile::tests_recursive() takes a single arg and throws the rest away... I mean what the flying... Peter Rabbitson 7 years ago
3 changed file(s) with 22 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
114114 }
115115 }
116116
117 tests_recursive (qw|
118 t
119 |);
117 tests_recursive ('t');
118 tests_recursive ('xt') if (
119 $Module::Install::AUTHOR
120 or
121 $ENV{DBICTEST_RUN_ALL_TESTS}
122 or
123 (
124 ( $ENV{TRAVIS}||'' ) eq 'true'
125 and
126 ($ENV{TRAVIS_REPO_SLUG}||'') =~ m|\w+/dbix-class$|
127 )
128 or
129 ( $ENV{AUTOMATED_TESTING} and ! $ENV{PERL5_CPANM_IS_RUNNING} and ! $ENV{RELEASE_TESTING} )
130 );
120131
121132 install_script (qw|
122133 script/dbicadmin
342342 or
343343 DBICTest::RunMode->is_plain
344344 ) {
345 for (qw(indirect multidimensional bareword::filehandles)) {
346 exists $INC{ Module::Runtime::module_notional_filename($_) }
347 and
348 $tb->ok(0, "$_ load should not have been attempted!!!" )
345 for my $mod (qw(indirect multidimensional bareword::filehandles)) {
346 ( my $fn = "$mod.pm" ) =~ s|::|/|g;
347
348 $tb->ok(0, "Load of '$mod' should not have been attempted!!!" )
349 if exists $INC{$fn};
349350 }
350351 }
351352 }
115115 },
116116
117117 'DBIx::Class::Admin::*' => { skip => 1 },
118 'DBIx::Class::Optional::Dependencies' => { skip => 1 },
118119 'DBIx::Class::ClassResolver::PassThrough' => { skip => 1 },
119120 'DBIx::Class::Componentised' => { skip => 1 },
120121 'DBIx::Class::AccessorGroup' => { skip => 1 },
173174
174175 skip ("$module exempt", 1) if ($ex->{skip});
175176
177 skip ("$module not loadable", 1) unless eval "require $module";
178
176179 # build parms up from ignore list
177180 my $parms = {};
178181 $parms->{trustme} =