From bb6f42b7e9420e7edd9fa5a55618aa8b5464d5c6 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sun, 26 Oct 2025 10:56:17 +0100 Subject: [PATCH] add excludes for code coverage --- tests/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0c7a792..388b4b2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -111,7 +111,13 @@ ADD_CUSTOM_TARGET("generate_gcov_coverage" DEPENDS "runningtests") ADD_CUSTOM_TARGET("generate_lcov_coverage" - ALL lcov --capture --directory ${CMAKE_BINARY_DIR}/src/CMakeFiles/sane-kds_s2000w_net-static.dir --output-file ${CMAKE_BINARY_DIR}/coverage.info + ALL lcov --capture + --directory ${CMAKE_BINARY_DIR}/src/CMakeFiles/sane-kds_s2000w_net-static.dir + --exclude "include*" + --exclude "kds_s2000w_client.c" + --exclude "kds_s2000w_heartbeat.c" + --exclude "kds_s2000w_debug.c" + --output-file ${CMAKE_BINARY_DIR}/coverage.info DEPENDS "generate_gcov_coverage") ADD_CUSTOM_TARGET("generate_html_coverage" -- 2.47.3