Skip to content

Commit 134f323

Browse files
committed
add branch coverage, skip coverage check of tests themselves
1 parent abd0688 commit 134f323

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gen-coverage-report.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ make check
2929
echo "Generating report"
3030
mkdir -p $DESTDIR
3131
find tests -name '*.gcda' -o -name '*.gcno' -delete
32-
lcov --directory . --capture --output-file $DESTDIR/coverage.tmp \
32+
lcov --capture --output-file $DESTDIR/coverage.tmp \
33+
--rc lcov_branch_coverage=1 \
34+
--directory crypto \
35+
--directory ssl \
36+
--directory tls \
3337
--test-name "LibreSSL $VERSION"
3438
genhtml --prefix . --output-directory $DESTDIR \
39+
--branch-coverage --function-coverage \
40+
--rc lcov_branch_coverage=1 \
3541
--title "LibreSSL $VERSION" --legend --show-detail $DESTDIR/coverage.tmp
3642

3743
echo "Code coverage report is available under $DESTDIR"

0 commit comments

Comments
 (0)