fix: harden task recovery and DR contract handling

This commit is contained in:
2026-09-20 13:36:48 +08:00
parent 492676344a
commit f9d8feb6f0
49 changed files with 2083 additions and 165 deletions
+4 -2
View File
@@ -13,8 +13,10 @@ target_link_libraries(robot_bt_demo PRIVATE robot_bt_sim)
target_compile_options(robot_bt_demo PRIVATE -Wall -Wextra -Werror)
include(CTest)
if(BUILD_TESTING)
foreach(test_name core_test workflow_test journal_failure_test preflight_test settlement_test proof_regression_test readiness_regression_test scenario_test lifecycle_test)
add_executable(${test_name} tests/${test_name}.cpp)
file(GLOB core_test_sources CONFIGURE_DEPENDS "tests/*_test.cpp")
foreach(test_source IN LISTS core_test_sources)
get_filename_component(test_name "${test_source}" NAME_WE)
add_executable(${test_name} "${test_source}")
target_link_libraries(${test_name} PRIVATE robot_bt_core)
target_compile_options(${test_name} PRIVATE -Wall -Wextra -Werror -UNDEBUG)
add_test(NAME ${test_name} COMMAND ${test_name})