[Pkg-octave-commit] [octave-pkg-dev] 06/07: check-pkg: Print summary of results of unit tests

Rafael Laboissiere rafael at debian.org
Wed Aug 30 14:10:52 UTC 2017


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

rafael pushed a commit to branch master
in repository octave-pkg-dev.

commit 1a75e1308ee8b02abbe875682d740dfba75b16de
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Wed Aug 30 10:58:17 2017 -0300

    check-pkg: Print summary of results of unit tests
---
 check-pkg | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/check-pkg b/check-pkg
index 0b6f610..4e68607 100755
--- a/check-pkg
+++ b/check-pkg
@@ -92,3 +92,16 @@ fi
 if [ -e PKG_ADD.bak ] ; then
     mv PKG_ADD.bak PKG_ADD
 fi
+
+ntest=0
+npass=0
+nxfail=0
+nskip=0
+while read f1 f2 f3 f4 f5 ; do
+    ntest=$(( $ntest + $f2 ))
+    npass=$(( $npass + $f3 ))
+    nxfail=$(( $nxfail + $f4 ))
+    nskip=$(( $nskip + $f5 ))
+done < $tmp_results
+rm -f $tmp_results
+echo "Summary: $ntest tests, $npass passed, $nxfail known failures, $nskip skipped"

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-pkg-dev.git



More information about the Pkg-octave-commit mailing list