]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
add check dep cppcheck
authorBastian Dehn <hhaalo@arcor.de>
Wed, 22 Oct 2025 15:40:58 +0000 (17:40 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 22 Oct 2025 15:40:58 +0000 (17:40 +0200)
builder/Containerfile-forky
builder/Containerfile-trixie
tests/CMakeLists.txt

index ba48d46d7909c6e8f49874046d1a432c256865ea..df9f6abb41cd82dc5ecc9f98dcf89aa3aec1b97f 100644 (file)
@@ -11,6 +11,7 @@ libconfuse-dev \
 libcurl4-gnutls-dev \
 libjson-c-dev \
 libcmocka-dev \
+cppcheck \
 lcov \
 && apt-get clean
 COPY run /app/run
index f096f4e722d7a1e9a90fe66053cfaa11c586199d..2ddcd321f61bb2bab97949595cecf39839108f9e 100644 (file)
@@ -11,6 +11,7 @@ libconfuse-dev \
 libcurl4-gnutls-dev \
 libjson-c-dev \
 libcmocka-dev \
+cppcheck \
 lcov \
 && apt-get clean
 COPY run /app/run
index 3b86e3a09ecd2ea53f65931854d4c0aa70e65672..861de06a20131b2bcee1a2355846fbf8a623bf74 100644 (file)
@@ -1,8 +1,10 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1)
 
 FIND_PACKAGE(CMOCKA REQUIRED)
+FIND_PROGRAM(CPPCHECK cppcheck REQUIRED)
 
 MESSAGE(STATUS "find ${CMOCKA_LIBRARY}")
+MESSAGE(STATUS "find ${CPPCHECK}")
 
 ADD_EXECUTABLE("kds_s2000w_net_get_opt_tests"
        "kds_s2000w_net_get_opt_tests.c"
@@ -86,7 +88,7 @@ ADD_CUSTOM_TARGET("runningtests"
        "kds_s2000w_pixel_converter_tests")
 
 ADD_CUSTOM_TARGET("cppcheck"
-       ALL cppcheck --check-level=exhaustive
+       ALL ${CPPCHECK} --check-level=exhaustive
                --enable=warning,style
                --inline-suppr
                --error-exitcode=1