]> mj.ucw.cz Git - libucw.git/commitdiff
When a failed test is encountered, continue with other tests.
authorMartin Mares <mj@ucw.cz>
Thu, 18 May 2006 11:08:29 +0000 (13:08 +0200)
committerMartin Mares <mj@ucw.cz>
Thu, 18 May 2006 11:08:29 +0000 (13:08 +0200)
build/check-customs

index c50ca1e7db19b93a3aef976e3212f543d687d057..d59861b7de97a988bb017289270dd428ac639420 100755 (executable)
@@ -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" ]