From 58003f68894d4f0c42ca30e3a32fa245db8d8036 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 29 Oct 2026 09:24:10 +0000 Subject: kstd: add Catch2 string makers for printable test output Co-Authored-By: Claude Opus 5.5 --- libs/kstd/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/kstd/CMakeLists.txt') diff --git a/libs/kstd/CMakeLists.txt b/libs/kstd/CMakeLists.txt index 1902d0d9..d7af1952 100644 --- a/libs/kstd/CMakeLists.txt +++ b/libs/kstd/CMakeLists.txt @@ -83,6 +83,10 @@ if(BUILD_TESTING) teachos_add_tests("kstd") + target_compile_options("kstd_tests" PRIVATE + "SHELL:-include ${CMAKE_CURRENT_SOURCE_DIR}/kstd/test_support/string_makers.hpp" + ) + if(COMMAND "enable_coverage" AND KSTD_ENABLE_TEST_COVERAGE) enable_coverage("kstd") enable_coverage("kstd_tests") -- cgit v1.2.3 From 1415e1e7e0011b0c9f42978f013a5d79007bf255 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 12 Nov 2026 07:27:58 +0000 Subject: test: apply review feedback for Catch2 string makers - restrict the -include force-include flag to GCC and Clang - drop the redundant explicit include in the kernel string maker tests - apply clang-format Co-Authored-By: Claude Opus 5.5 --- libs/kstd/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/kstd/CMakeLists.txt') diff --git a/libs/kstd/CMakeLists.txt b/libs/kstd/CMakeLists.txt index d7af1952..c6e02223 100644 --- a/libs/kstd/CMakeLists.txt +++ b/libs/kstd/CMakeLists.txt @@ -84,7 +84,7 @@ if(BUILD_TESTING) teachos_add_tests("kstd") target_compile_options("kstd_tests" PRIVATE - "SHELL:-include ${CMAKE_CURRENT_SOURCE_DIR}/kstd/test_support/string_makers.hpp" + "$<$:SHELL:-include ${CMAKE_CURRENT_SOURCE_DIR}/kstd/test_support/string_makers.hpp>" ) if(COMMAND "enable_coverage" AND KSTD_ENABLE_TEST_COVERAGE) -- cgit v1.2.3