Add test descriptions for lcov

This commit is contained in:
Manuel Pégourié-Gonnard 2014-02-24 12:39:18 +01:00
parent 61137df560
commit 720375e7ea
3 changed files with 33 additions and 7 deletions

View file

@ -56,17 +56,23 @@ check: lib
test-ref-configs:
tests/scripts/test-ref-configs.pl
# note: for coverage testing, build with:
# CFLAGS='--coverage' make OFLAGS='-g3 -O0'
testcov:
make check
# add programs/test/selftest even though the selftest functions are
# called from the testsuites since it runs them in verbose mode,
# avoiding spurious "uncovered" printf lines
programs/test/selftest
( cd tests && ./compat.sh )
( cd tests && ./ssl-opt.sh )
lcov:
rm -rf Coverage
( cd library && lcov --capture --directory . -o polarssl.info )
( cd library && genhtml --title PolarSSL --legend --no-branch-coverage \
-o ../Coverage polarssl.info )
lcov --capture --directory library -o polarssl.info
gendesc tests/Descriptions.txt -o descriptions
genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage polarssl.info
rm -f polarssl.info descriptions
apidoc:
mkdir -p apidoc