make check: Do not re-check unless recheck=true.

* 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.
This commit is contained in:
Jan Nieuwenhuizen 2019-06-10 11:39:31 +02:00
parent 78b3c85f15
commit 502a203742
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
3 changed files with 11 additions and 1 deletions

View File

@ -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

View 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

View 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