Files
aevolution/tests/cellular_population_restart.cmake
T
dingo 1e23dc3799
Foundation / checks (ecs) (push) Successful in 2m33s
Foundation / checks (deploy) (push) Successful in 4m36s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 8m8s
Foundation / checks (checks) (push) Canceled after 10m47s
Foundation / checks (client) (push) Canceled after 10m49s
Foundation / checks (network) (push) Canceled after 10m48s
Foundation / checks (postgres) (push) Canceled after 10m49s
CI: repair sanitizer fixtures and client execution gates
2026-10-17 22:22:34 -04:00

21 lines
998 B
CMake

if(DEFINED ENV{EVO_TEST_TMPDIR} AND NOT "$ENV{EVO_TEST_TMPDIR}" STREQUAL "")
string(RANDOM LENGTH 16 ALPHABET 0123456789abcdef run_id)
set(TEST_DIR "$ENV{EVO_TEST_TMPDIR}/population-restart-${run_id}")
endif()
file(MAKE_DIRECTORY "${TEST_DIR}")
execute_process(COMMAND "${POPULATION_TEST}" --checkpoint "${TEST_DIR}/checkpoint.pop"
"${TEST_DIR}/expected.pop" RESULT_VARIABLE prepared)
if(NOT prepared EQUAL 0)
message(FATAL_ERROR "Population checkpoint preparation failed: ${prepared}")
endif()
execute_process(COMMAND "${POPULATION_TEST}" --resume "${TEST_DIR}/checkpoint.pop"
"${TEST_DIR}/resumed.pop" RESULT_VARIABLE resumed)
if(NOT resumed EQUAL 0)
message(FATAL_ERROR "Fresh-process population recovery failed: ${resumed}")
endif()
execute_process(COMMAND "${CMAKE_COMMAND}" -E compare_files "${TEST_DIR}/expected.pop"
"${TEST_DIR}/resumed.pop" RESULT_VARIABLE compared)
if(NOT compared EQUAL 0)
message(FATAL_ERROR "Population state diverged across process recovery")
endif()