From 34060d3da24bb78a09a6819867a7b8022b51da6c Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Mon, 4 Jul 2016 10:24:48 +0200 Subject: [PATCH] Revert "Capture only coverage data for the current project in the first place, instead of extracting it from all coverage data in a second step. This seems to be needed as extraction spuriously might fail in some cases." This reverts commit ce14dcd0f185a67e818242e58f1229aa2c703713. Reason for the revert: The change did not work on Ubuntu 12.04 due to an old version of lcov. --- cmake/Makefile.coverage.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/Makefile.coverage.in b/cmake/Makefile.coverage.in index 89996e01..afda6673 100644 --- a/cmake/Makefile.coverage.in +++ b/cmake/Makefile.coverage.in @@ -19,5 +19,8 @@ coverage: rm -f `find . -name "*\.gcda"` make test - lcov --capture --directory . --output-file coverage.info --no-external --base-directory "@CMAKE_SOURCE_DIR@" + lcov --capture --directory . --output-file coverage_all.info + #lcov capture also includes external stuff like glibc, boost etc. + #only extract the reports for this project + lcov --extract coverage_all.info "@CMAKE_SOURCE_DIR@*" -o coverage.info genhtml coverage.info --output-directory coverage_html -- GitLab