From: Vincent Pit Date: Fri, 16 Jan 2009 16:31:16 +0000 (+0100) Subject: Add a testdeb target for testing with the debugger X-Git-Tag: v0.06~8 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=22d1ea2d26ba805aba0c92f912f68a046a6b47ce;p=perl%2Fmodules%2FScope-Upper.git Add a testdeb target for testing with the debugger --- diff --git a/Makefile.PL b/Makefile.PL index e98f116..3c0ff41 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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 +}