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:
parent
9015956fcc
commit
b85c975998
3 changed files with 7 additions and 10 deletions
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue