]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
adjust report-cpp-coverage make target
authorJeremy C. Reed <jreed@isc.org>
Fri, 23 May 2014 18:06:09 +0000 (18:06 +0000)
committerJeremy C. Reed <jreed@isc.org>
Fri, 23 May 2014 18:06:09 +0000 (18:06 +0000)
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.

Makefile.am

index 6fd0200c5e1d6445ee049f755da42d513950b862..014d7aa279818e135fe3f11a03280b8366e4a247 100644 (file)
@@ -78,14 +78,15 @@ report-cpp-coverage:
                        ext/coroutine/\* \
                        gtest/\* \
                        log4cplus/\* \
-                       usr/include/\* \
+                       include/\* \
                        tests/\* \
                        unittests/\* \
                        \*_unittests.cc \
                        \*_unittest.cc \
                        \*_unittests.h \
                        --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" ; \
        else \
                echo "C++ code coverage not enabled at configuration time." ; \