From 6717565bf387e01bfe7d8670786622cae2170115 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 6 Aug 2018 01:45:00 +1200 Subject: test: Exit falsey if any one language test failed --- test/run-lang-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/run-lang-tests.sh b/test/run-lang-tests.sh index 767fde9..ecdb6fe 100755 --- a/test/run-lang-tests.sh +++ b/test/run-lang-tests.sh @@ -1,5 +1,6 @@ #!/bin/bash +has_failed=0 cd "$(dirname $0)" EXECUTABLE="$PWD/../hence" @@ -13,10 +14,13 @@ for src in invalid-hence/*.hence ; do rm "$outfile" else echo -ne '[\e[1;31mFAIL\e[0m]' + has_failed=1 fi echo " $src" done +exit $has_failed + #for src in valid-hence/*.hence ; do # outfile="$(mktemp)" # "$EXECUTABLE" "$src" > "$outfile" -- cgit v1.1