diff options
-rw-r--r-- | test/unit/makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/makefile b/test/unit/makefile index 6a4ec8747..c83169e4d 100644 --- a/test/unit/makefile +++ b/test/unit/makefile @@ -20,6 +20,10 @@ CPPFLAGS = $(shell gtest-config --cppflags) CXXFLAGS = $(shell gtest-config --cxxflags) LINKFLAGS = $(shell gtest-config --ldflags --libs) +# For coverage testing with gcov +#CPPFLAGS += -fprofile-arcs -ftest-coverage +#LINKFLAGS += -fprofile-arcs -ftest-coverage + endif #vpath %.cxx ../src ../lexlib ../lexers @@ -45,7 +49,7 @@ GTEST_HEADERS=$(GTEST_DIR)/include/gtest/*.h $(GTEST_DIR)/include/gtest/internal all: $(TESTS) clean: - $(DEL) $(TESTS) *.a *.o *.exe + $(DEL) $(TESTS) *.a *.o *.exe *.gcov *.gcda *.gcno # Usually you shouldn't tweak such internal variables, indicated by a # trailing _. |