]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - Makefile.PL
Actually build the module before testing with the debugger
[perl/modules/Scope-Upper.git] / Makefile.PL
index 20649ec763d8c34fc1c23dfc47016365980c8a49..614f78f515330c88a8c7230e1853e890a4f7878a 100644 (file)
@@ -25,6 +25,7 @@ WriteMakefile(
     ABSTRACT_FROM       => 'lib/Scope/Upper.pm',
     PL_FILES            => {},
     PREREQ_PM => {
+        'Exporter' => 0,
         'XSLoader' => 0,
     },
     dist          => {
@@ -34,3 +35,12 @@ WriteMakefile(
     },
     clean         => { FILES => 'Scope-Upper-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt' },
 );
+
+package MY;
+
+sub postamble {
+ return <<'POSTAMBLE';
+testdeb: all
+       PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" prove --exec='$(PERL) -d -T -I$(INST_LIB) -I$(INST_ARCHLIB)' $(TEST_FILES)
+POSTAMBLE
+}