* update gtest.mk to actually abort when there's an error in the test cases
This commit is contained in:
7
gtest.mk
7
gtest.mk
@ -17,11 +17,10 @@
|
|||||||
TEST_PROGS=
|
TEST_PROGS=
|
||||||
|
|
||||||
test: all $(TEST_PROGS)
|
test: all $(TEST_PROGS)
|
||||||
@ test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS); \
|
@test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS) || exit $$?; \
|
||||||
test -z "$(SUBDIRS)" || \
|
test -z "$(SUBDIRS)" || \
|
||||||
for subdir in $(SUBDIRS); do \
|
for subdir in $(SUBDIRS); do \
|
||||||
test "$$subdir" = "." || \
|
test "$$subdir" = "." || \
|
||||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$? ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|||||||
Reference in New Issue
Block a user