coverage: Exclude test suites and /usr from coverage report
authorTobias Brunner <tobias@strongswan.org>
Wed, 15 Mar 2017 14:54:38 +0000 (15:54 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 15 Mar 2017 14:54:38 +0000 (15:54 +0100)
Makefile.am

index 64b858d..a02c576 100644 (file)
@@ -54,7 +54,7 @@ cov-report:
                @mkdir $(top_builddir)/coverage
                lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir) \
                         --rc lcov_branch_coverage=1
-               lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
+               lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' '*/suites/*' '/usr*' \
                         -o $(top_builddir)/coverage/coverage.cleaned.info \
                         --rc lcov_branch_coverage=1
                genhtml --num-spaces 4 --legend --branch-coverage --ignore-errors source \