From: Bastian Dehn Date: Sun, 26 Oct 2025 09:56:17 +0000 (+0100) Subject: add excludes for code coverage X-Git-Tag: v1.1.17^2~11 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=bb6f42b7e9420e7edd9fa5a55618aa8b5464d5c6;p=sane-kds-s2000w-net.git add excludes for code coverage --- 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"