add branch coverage, skip coverage check of tests themselves

This commit is contained in:
Brent Cook 2015-05-07 07:56:19 -05:00
parent abd0688b18
commit 134f323923

View File

@ -29,9 +29,15 @@ make check
echo "Generating report" echo "Generating report"
mkdir -p $DESTDIR mkdir -p $DESTDIR
find tests -name '*.gcda' -o -name '*.gcno' -delete 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" --test-name "LibreSSL $VERSION"
genhtml --prefix . --output-directory $DESTDIR \ genhtml --prefix . --output-directory $DESTDIR \
--branch-coverage --function-coverage \
--rc lcov_branch_coverage=1 \
--title "LibreSSL $VERSION" --legend --show-detail $DESTDIR/coverage.tmp --title "LibreSSL $VERSION" --legend --show-detail $DESTDIR/coverage.tmp
echo "Code coverage report is available under $DESTDIR" echo "Code coverage report is available under $DESTDIR"