🧪 test: wire ast/symbol scripts into ctest
This commit is contained in:
@@ -103,3 +103,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_symbol_script
|
||||
COMMAND ${CMAKE_COMMAND} -E env
|
||||
TEST_SYMBOL_OVERRIDE=$<TARGET_FILE:test_symbol>
|
||||
BUILD_PRESET=ctest
|
||||
bash ${CMAKE_CURRENT_SOURCE_DIR}/test.sh)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user