aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2018-07-12 18:18:41 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2018-07-12 18:18:41 +0000
commit7f6a01adf5202789d56997efb13674ed372e430c (patch)
treeebea3e546b2c0d4d63fbf162b7233ced3707e010 /contrib
parent1c62a69e31b3b1c6d76b64d477d74f52f5fc22a8 (diff)
[contrib] compare_tests: Print number of tests
2018-07-12 Christophe Lyon <christophe.lyon@linaro.org> * compare_tests: Print number of tests in each category. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@262600 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/compare_tests18
2 files changed, 16 insertions, 6 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 17e9fb2b59f..817db452d8d 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+2018-07-12 Christophe Lyon <christophe.lyon@linaro.org>
+
+ * compare_tests: Print number of tests in each category.
+
2018-06-19 Alexander Monakov <amonakov@ispras.ru>
* vim-gcc-dev/README: New file.
diff --git a/contrib/compare_tests b/contrib/compare_tests
index 51a3719ff6a..2dfa8640756 100755
--- a/contrib/compare_tests
+++ b/contrib/compare_tests
@@ -129,7 +129,8 @@ grep '^PASS' "$before_s" | sed 's/^[^:]*:[ ]//' | comm -12 $tmp1 - >$tmp2
grep -s . $tmp2 >/dev/null
if [ $? = 0 ]; then
- echo "Tests that now fail, but worked before:"
+ num=`cat $tmp2 | wc -l`
+ echo "Tests that now fail, but worked before ($num tests):"
echo
cat $tmp2
echo
@@ -141,7 +142,8 @@ grep '^FAIL' "$before_s" | sed 's/^[^:]*:[ ]//' | comm -12 $tmp1 - >$tmp2
grep -s . $tmp2 >/dev/null
if [ $? = 0 ]; then
- echo "Tests that now work, but didn't before:"
+ num=`cat $tmp2 | wc -l`
+ echo "Tests that now work, but didn't before ($num tests):"
echo
cat $tmp2
[ -n "$strict" ] && echo "Strict test fails" && exit_status=1
@@ -153,7 +155,8 @@ grep '^[PF]A[SI][SL]' "$before_s" | sed 's/^[^:]*:[ ]//' | comm -23 $tmp1 - >$t
grep -s . $tmp2 >/dev/null
if [ $? = 0 ]; then
- echo "New tests that FAIL:"
+ num=`cat $tmp2 | wc -l`
+ echo "New tests that FAIL ($num tests):"
echo
cat $tmp2
echo
@@ -165,7 +168,8 @@ grep '^[PF]A[SI][SL]' "$before_s" | sed 's/^[^:]*:[ ]//' | comm -23 $tmp1 - >$t
grep -s . $tmp2 >/dev/null
if [ $? = 0 ]; then
- echo "New tests that PASS:"
+ num=`cat $tmp2 | wc -l`
+ echo "New tests that PASS ($num tests):"
echo
cat $tmp2
[ -n "$strict" ] && echo "Strict test fails" && exit_status=1
@@ -177,7 +181,8 @@ grep '^PASS' "$before_s" | sed 's/^[^:]*:[ ]//' | comm -13 $tmp1 - >$tmp2
grep -s . $tmp2 >/dev/null
if [ $? = 0 ]; then
- echo "Old tests that passed, that have disappeared: (Eeek!)"
+ num=`cat $tmp2 | wc -l`
+ echo "Old tests that passed, that have disappeared ($num tests): (Eeek!)"
echo
cat $tmp2
[ -n "$strict" ] && echo "Strict test fails" && exit_status=1
@@ -189,7 +194,8 @@ grep '^FAIL' "$before_s" | sed 's/^[^:]*:[ ]//' | comm -13 $tmp1 - >$tmp2
grep -s . $tmp2 >/dev/null
if [ $? = 0 ]; then
- echo "Old tests that failed, that have disappeared: (Eeek!)"
+ num=`cat $tmp2 | wc -l`
+ echo "Old tests that failed, that have disappeared ($num tests): (Eeek!)"
echo
cat $tmp2
[ -n "$strict" ] && echo "Strict test fails" && exit_status=1