]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change cppcheck after code coverage
authorBastian Dehn <hhaalo@arcor.de>
Fri, 7 Nov 2025 19:42:49 +0000 (20:42 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 7 Nov 2025 19:42:49 +0000 (20:42 +0100)
tests/CMakeLists.txt

index db92439495a34da71c27c7d8ff2982e16c71aace..147fabcad35dcdf5975e25e5d2dce54464a3435f 100644 (file)
@@ -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