From 134f32392348d9897de5079b807ac4e5092d0208 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 7 May 2015 07:56:19 -0500 Subject: [PATCH] add branch coverage, skip coverage check of tests themselves --- gen-coverage-report.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gen-coverage-report.sh b/gen-coverage-report.sh index 1a199cf..b11f3f9 100755 --- a/gen-coverage-report.sh +++ b/gen-coverage-report.sh @@ -29,9 +29,15 @@ make check echo "Generating report" mkdir -p $DESTDIR find tests -name '*.gcda' -o -name '*.gcno' -delete -lcov --directory . --capture --output-file $DESTDIR/coverage.tmp \ +lcov --capture --output-file $DESTDIR/coverage.tmp \ + --rc lcov_branch_coverage=1 \ + --directory crypto \ + --directory ssl \ + --directory tls \ --test-name "LibreSSL $VERSION" genhtml --prefix . --output-directory $DESTDIR \ + --branch-coverage --function-coverage \ + --rc lcov_branch_coverage=1 \ --title "LibreSSL $VERSION" --legend --show-detail $DESTDIR/coverage.tmp echo "Code coverage report is available under $DESTDIR"