]> git.vpit.fr Git - perl/modules/autovivification.git/commitdiff
Add a testdeb target to Makefiles
authorVincent Pit <vince@profvince.com>
Sat, 12 Jul 2014 16:52:31 +0000 (18:52 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 4 Oct 2014 15:18:53 +0000 (17:18 +0200)
Makefile.PL

index ff784d688155079b69a286aa52a731b977387d47..6628bca212924ccbbd2c6a43265092dfbbc69711 100644 (file)
@@ -97,3 +97,12 @@ WriteMakefile(
  },
  %macro,
 );
+
+package MY;
+
+sub postamble {
+ return <<'POSTAMBLE';
+testdeb: all
+       PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" $(FULLPERLRUN) -MTAP::Harness -e 'TAP::Harness->new({verbosity => q{$(VERBOSE)}, lib => [ q{$(INST_LIB)}, q{$(INST_ARCHLIB)} ], switches => [ q{-d} ]})->runtests(@ARGV)' $(TEST_FILES)
+POSTAMBLE
+}