]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Add a testdeb target for testing with the debugger
authorVincent Pit <vince@profvince.com>
Fri, 16 Jan 2009 16:31:16 +0000 (17:31 +0100)
committerVincent Pit <vince@profvince.com>
Fri, 16 Jan 2009 16:31:16 +0000 (17:31 +0100)
Makefile.PL

index e98f11653865592650b467affd55ff281a073de9..3c0ff419f9371e0cc6d456b353ab42366d61980b 100644 (file)
@@ -35,3 +35,12 @@ WriteMakefile(
     },
     clean         => { FILES => 'Scope-Upper-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt' },
 );
+
+package MY;
+
+sub postamble {
+ return <<'POSTAMBLE';
+testdeb:
+       PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" prove --exec='$(PERL) -d -T -I$(INST_LIB) -I$(INST_ARCHLIB)' $(TEST_FILES)
+POSTAMBLE
+}