From 0dd0b0908300eee08a06ee51d9eb48b85fd97d74 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 27 Oct 2026 13:27:14 +0000 Subject: refactor(memory)!: move allocation functions into memory.cps Route keyword NEW and DELETE through the same library runtime and retain allocation tracking, runtime diagnostics and exception behavior. BREAKING CHANGE: -no-std programs using NEW or DELETE must explicitly import memory.cps. Co-Authored-By: Claude Opus 5.5 --- tests/CMakeLists.txt | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'tests/CMakeLists.txt') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c5b33a1..b7b2e45 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -31,16 +31,18 @@ foreach(suite i ii iii) endforeach() endforeach() -# Keep the library beside its built objects without assuming a build directory name. -set(cpsc_library_case "${CMAKE_BINARY_DIR}/test-cases/i/exp-string") -foreach(file program.cps case.json expected.txt expected-stderr.txt) - configure_file("library/exp-string/${file}" "${cpsc_library_case}/${file}" COPYONLY) +# Keep the libraries beside their built objects without assuming a build directory name. +foreach(library exp-string exp-memory) + set(cpsc_library_case "${CMAKE_BINARY_DIR}/test-cases/i/${library}") + foreach(file program.cps case.json expected.txt expected-stderr.txt) + configure_file("library/${library}/${file}" "${cpsc_library_case}/${file}" COPYONLY) + endforeach() + add_test(NAME "i/${library}" COMMAND "${PERL_EXECUTABLE}" + "${CMAKE_CURRENT_SOURCE_DIR}/run.pl" + --case "${cpsc_library_case}/case.json" --cpsc "$" + --run-mode "${CPSC_RUN_MODE}" --perl "${PERL_EXECUTABLE}" + --cc "${CMAKE_C_COMPILER}" --cxx "${CMAKE_CXX_COMPILER}" + --seed "${CPSC_TEST_SEED}" --count "${CPSC_TEST_COUNT}" + --results "${CMAKE_BINARY_DIR}/test-results") + set_tests_properties("i/${library}" PROPERTIES LABELS "i" TIMEOUT 900) endforeach() -add_test(NAME "i/exp-string" COMMAND "${PERL_EXECUTABLE}" - "${CMAKE_CURRENT_SOURCE_DIR}/run.pl" - --case "${cpsc_library_case}/case.json" --cpsc "$" - --run-mode "${CPSC_RUN_MODE}" --perl "${PERL_EXECUTABLE}" - --cc "${CMAKE_C_COMPILER}" --cxx "${CMAKE_CXX_COMPILER}" - --seed "${CPSC_TEST_SEED}" --count "${CPSC_TEST_COUNT}" - --results "${CMAKE_BINARY_DIR}/test-results") -set_tests_properties("i/exp-string" PROPERTIES LABELS "i" TIMEOUT 900) -- cgit v1.3.1-4-g156e