check: Do not fail if partial test prerequisites fail.

* build-aux/check-tcc.sh: Pass if no test directory found.
* build-aux/check.sh.in (TINYCC_PREFIX): Rename from TCC_PREFIX.  Pass
  if partial tests prerequisites fail.
This commit is contained in:
Jan Nieuwenhuizen 2018-08-09 10:22:26 +02:00
parent 56cd6d58ca
commit 06b3451caf
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 12 additions and 3 deletions

View file

@ -141,6 +141,9 @@ MES_LIBS="-l c+gnu"
expect=$(echo $broken | wc -w) expect=$(echo $broken | wc -w)
ARGS="arg1 arg2 arg3 arg4 arg5" ARGS="arg1 arg2 arg3 arg4 arg5"
export ARGS export ARGS
pass=0
fail=0
total=0
mkdir -p scaffold/tinycc mkdir -p scaffold/tinycc
for t in $tests; do for t in $tests; do
if [ ! -f $TINYCC_PREFIX/"$t.c" ]; then if [ ! -f $TINYCC_PREFIX/"$t.c" ]; then

View file

@ -40,8 +40,14 @@ fi
set -e set -e
[ "$GUILE" != true ] && MES=guile bash ${srcdest}build-aux/check-mes.sh if [ "$GUILE" != true ]; then
[ "$MES" != guile ] && bash ${srcdest}build-aux/check-mes.sh MES=guile bash ${srcdest}build-aux/check-mes.sh
fi
if [ "$MES" != guile ]; then
bash ${srcdest}build-aux/check-mes.sh
fi
bash ${srcdest}build-aux/check-boot.sh bash ${srcdest}build-aux/check-boot.sh
bash ${srcdest}build-aux/check-mescc.sh bash ${srcdest}build-aux/check-mescc.sh
[ -d $TINYCC_PREFIX/tests/tests2 ] && bash ${srcdest}build-aux/check-tcc.sh if [ -d $TINYCC_PREFIX/tests/tests2 ] ;then
bash ${srcdest}build-aux/check-tcc.sh
fi