Permalink
Browse files

Add a self_cover make target.

  • Loading branch information...
1 parent c0c830b commit 024338c49ba3a46377b304c9222807e7b43aa481 @pjcj committed Aug 31, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 Makefile.PL
View
@@ -505,6 +505,13 @@ all_gold :
\t rm -rf test_output
\t exec \$(PERL) all_versions make gold
+self_cover : pure_all
+\t rm -rf cover_db
+\t -DEVEL_COVER_SELF=1 \$(PERL) -Mblib -MDevel::Cover cover -delete t/e2e/cover_db_*
+\t -DEVEL_COVER_SELF=1 make test
+\t DEVEL_COVER_SELF=1 \$(PERL) -Mblib -MDevel::Cover cover t/e2e/cover_db_*
+\t DEVEL_COVER_SELF=1 \$(PERL) -Mblib -MDevel::Cover cover -report html_basic
+
mani : manifest
\t \$(PERL) -i.bak -ne '\$\$d = "test_output/cover"; print unless /^\$\$d/; END { open M, ">>MANIFEST"; opendir D, \$\$d; print M "\$\$d/\$\$_\\n" for sort grep -f "\$\$d/\$\$_", readdir D }' MANIFEST

0 comments on commit 024338c

Please sign in to comment.