aboutsummaryrefslogtreecommitdiffstats
path: root/trial/direct_bt
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-05-20 21:31:45 +0200
committerSven Göthel <[email protected]>2024-05-20 21:31:45 +0200
commitb00ecb3f1d1145b2b03a25989b3125729651022b (patch)
treed0ad51b0e6fe02e95626b4137d491e0af0c31cb3 /trial/direct_bt
parent751a95e73ccd4f976184e6b75c51828d29509d59 (diff)
Adjust clang-tidy setup, project wide and per unit tests (drop 'bugprone-chained-comparison' for Catch2)
Diffstat (limited to 'trial/direct_bt')
-rw-r--r--trial/direct_bt/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/trial/direct_bt/CMakeLists.txt b/trial/direct_bt/CMakeLists.txt
index e982207f..ea5956e9 100644
--- a/trial/direct_bt/CMakeLists.txt
+++ b/trial/direct_bt/CMakeLists.txt
@@ -14,6 +14,9 @@ foreach( name ${TARGETS_IDIOMATIC_TRIALS} )
add_test (NAME ${name} COMMAND sudo -E /sbin/capsh --caps=cap_net_raw,cap_net_admin+eip\ cap_setpcap,cap_setuid,cap_setgid+ep
--keep=1 --user=$ENV{USER} --addamb=cap_net_raw,cap_net_admin+eip
-- -c "ulimit -c unlimited; ./${name}")
+ if(DEFINED CMAKE_CXX_CLANG_TIDY)
+ set_target_properties(${name} PROPERTIES CXX_CLANG_TIDY "${CMAKE_CXX_CLANG_TIDY};--checks;-bugprone-chained-comparison")
+ endif()
endforeach()
file(GLOB_RECURSE SOURCES_IDIOMATIC_PROVOCATIONS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "provoke_*.cpp")