mu: allow for code-coverage reports
This commit is contained in:
13
gtest.mk
13
gtest.mk
@ -16,20 +16,19 @@
|
||||
|
||||
TEST_PROGS=
|
||||
|
||||
#
|
||||
|
||||
# NOTE: we set the locale/tz to some well-know values, so the tests
|
||||
# (at least when running under 'make check') run in a predictable
|
||||
# environment. There are specific tests different timezone, though.
|
||||
#
|
||||
|
||||
test: all $(TEST_PROGS)
|
||||
@export LC_ALL="en_US.utf8"
|
||||
@export TZ="Europe/Helsinki"
|
||||
@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 $$? ; \
|
||||
@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 $$? ; \
|
||||
done
|
||||
|
||||
.PHONY: test gprof
|
||||
|
||||
Reference in New Issue
Block a user