From: Jean Privat Date: Tue, 7 Jul 2009 15:21:06 +0000 (-0400) Subject: tests: handle compilation errors when nitc succeed but gcc failed X-Git-Tag: v0.3~174 X-Git-Url: http://nitlanguage.org tests: handle compilation errors when nitc succeed but gcc failed Signed-off-by: Jean Privat --- diff --git a/tests/sav/base_closure_raf_alt15.fail b/tests/sav/base_closure_raf_alt15.fail index 1b5b3d1..7f85acf 100644 --- a/tests/sav/base_closure_raf_alt15.fail +++ b/tests/sav/base_closure_raf_alt15.fail @@ -1,7 +1 @@ -0 -10 -20 -21 -40 -5 -6 +Compilation error diff --git a/tests/sav/error_class_glob.fail b/tests/sav/error_class_glob.fail index ff05281..7f85acf 100644 --- a/tests/sav/error_class_glob.fail +++ b/tests/sav/error_class_glob.fail @@ -1 +1 @@ -./tests.sh: line 119: ./error_class_glob.bin: No such file or directory +Compilation error diff --git a/tests/tests.sh b/tests/tests.sh index 147e8cc..8fccfbd 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -103,7 +103,7 @@ for ii in "$@"; do if [ "$ERR" != 0 ]; then echo -n "! " cp "$ff.cmp.err" "$ff.res" - else + elif [ -x "./$ff.bin" ]; then echo -n ". " # Execute if [ -f "$f.args" ]; then @@ -130,6 +130,9 @@ for ii in "$@"; do if [ -s "$ff.err" ]; then cat "$ff.err" >> "$ff.res" fi + else + echo -n "! " + echo "Compilation error" > "$ff.res" fi # Result