From a5bff8f17e6850b3aa1ae2638f43077a184d1b01 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 72cc737c6e..7d02986855 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -319,14 +319,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