check: Do not fail if partial test prerequisites fail.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 9 Aug 2018 08:22:26 +0000 (10:22 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 9 Aug 2018 08:22:26 +0000 (10:22 +0200)
* 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.

build-aux/check-tcc.sh
build-aux/check.sh.in

index 8e9f2ae15d7a0e8b19a7774936f246050b2a2ffc..75ddaf5cdafa197102bee2de410070832ed8f0c3 100755 (executable)
@@ -141,6 +141,9 @@ MES_LIBS="-l c+gnu"
 expect=$(echo $broken | wc -w)
 ARGS="arg1 arg2 arg3 arg4 arg5"
 export ARGS
+pass=0
+fail=0
+total=0
 mkdir -p scaffold/tinycc
 for t in $tests; do
     if [ ! -f $TINYCC_PREFIX/"$t.c" ]; then
index 0dac9f0c8a894b86a2a75ca010d661cdf87900bf..aa877b3c992aad7e2bff794f36ed6f15ee74841e 100755 (executable)
@@ -40,8 +40,14 @@ fi
 
 set -e
 
-[ "$GUILE" != true ] && MES=guile bash ${srcdest}build-aux/check-mes.sh
-[ "$MES" != guile ] && bash ${srcdest}build-aux/check-mes.sh
+if [ "$GUILE" != true ]; then
+    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-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