From 48ba68ca44511344d2c50eb6430200ae95f79abf Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Tue, 17 Mar 2020 12:54:01 -0400 Subject: [PATCH] Fix #561, Add branch coverage reporting --- cmake/Makefile.sample | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/Makefile.sample b/cmake/Makefile.sample index 8b59d6132..ae771d49c 100644 --- a/cmake/Makefile.sample +++ b/cmake/Makefile.sample @@ -139,9 +139,8 @@ test: (cd $(O)/$(ARCH) && ctest -O ctest.log) lcov: - lcov --capture --directory $(O)/$(ARCH) --output-file $(O)/$(ARCH)/coverage_test.info - lcov --add-tracefile $(O)/$(ARCH)/coverage_base.info --add-tracefile $(O)/$(ARCH)/coverage_test.info --output-file $(O)/$(ARCH)/coverage_total.info - lcov --remove $(O)/$(ARCH)/coverage_total.info 'unit-test/*' --output-file $(O)/$(ARCH)/coverage_filtered.info + lcov --capture --rc lcov_branch_coverage=1 --directory $(O)/$(ARCH) --output-file $(O)/$(ARCH)/coverage_test.info + lcov --rc lcov_branch_coverage=1 --add-tracefile $(O)/$(ARCH)/coverage_base.info --add-tracefile $(O)/$(ARCH)/coverage_test.info --output-file $(O)/$(ARCH)/coverage_total.info genhtml $(O)/$(ARCH)/coverage_filtered.info --output-directory $(O)/$(ARCH)/lcov @/bin/echo -e "\n\nCoverage Report Link: file:$(CURDIR)/$(O)/$(ARCH)/lcov/index.html\n"