This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.

commit 91fe18aa29e1c6929ea402c4e3e0d076340c6a2f
Author: Daniel P. Berrange <d...@berrange.com>
Date:   Thu Mar 3 17:49:59 2005 +0000

    Added coverage reports on test suite
---
 rollingbuild.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/rollingbuild.sh b/rollingbuild.sh
index 72bb66f..a7d3d85 100755
--- a/rollingbuild.sh
+++ b/rollingbuild.sh
@@ -20,7 +20,18 @@ echo $NAME.spec >> MANIFEST
 
 # Build the RPM.
 make
-make test TEST_VERBOSE=1
+
+perl -MDevel::Cover -e '' 1>/dev/null 2>&1 && USE_COVER=1 || USE_COVER=0
+if [ "$USE_COVER" = "1" ]; then
+  cover -delete
+  HARNESS_PERL_SWITCHES=-MDevel::Cover make test
+  cover
+  mkdir blib/coverage
+  cp -a cover_db/*.html cover_db/*.css blib/coverage
+  mv blib/coverage/coverage.html blib/coverage/index.html
+else
+  make test
+fi
 
 make install
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to