From cb33076353c4a8d5fd9027a16a032cdac53ba23e Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 30 Nov 2022 17:52:01 +0100 Subject: [PATCH] Call the new lcov script from CMake builds The code in CMakeLists.txt was an old copy of the code in Makefile. This brings in branch coverage, which had only been added to Makefile. Signed-off-by: Gilles Peskine --- CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59a960a8b..3a870a758 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,14 +312,7 @@ if(ENABLE_TESTING) ) ADD_CUSTOM_TARGET(lcov - COMMAND rm -rf Coverage - COMMAND lcov --capture --initial --directory library/CMakeFiles/mbedtls.dir -o files.info - COMMAND lcov --capture --directory library/CMakeFiles/mbedtls.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 "mbed TLS" --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 + COMMAND scripts/lcov.sh ) ADD_CUSTOM_TARGET(memcheck