mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 08:35:36 +01:00
Exclude headers from lcov reports
The data produced by gcov for static inline functions is too unreliable to be actually useful. Some lines that are covered are not marked as such, some other static inline functions are completely ignored, and the reasons why do not look obvious.
This commit is contained in:
parent
0dc5e0d80b
commit
e41072e7f9
@ -96,9 +96,11 @@ if(ENABLE_TESTING)
|
||||
COMMAND rm -rf Coverage
|
||||
COMMAND lcov --capture --initial --directory library/CMakeFiles/polarssl.dir -o files.info
|
||||
COMMAND lcov --capture --directory library/CMakeFiles/polarssl.dir -o tests.info
|
||||
COMMAND lcov --add-tracefile files.info --add-tracefile tests.info -o all.info
|
||||
COMMAND lcov --remove all.info -o final.info '*.h'
|
||||
COMMAND gendesc tests/Descriptions.txt -o descriptions
|
||||
COMMAND genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage files.info tests.info
|
||||
COMMAND rm -f files.info tests.info descriptions
|
||||
COMMAND genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage final.info
|
||||
COMMAND rm -f files.info tests.info all.info final.info descriptions
|
||||
)
|
||||
|
||||
ADD_CUSTOM_TARGET(memcheck
|
||||
|
6
Makefile
6
Makefile
@ -68,9 +68,11 @@ lcov:
|
||||
rm -rf Coverage
|
||||
lcov --capture --initial --directory library -o files.info
|
||||
lcov --capture --directory library -o tests.info
|
||||
lcov --add-tracefile files.info --add-tracefile tests.info -o all.info
|
||||
lcov --remove all.info -o final.info '*.h'
|
||||
gendesc tests/Descriptions.txt -o descriptions
|
||||
genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage files.info tests.info
|
||||
rm -f files.info tests.info descriptions
|
||||
genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage final.info
|
||||
rm -f files.info tests.info all.info final.info descriptions
|
||||
|
||||
apidoc:
|
||||
mkdir -p apidoc
|
||||
|
Loading…
Reference in New Issue
Block a user