diff options
| author | David Phillips <david@sighup.nz> | 2018-08-06 01:45:00 +1200 | 
|---|---|---|
| committer | David Phillips <david@sighup.nz> | 2018-08-06 01:45:00 +1200 | 
| commit | 6717565bf387e01bfe7d8670786622cae2170115 (patch) | |
| tree | bd363539392b1ea159e28bb0c5b0ad625d802912 /test | |
| parent | 7b1b47cd1a50bdb87c530383cbfe8c8e336eea3d (diff) | |
| download | hence-6717565bf387e01bfe7d8670786622cae2170115.tar.xz | |
test: Exit falsey if any one language test failed
Diffstat (limited to 'test')
| -rwxr-xr-x | test/run-lang-tests.sh | 4 | 
1 files changed, 4 insertions, 0 deletions
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"  | 
