From: Graham Knop Date: Sun, 23 Jun 2013 01:23:33 +0000 (-0400) Subject: add coverage option in fulltest script and ignore cover_db X-Git-Tag: v1.003000~30 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7d0bf4aacef051985f59e8406f1d35c301559e1b;p=gitmo%2FMoo.git add coverage option in fulltest script and ignore cover_db --- diff --git a/.gitignore b/.gitignore index e0478d6..3551c15 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ *# .#* /Moo-* +/cover_db/ # yes that's right, distar makes it for us /MANIFEST.SKIP diff --git a/maint/fulltest b/maint/fulltest index c41dc11..d02bb51 100755 --- a/maint/fulltest +++ b/maint/fulltest @@ -1,3 +1,17 @@ #!/bin/sh +while [ "$#" -gt "0" ]; do + case $1 in + --cover) + cover -delete -silent + export HARNESS_PERL_SWITCHES='-MDevel::Cover=-ignore,^x?t/,-blib,0' + ;; + *) + echo "Invalid option: $1" + exit 1 + ;; + esac + shift +done + prove -l t xt && MOO_XS_DISABLE=1 prove -l t xt