2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

adjust report-cpp-coverage make target

exclude include/ so will remove /usr/local/include too

also add a hack to change the paths to be consistent
in the case that the directory the job is done in is a symlink
to another directory.
(Alternative method would be to run the lcov tool multiple times
for each path and set the base-directory switch plus add-tracefile
switch to combine.)

I didn't get this reviewed. I am under assuption that this make target
is rarely used.
This commit is contained in:
Jeremy C. Reed 2014-05-23 18:06:09 +00:00
parent a6c7bda20a
commit ededfc86ed

View File

@ -78,14 +78,15 @@ report-cpp-coverage:
ext/coroutine/\* \ ext/coroutine/\* \
gtest/\* \ gtest/\* \
log4cplus/\* \ log4cplus/\* \
usr/include/\* \ include/\* \
tests/\* \ tests/\* \
unittests/\* \ unittests/\* \
\*_unittests.cc \ \*_unittests.cc \
\*_unittest.cc \ \*_unittest.cc \
\*_unittests.h \ \*_unittests.h \
--output report.info ; \ --output report.info ; \
$(GENHTML) --legend -o $(abs_top_builddir)/coverage-cpp-html report.info ; \ sed -e "s|$(abs_top_srcdir)|$(abs_top_builddir)|g" < report.info > report.info.2 ; \
$(GENHTML) --legend -o $(abs_top_builddir)/coverage-cpp-html report.info.2 ; \
echo "Generated C++ Code Coverage report in HTML at $(abs_top_builddir)/coverage-cpp-html" ; \ echo "Generated C++ Code Coverage report in HTML at $(abs_top_builddir)/coverage-cpp-html" ; \
else \ else \
echo "C++ code coverage not enabled at configuration time." ; \ echo "C++ code coverage not enabled at configuration time." ; \