From: Bastian Dehn Date: Mon, 2 Mar 2026 18:29:36 +0000 (+0100) Subject: add after run tests cppcheck X-Git-Tag: 1.1.6^2~2 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=776c0da5d334d30aad93249ea1d4e8077162d12a;p=mv_none_space.git add after run tests cppcheck --- diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5dd002b..3c7d394 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.25.1) find_library(CMOCKA cmocka REQUIRED) +find_program(CPPCHECK cppcheck REQUIRED) add_executable(rename_tests rename_tests.c @@ -10,4 +11,12 @@ target_link_libraries(rename_tests add_custom_target(run_tests ALL ./rename_tests - DEPENDS rename_tests) \ No newline at end of file + DEPENDS rename_tests) + +add_custom_command(TARGET run_tests + POST_BUILD + COMMAND ${CPPCHECK} + --check-level=exhaustive + --enable=warning,style + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_SOURCE_DIR}/tests) \ No newline at end of file