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:
parent
cbf9344ded
commit
90586a86bc
|
@ -266,6 +266,7 @@ lib/tests/string/90-snprintf.c
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
recheck=${recheck-false}
|
||||||
test_ext=.c
|
test_ext=.c
|
||||||
log_compiler=${srcdest}build-aux/test-c.sh
|
log_compiler=${srcdest}build-aux/test-c.sh
|
||||||
. ${srcdest}build-aux/test-suite.sh
|
. ${srcdest}build-aux/test-suite.sh
|
||||||
|
|
|
@ -57,6 +57,9 @@ export CPPFLAGS
|
||||||
export LDFLAGS
|
export LDFLAGS
|
||||||
#export LIBS
|
#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-boot.sh
|
||||||
./pre-inst-env sh ${srcdest}build-aux/check-mes.sh
|
./pre-inst-env sh ${srcdest}build-aux/check-mes.sh
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,13 @@ subdir=$(basename $(pwd))
|
||||||
TEST_LOGS=
|
TEST_LOGS=
|
||||||
for t in $TESTS; do
|
for t in $TESTS; do
|
||||||
b=$(dirname $t)/$(basename $t $test_ext)
|
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)
|
d=$(dirname $t)
|
||||||
case " `echo $XFAIL_TESTS` " in
|
case " `echo $XFAIL_TESTS` " in
|
||||||
*[\ \ ]$t[\ \ ]*)
|
*[\ \ ]$t[\ \ ]*)
|
||||||
|
@ -46,7 +53,6 @@ for t in $TESTS; do
|
||||||
--expect-failure $fail\
|
--expect-failure $fail\
|
||||||
-- $log_compiler\
|
-- $log_compiler\
|
||||||
${srcdest}$t
|
${srcdest}$t
|
||||||
TEST_LOGS="$TEST_LOGS $b.log"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if test $colors = yes; then
|
if test $colors = yes; then
|
||||||
|
|
Loading…
Reference in New Issue