mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 13:55:37 +01:00
Force lcov to notice files not covered at all
This commit is contained in:
parent
edc3ab20e2
commit
53c6e96ce7
@ -85,9 +85,6 @@ if(ENABLE_TESTING)
|
|||||||
COMMAND tests/scripts/test-ref-configs.pl
|
COMMAND tests/scripts/test-ref-configs.pl
|
||||||
)
|
)
|
||||||
|
|
||||||
# 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
|
|
||||||
ADD_CUSTOM_TARGET(covtest
|
ADD_CUSTOM_TARGET(covtest
|
||||||
COMMAND make test
|
COMMAND make test
|
||||||
COMMAND programs/test/selftest
|
COMMAND programs/test/selftest
|
||||||
@ -97,10 +94,11 @@ if(ENABLE_TESTING)
|
|||||||
|
|
||||||
ADD_CUSTOM_TARGET(lcov
|
ADD_CUSTOM_TARGET(lcov
|
||||||
COMMAND rm -rf Coverage
|
COMMAND rm -rf Coverage
|
||||||
COMMAND lcov --capture --directory library/CMakeFiles/polarssl.dir -o polarssl.info
|
COMMAND lcov --capture --initial --directory library/CMakeFiles/polarssl.dir -o files.info
|
||||||
|
COMMAND lcov --capture --directory library/CMakeFiles/polarssl.dir -o tests.info
|
||||||
COMMAND gendesc tests/Descriptions.txt -o descriptions
|
COMMAND gendesc tests/Descriptions.txt -o descriptions
|
||||||
COMMAND genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage polarssl.info
|
COMMAND genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage files.info tests.info
|
||||||
COMMAND rm -f polarssl.info descriptions
|
COMMAND rm -f files.info tests.info descriptions
|
||||||
)
|
)
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(memcheck
|
ADD_CUSTOM_TARGET(memcheck
|
||||||
|
10
Makefile
10
Makefile
@ -60,19 +60,17 @@ test-ref-configs:
|
|||||||
# CFLAGS='--coverage' make OFLAGS='-g3 -O0'
|
# CFLAGS='--coverage' make OFLAGS='-g3 -O0'
|
||||||
covtest:
|
covtest:
|
||||||
make check
|
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
|
programs/test/selftest
|
||||||
( cd tests && ./compat.sh )
|
( cd tests && ./compat.sh )
|
||||||
( cd tests && ./ssl-opt.sh )
|
( cd tests && ./ssl-opt.sh )
|
||||||
|
|
||||||
lcov:
|
lcov:
|
||||||
rm -rf Coverage
|
rm -rf Coverage
|
||||||
lcov --capture --directory library -o polarssl.info
|
lcov --capture --initial --directory library -o files.info
|
||||||
|
lcov --capture --directory library -o tests.info
|
||||||
gendesc tests/Descriptions.txt -o descriptions
|
gendesc tests/Descriptions.txt -o descriptions
|
||||||
genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage polarssl.info
|
genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage files.info tests.info
|
||||||
rm -f polarssl.info descriptions
|
rm -f files.info tests.info descriptions
|
||||||
|
|
||||||
apidoc:
|
apidoc:
|
||||||
mkdir -p apidoc
|
mkdir -p apidoc
|
||||||
|
Loading…
Reference in New Issue
Block a user