1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

tests: re-add coverage tests

This commit is contained in:
Steffen Vogel 2018-01-16 08:56:31 +01:00
parent 9015956fcc
commit b85c975998
3 changed files with 7 additions and 10 deletions

View file

@ -85,12 +85,8 @@ ifdef PROFILE
endif
ifdef COVERAGE
CFLAGS += -fprofile-arcs -ftest-coverage
LDFLAGS += --coverage
LDLIBS += -lgcov
LIB_LDFLAGS += -coverage
LIB_LDLIBS += -gcov
CFLAGS += --coverage
LDLIBS += -lgcov
VARIANTS += coverage
endif

View file

@ -21,6 +21,11 @@
###################################################################################
include tests/unit/Makefile.inc
ifdef COVERAGE
include tests/unit/Makefile.gcov.inc
endif
include tests/integration/Makefile.inc
tests: unit-tests integration-tests

View file

@ -40,10 +40,6 @@ $(BUILDDIR)/tests/unit/%.o: tests/unit/%.c | $$(dir $$@)
$(BUILDDIR)/unit-tests: $(TEST_OBJS) $(LIB)
$(CC) $(TEST_LDFLAGS) $^ $(TEST_LDLIBS) -o $@
ifdef COVERAGE
include tests/unit/Makefile.gcov.inc
endif
# Tests are not installed
install-tests: