5 return if $xt_dist_dirs->{$File::Find::dir};
6 $xt_dist_dirs->{$File::Find::dir} = 1 if (
11 my @xt_dist_tests = map { "$_/*.t" } sort keys %$xt_dist_dirs;
13 # inject an explicit xt test run, mainly to check the contents of
14 # lib and the generated POD's *before* anything is copied around
16 # at the end rerun the whitespace and footer tests in the distdir
17 # to make sure everything is pristine
20 dbic_clonedir_copy_generated_pod : test_xt
24 # When xt tests are explicitly requested, we want to run with RELEASE_TESTING=1
25 # so that all optdeps are turned into a hard failure
26 # However portably modifying ENV for a single command is surprisingly hard
27 # So instead we (ab)use perl's ability to stack -e options, and simply modify
28 # the ENV from within perl itself
29 $mm_proto->test_via_harness(
33 map { $mm_proto->quote_literal($_) } qw(-e $ENV{RELEASE_TESTING}=1;$ENV{HARNESS_OPTIONS}=j4;)
37 map { $mm_proto->quote_literal($_) } @xt_dist_tests
42 create_distdir : dbic_distdir_retest_ws_and_footers
44 dbic_distdir_retest_ws_and_footers :
48 $mm_proto->test_via_harness(
52 map { $mm_proto->quote_literal($_) } qw(-Ilib -e $ENV{RELEASE_TESTING}=1;$ENV{HARNESS_OPTIONS}=j4;)
54 'xt/dist/postdistdir/*.t',
61 # keep the Makefile.PL eval happy