mu: allow for code-coverage reports

This commit is contained in:
Dirk-Jan C. Binnema
2020-01-01 15:44:39 +02:00
parent ad63044915
commit 12b34be3cf
5 changed files with 63 additions and 60 deletions

View File

@ -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