# 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
# 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( ' ',
)
]}
+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