Skip to content

Commit

Permalink
add branch coverage, skip coverage check of tests themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed May 7, 2015
1 parent abd0688 commit 134f323
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gen-coverage-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 134f323

Please sign in to comment.