[Pkg-octave-commit] [octave-pkg-dev] 04/07: check-pkg: Capture the results of the 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 e8e23b7ac0c441ed18674169d4cb9eb4cf8133d7
Author: Rafael Laboissiere <rafael at debian.org>
Date: Wed Aug 30 09:06:18 2017 -0300
check-pkg: Capture the results of the tests
With this change, the tests must run in verbose mode, instead of
normal, otherwise the warings will not be shown.
---
check-pkg | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/check-pkg b/check-pkg
index 02c8ab3..d2eaae4 100755
--- a/check-pkg
+++ b/check-pkg
@@ -19,8 +19,15 @@ EOF
for f in $(find inst/ -name \*.m $excluded_files_expr | grep -v /private/) ; do
if grep -q "$unit_test_regex" $f ; then
stem=$(echo $f | sed 's:[^@]*/::;s/\.m$//')
- echo "disp (\"[$stem]\")" >> $tmp
- echo "test $stem $OCTPKG_TEST_OPT" >> $tmp
+ cat >>$tmp <<EOF
+disp ("[$stem]");
+[npass, ntest, nxfail, nskip] = test ("$stem",
+ ifelse (strcmp ("$OCTPKG_TEST_OPT", ""),
+ "verbose", "$OCTPKG_TEST_OPT"));
+printf ("%d test%s, %d passed, %d known failure%s, %d skipped\n",
+ ntest, ifelse (ntest > 1, "s", ""), npass, nxfail,
+ ifelse (nxfail > 1, "s", ""), nskip);
+EOF
fi
done
@@ -52,8 +59,15 @@ if [ -d src ] ; then
if grep -q "$unit_test_regex" $f ; then
stem=${f%%.cc}
stem=${stem##*/}
- echo "disp (\"[$stem]\")" >> $tmp
- echo "test $stem $OCTPKG_TEST_OPT" >> $tmp
+ cat >>$tmp <<EOF
+disp ("[$stem]");
+[npass, ntest, nxfail, nskip] = test ("$stem",
+ ifelse (strcmp ("$OCTPKG_TEST_OPT", ""),
+ "verbose", "$OCTPKG_TEST_OPT"));
+printf ("%d test%s, %d passed, %d known failure%s, %d skipped\n",
+ ntest, ifelse (ntest > 1, "s", ""), npass, nxfail,
+ ifelse (nxfail > 1, "s", ""), nskip);
+EOF
fi
done
fi
--
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