From: Martin Mares Date: Thu, 18 May 2006 11:08:29 +0000 (+0200) Subject: When a failed test is encountered, continue with other tests. X-Git-Tag: holmes-import~641^2~6 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=26c3ed7692fa8e180d00b02139653470c716a00e;p=libucw.git When a failed test is encountered, continue with other tests. --- diff --git a/build/check-customs b/build/check-customs index c50ca1e7..d59861b7 100755 --- a/build/check-customs +++ b/build/check-customs @@ -5,6 +5,7 @@ set -e TEST=0 +ERR= function try { @@ -17,13 +18,13 @@ function try cd $TDIR if ! ../../configure $@ CC=gcc-3.4 >>log 2>&1 ; then echo " CANNOT CONFIGURE" - exit 1 - fi - if ! make >>log 2>&1 ; then + ERR=1 + elif ! make >>log 2>&1 ; then echo " FAILED" - exit 1 + ERR=1 + else + echo " PASSED" fi - echo " PASSED" ) } @@ -45,3 +46,5 @@ else try debug CONFIG_SHARED # debugging configuration with shared libs try debug # debugging configuration fi + +[ -z "$ERR" ]