X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2FMakefile.PL.inc%2F11_authortests.pl;h=e29b5428fcd24a5002c0d5cb1a4678b48dec04fe;hb=ffce4b65b2c49bbb04919766c376625d426542f7;hp=c9ff881c86e04f7b4518bc40877327fa922b2853;hpb=e2633789f6faa803867476366674aa531597af81;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/Makefile.PL.inc/11_authortests.pl b/maint/Makefile.PL.inc/11_authortests.pl index c9ff881..e29b542 100644 --- a/maint/Makefile.PL.inc/11_authortests.pl +++ b/maint/Makefile.PL.inc/11_authortests.pl @@ -16,6 +16,9 @@ Meta->tests(join (' ', map { $_ || () } Meta->tests, @xt_tests ) ); # inject an explicit xt test run, mainly to check the contents of # lib and the generated POD's *before* anything is copied around +# +# at the end rerun the whitespace test in the distdir, to make sure everything +# is pristine postamble <<"EOP"; dbic_clonedir_copy_generated_pod : test_xt @@ -31,8 +34,7 @@ test_xt : pm_to_blib # perl cmd join( ' ', '$(ABSPERLRUN)', - # $'s need to be escaped (doubled) before inserting into the Makefile - map { $mm_proto->quote_literal($_) } qw(-e $$ENV{RELEASE_TESTING}=1;) + map { $mm_proto->quote_literal($_) } qw(-e $ENV{RELEASE_TESTING}=1;) ), # test list join( ' ', @@ -41,6 +43,23 @@ test_xt : pm_to_blib ) ]} +create_distdir : dbic_distdir_retest_whitespace + +dbic_distdir_retest_whitespace : +\t@{[ + $mm_proto->cd ( + '$(DISTVNAME)', + $mm_proto->test_via_harness( + # perl cmd + join( ' ', + '$(ABSPERLRUN)', + map { $mm_proto->quote_literal($_) } qw(-Ilib -e $ENV{RELEASE_TESTING}=1;$ENV{DBICTEST_NO_MAKEFILE_VERIFICATION}=1;) + ), + 'xt/whitespace.t' + ) + ) +]} + EOP # keep the Makefile.PL eval happy