aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMustafa Quraish <[email protected]>2022-02-03 06:21:28 -0500
committerMustafa Quraish <[email protected]>2022-02-03 06:21:28 -0500
commitcf474bdc2fe3c6417fb64ac15e1ed4016545382c (patch)
tree98db612e05bbbb98b3dba2d0a1e4a7519d17213a
parentPush `argc` and `argv` to the `main()` function (diff)
downloadcup-cf474bdc2fe3c6417fb64ac15e1ed4016545382c.tar.xz
cup-cf474bdc2fe3c6417fb64ac15e1ed4016545382c.zip
Make `make test` exit early if any of the tests fail
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 97c1baf..94f1b8e 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ clean:
test: compile
@for f in $(shell ls tests | grep -v "common"); \
do echo "Running $${f}"; \
- ./tests/$${f}; \
+ ./tests/$${f} || exit 1; \
done
tests/%.sh: compile