aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2016-05-20 19:06:21 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2016-05-20 19:06:21 +0200
commit7812ac6cdf0574fdfe244e6d46f16f9a025116f5 (patch)
tree4de51d6a177be1f9bc048b7a3560d3765855a553 /tests
parentremove superfluous dependency (diff)
downloadgensvm-7812ac6cdf0574fdfe244e6d46f16f9a025116f5.tar.gz
gensvm-7812ac6cdf0574fdfe244e6d46f16f9a025116f5.zip
add generation of coverage reports with lcov
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index dc5e0c5..29a181f 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS=-Wall -O3 -g -rdynamic -DNDEBUG $(OPTFLAGS)
+CFLAGS=-Wall -g -rdynamic -DNDEBUG $(OPTFLAGS)
INCLUDE=-I../include/ -I./include
LIB=-L../lib
@@ -22,7 +22,12 @@ valgrind:
--log-file=/tmp/valgrind-%p.log --track-origins=yes \
--show-leak-kinds=all -v" $(MAKE)
+cover: CFLAGS += --coverage
+cover: LDFLAGS += -lgcov
+cover: all
+
clean:
rm -rf $(TESTS)
rm -f ./tests.log
rm -f /tmp/valgrind*.log
+ rm -f *.gcno *.gcda *.gcov