* update gtest.mk to actually abort when there's an error in the test cases

This commit is contained in:
Dirk-Jan C. Binnema 2010-02-02 21:49:42 +02:00
parent ea2802f1ce
commit 1a633fb125
1 changed files with 3 additions and 4 deletions

View File

@ -17,11 +17,10 @@
TEST_PROGS=
test: all $(TEST_PROGS)
@ test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS); \
test -z "$(SUBDIRS)" || \
@test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS) || exit $$?; \
test -z "$(SUBDIRS)" || \
for subdir in $(SUBDIRS); do \
test "$$subdir" = "." || \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$? ; \
done
.PHONY: test