aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/BuildHostTests.cmake
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-08-20 11:27:04 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-08-20 11:27:04 +0200
commit5a4342e69ecc19d1408f622ceb7f8a8bbe6c1d20 (patch)
tree3cb26d646463094730ac066cd193cf70ad4a5b18 /cmake/Modules/BuildHostTests.cmake
parentde473afc0bf677e40cd660062f2518f8ade6e346 (diff)
downloadkernel-5a4342e69ecc19d1408f622ceb7f8a8bbe6c1d20.tar.xz
kernel-5a4342e69ecc19d1408f622ceb7f8a8bbe6c1d20.zip
build: improve linting exclusions for tests
Diffstat (limited to 'cmake/Modules/BuildHostTests.cmake')
-rw-r--r--cmake/Modules/BuildHostTests.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/Modules/BuildHostTests.cmake b/cmake/Modules/BuildHostTests.cmake
index d92c3308..9edc0afa 100644
--- a/cmake/Modules/BuildHostTests.cmake
+++ b/cmake/Modules/BuildHostTests.cmake
@@ -11,6 +11,10 @@ function("teachos_add_tests" NAME)
"*.tests.cpp"
)
+ set_source_files_properties(${TEST_SOURCES} PROPERTIES
+ SKIP_LINTING YES
+ )
+
target_sources("${NAME}_tests" PRIVATE
${TEST_SOURCES}
)
@@ -44,6 +48,10 @@ function("teachos_add_stress_tests" NAME)
"*.stress.cpp"
)
+ set_source_files_properties(${TEST_SOURCES} PROPERTIES
+ SKIP_LINTING YES
+ )
+
target_sources("${NAME}_stress_tests" PRIVATE
${TEST_SOURCES}
)