make check: Do not re-check unless recheck=true.
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 10 Jun 2019 09:39:31 +0000 (11:39 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 10 Jun 2019 09:39:31 +0000 (11:39 +0200)
* build-aux/check-mescc.sh (recheck): New variable.
* build-aux/check.sh.in (recheck): New variable.
* build-aux/test-suite.sh (TEST_LOGS): Use it.

build-aux/check-mescc.sh
build-aux/check.sh.in
build-aux/test-suite.sh

index b473c9cecc6577a10b32fa5e4d541b4ef0de8c9c..f13d4047d68e75440b219d05030b345479803ae9 100755 (executable)
@@ -266,6 +266,7 @@ lib/tests/string/90-snprintf.c
     fi
 fi
 
+recheck=${recheck-false}
 test_ext=.c
 log_compiler=${srcdest}build-aux/test-c.sh
 . ${srcdest}build-aux/test-suite.sh
index e7c6c49000f93e45c5667424e2918eb11c3734ee..6732910ed8ba642cb717cf8b3c709c1f00378ffa 100644 (file)
@@ -57,6 +57,9 @@ export CPPFLAGS
 export LDFLAGS
 #export LIBS
 
+recheck=${recheck-false}
+export recheck
+
 ./pre-inst-env sh ${srcdest}build-aux/check-boot.sh
 ./pre-inst-env sh ${srcdest}build-aux/check-mes.sh
 
index 32909df887a595868576d10adc9e419502ed4166..976b3cac357591066f3b6bf489b37c8d55068e30 100644 (file)
@@ -29,6 +29,13 @@ subdir=$(basename $(pwd))
 TEST_LOGS=
 for t in $TESTS; do
     b=$(dirname $t)/$(basename $t $test_ext)
+    TEST_LOGS="$TEST_LOGS $b.log"
+    if test -e $b.log \
+            && test -e $b.trs\
+            && ! $recheck; then
+        echo `grep :test-result $b.trs | cut -d' ' -f 2`: $b
+        continue
+    fi
     d=$(dirname $t)
     case " `echo $XFAIL_TESTS` " in
         *[\ \  ]$t[\ \ ]*)
@@ -46,7 +53,6 @@ for t in $TESTS; do
        --expect-failure $fail\
        -- $log_compiler\
        ${srcdest}$t
-    TEST_LOGS="$TEST_LOGS $b.log"
 done
 
 if test $colors = yes; then