From e00f37083bfb00d05d2a0f30cf72b2f7cb2d5a38 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Fri, 7 Nov 2025 20:42:49 +0100 Subject: [PATCH] change cppcheck after code coverage --- tests/CMakeLists.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index db92439..147fabc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -107,16 +107,6 @@ add_custom_target(runningtests kds_s2000w_image_converter_tests kds_s2000w_pixel_converter_tests) -add_custom_command(TARGET runningtests - POST_BUILD - COMMAND ${CPPCHECK} - --check-level=exhaustive - --enable=warning,style - --inline-suppr - --error-exitcode=1 - ${CMAKE_SOURCE_DIR}/src - ${CMAKE_SOURCE_DIR}/tests) - add_custom_command(TARGET runningtests POST_BUILD COMMAND gcov ${CMAKE_BINARY_DIR}/src/CMakeFiles/sane-kds_s2000w_net-static.dir/*.c.o @@ -131,4 +121,14 @@ add_custom_command(TARGET runningtests --output-file ${CMAKE_BINARY_DIR}/coverage.info COMMAND genhtml --output-directory ${CMAKE_BINARY_DIR}/coverage - ${CMAKE_BINARY_DIR}/coverage.info) \ No newline at end of file + ${CMAKE_BINARY_DIR}/coverage.info) + +add_custom_command(TARGET runningtests + POST_BUILD + COMMAND ${CPPCHECK} + --check-level=exhaustive + --enable=warning,style + --inline-suppr + --error-exitcode=1 + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_SOURCE_DIR}/tests) \ No newline at end of file -- 2.47.3