mirror of https://github.com/djcb/mu.git
* update gtest.mk to actually abort when there's an error in the test cases
This commit is contained in:
parent
ea2802f1ce
commit
1a633fb125
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
|
||||||
|
|
Loading…
Reference in New Issue