🧪 test: register remaining tests in ctest

This commit is contained in:
csh
2025-12-21 15:52:09 +08:00
parent f2d2aeb272
commit fbf6c85baa
6 changed files with 40 additions and 0 deletions
@@ -120,3 +120,11 @@ target_compile_options(
-Wall -Wextra -Wpedantic $<$<CONFIG:Debug>:-g -O0>
-Wno-import-implementation-partition-unit-in-interface-unit
$<$<CONFIG:Release>:-O3>)
if(BUILD_TESTS)
add_test(NAME test_semantic_script
COMMAND ${CMAKE_COMMAND} -E env
TEST_SEMANTIC_OVERRIDE=$<TARGET_FILE:test_semantic>
BUILD_PRESET=ctest
bash ${CMAKE_CURRENT_SOURCE_DIR}/test.sh)
endif()