Improve the populate docs in ::Schema and ::ResultSet
[dbsrgits/DBIx-Class.git] / maint / Makefile.PL.inc / 11_authortests.pl
CommitLineData
20884f55 1require File::Spec;
2require File::Find;
3
4my $xt_dirs;
5File::Find::find(sub {
6 return if $xt_dirs->{$File::Find::dir};
7 $xt_dirs->{$File::Find::dir} = 1 if (
8 $_ =~ /\.t$/ and -f $_
9 );
10}, 'xt');
11
12my $xt_tests = join (' ', map { File::Spec->catfile($_, '*.t') } sort keys %$xt_dirs );
13
14# this will add the xt tests to the `make test` target among other things
15Meta->tests(join (' ', map { $_ || () } Meta->tests, $xt_tests ) );
16
da89304f 17# inject an explicit xt test run for the create_distdir target
20884f55 18postamble <<"EOP";
19
da89304f 20create_distdir : test_xt
20884f55 21
22test_xt :
23\tPERL_DL_NONLAZY=1 RELEASE_TESTING=1 \$(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness(\$(TEST_VERBOSE), 'inc', '\$(INST_LIB)', '\$(INST_ARCHLIB)')" $xt_tests
24
25EOP
26
fc4b0448 27
28# keep the Makefile.PL eval happy
291;