[sagemath] 01/01: Add some more rules to count failed tests with
Ximin Luo
infinity0 at debian.org
Wed Nov 2 23:48:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository sagemath.
commit dafc11a3b4e9e5af165eb38c9e9e5bbc400e778f
Author: Ximin Luo <infinity0 at debian.org>
Date: Thu Nov 3 00:48:23 2016 +0100
Add some more rules to count failed tests with
---
debian/rules | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 19f606c..04fc44a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -152,8 +152,23 @@ build-dep:
else sudo apt-get install --no-install-recommends sagemath-build-deps; fi
rm -f sagemath-build-deps_$(DEB_VERSION)_all.deb
-# TODO: does not count "special" failures like segfault/abort/timed-out etc.
failed-tests:
+ grep '^sage -t .* #' sage/logs/ptestlong.log
+
+FAILED_TESTS = debian/rules -s --no-print-directory failed-tests
+
+failed-tests-total:
grep "Failed example:" sage/logs/ptestlong.log | awk '{s++} END {print s}'
+ $(FAILED_TESTS) | grep '# [^0-9]'
+
+failed-tests-by-name:
+ $(FAILED_TESTS) | sort '-t#' -k1
+
+failed-tests-by-count:
+# Sort "special" failures last, e.g. segfault/abort/timed-out etc
+ $(FAILED_TESTS) \
+ | sed -e 's,#\(\s\s*[^0-9]\),#9999999\1,g' \
+ | sort '-t#' -k2n,2n \
+ | sed -e 's,9999999,,g'
.PHONY: gencontrol ptestlong clean-doc-build reset build-dep gencontrol
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list