Mercurial > hg > CbC > CbC_gcc
diff contrib/compare_tests @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/contrib/compare_tests Fri Oct 27 22:46:09 2017 +0900 +++ b/contrib/compare_tests Thu Oct 25 07:37:49 2018 +0900 @@ -36,17 +36,18 @@ tool=gxx -tmp1=/tmp/$tool-testing.$$a -tmp2=/tmp/$tool-testing.$$b -now_s=/tmp/$tool-testing.$$d -before_s=/tmp/$tool-testing.$$e -lst1=/tmp/$tool-lst1.$$ -lst2=/tmp/$tool-lst2.$$ -lst3=/tmp/$tool-lst3.$$ -lst4=/tmp/$tool-lst4.$$ -lst5=/tmp/$tool-lst5.$$ -sum1=/tmp/$tool-sum1.$$ -sum2=/tmp/$tool-sum2.$$ +TMPDIR=${TMPDIR:-/tmp} +tmp1=$TMPDIR/$tool-testing.$$a +tmp2=$TMPDIR/$tool-testing.$$b +now_s=$TMPDIR/$tool-testing.$$d +before_s=$TMPDIR/$tool-testing.$$e +lst1=$TMPDIR/$tool-lst1.$$ +lst2=$TMPDIR/$tool-lst2.$$ +lst3=$TMPDIR/$tool-lst3.$$ +lst4=$TMPDIR/$tool-lst4.$$ +lst5=$TMPDIR/$tool-lst5.$$ +sum1=$TMPDIR/$tool-sum1.$$ +sum2=$TMPDIR/$tool-sum2.$$ tmps="$tmp1 $tmp2 $now_s $before_s $lst1 $lst2 $lst3 $lst4 $lst5 $sum1 $sum2" [ "$1" = "-strict" ] && strict=$1 && shift @@ -128,7 +129,8 @@ 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 @@ -140,7 +142,8 @@ 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 @@ -152,7 +155,8 @@ 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 @@ -164,7 +168,8 @@ 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 @@ -176,7 +181,8 @@ 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 @@ -188,7 +194,8 @@ 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