3
# Create a report of code coverage with the help of zcov.
5
# Do not use this script directly, run configure with --enable-code-coverage,
6
# build the library, then run the tests:
7
# ./configure --enable-code-coverage
12
# note: LANG=C and LC_ALL=C are required for zcov to work correctly
16
# scan for gcov output files, create the output.zcov report file
17
echo -n "Collect information about code coverage... " >&2
18
LANG=C LC_ALL=C zcov-scan output.zcov . || exit 1
21
# generate one HTML report from the collected data
22
echo -n "Generate HTML report about code coverage... " >&2
23
LANG=C LC_ALL=C zcov-genhtml output.zcov coverage-report/ || exit 1
27
echo "Load ./coverage-report/index.html in your favorite browser." >&2