codegen_test.sh: keep track of failure rather than exiting on first failure
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 15 Feb 2013 15:55:54 +0000 (15 16:55 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 19 Feb 2013 18:39:55 +0000 (19 19:39 +0100)
If some change to isl changes the code generation output, we usually
want to see all such changes together.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
codegen_test.sh.in

index 4a4852d..5488fff 100644 (file)
@@ -3,6 +3,8 @@
 EXEEXT=@EXEEXT@
 srcdir=@srcdir@
 
+failed=0
+
 for i in $srcdir/test_inputs/codegen/*.in \
                $srcdir/test_inputs/codegen/cloog/*.in \
                $srcdir/test_inputs/codegen/omega/*.in \
@@ -11,5 +13,7 @@ for i in $srcdir/test_inputs/codegen/*.in \
        test=test-`basename $i .in`.c
        ref=${i%.in}.c
        (./isl_codegen$EXEEXT < $i > $test &&
-        diff -uw $ref $test && rm $test) || exit
+        diff -uw $ref $test && rm $test) || failed=1
 done
+
+test $failed -eq 0 || exit