]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[github43] Merge branch 'makefile-am' of https://github.com/andreipavelQ/kea into...
authorTomek Mrugalski <tomasz@isc.org>
Tue, 30 Jan 2018 19:31:11 +0000 (20:31 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 30 Jan 2018 19:31:11 +0000 (20:31 +0100)
# Conflicts:
# Makefile.am

1  2 
Makefile.am

diff --cc Makefile.am
index 4d58d9fa30470c98eb8f25bb8d33a0fb9e9504b4,bbdaa74ce5928526eafacd81652c9a536261f05d..3fc9abefcf39bfd0721e9f31aaf61b19da8a51c8
@@@ -62,35 -63,43 +63,45 @@@ clean-cpp-coverage
                echo "Use: ./configure --with-lcov" ; \
        fi
  
- perform-coverage: check
+ perform-coverage:
+       find src -mindepth 2 -maxdepth 2 -type d | xargs -I{} bash -c "cd {}; make check || true"
  
  report-cpp-coverage:
+ if HAVE_BOTAN
+ BOTAN_PATH=botan/\*
+ else
+ BOTAN_PATH=
+ endif
+ if HAVE_OPENSSL
+ OPENSSL_PATH=openssl/\*
+ else
+ OPENSSL_PATH=
+ endif
        @if [ $(USE_LCOV) = yes ] ; then \
-               $(LCOV) --capture --directory . --output-file all.info ; \
+               $(LCOV) --capture --directory . \
+                       --ignore-errors gcov,source,graph \
+                       --output-file all.info; \
                $(LCOV) --remove all.info \
-                       c++/4.4\*/\* \
-                       c++/4.4\*/backward/\* \
-                       c++/4.4\*/bits/\* \
-                       c++/4.4\*/ext/\* \
-                       c++/4.4\*/\*-\*/bits/\* \
+                       c++/* \
                        boost/\* \
 -                      ext/coroutine/\* \
 +if HAVE_BOTAN
 +                      botan/\* \
 +endif
                        gtest/\* \
                        include/\* \
+                       lib/\eval/\* \
                        log4cplus/\* \
- if HAVE_OPENSSL
-                       openssl/\* \
- endif
                        unittests/\* \
-                       \*_unittests.cc \
-                       \*_unittest.cc \
-                       \*_unittests.h \
-                       --output 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" ; \
+                       tests/\* \
+                       testutils/\* \
+                       valgrind/\* \
+                       $(BOTAN_PATH) \
+                       $(OPENSSL_PATH) \
+                       --ignore-errors gcov,source,graph \
+                       --output report.info; \
+               sed --in-place --expression "s|$(abs_top_srcdir)|$(abs_top_builddir)|g" report.info; \
+               "$(GENHTML)" --frames --show-details --title 'Kea code coverage report' --legend --function-coverage --ignore-errors source --demangle-cpp --output "$(OVERALL_COVERAGE_DIR)" report.info; \
+               printf "Generated C++ code coverage report in HTML at %s.\n" "$(OVERALL_COVERAGE_DIR)"; \
        else \
                echo "C++ code coverage not enabled at configuration time." ; \
                echo "Use: ./configure --with-lcov" ; \