summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-12-04 11:41:19 -0800
committerPixel <pixel@nobis-crew.org>2011-12-04 11:41:19 -0800
commitf99192cb59bb3e09ae4841bb790c57969fbe2003 (patch)
tree9e531456408abba0532522fe4371d6ab4b128f6c /Makefile
parentc39471409ed91e320b834979053e76738a58d6fc (diff)
Making sure that if a test fails, the 'make' command stops
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c126bdc..b0aa08e 100644
--- a/Makefile
+++ b/Makefile
@@ -194,15 +194,15 @@ all: dep lib
tests: $(TESTS)
ifneq ($(CROSSCOMPILE),true)
- for t in $(TESTS) ; do ./$$t ; done
+ $(foreach b, $(TESTS), ./$(b) && ) exit 0 || exit -1
else
ifeq ($(SYSTEM),MINGW32)
- for t in $(TESTS) ; do wine ./$$t ; done
+ $(foreach b, $(TESTS), wine ./$(b) && ) exit 0 || exit -1
endif
endif
strip: $(TESTS)
- for t in $(TESTS) ; do $(STRIP) ./$$t ; done
+ $(foreach b, $(TESTS), $(STRIP) ./$(b) && ) exit 0 || exit -1
lib: $(LIB)