diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-27 13:27:14 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-27 13:27:14 +0000 |
| commit | 0dd0b0908300eee08a06ee51d9eb48b85fd97d74 (patch) | |
| tree | 8e18df810a1d88f686f2b85ed2f05e3aa0985119 /tests/CMakeLists.txt | |
| parent | 790e0fd7c5a81b9a27a6d84e0f3f4c7a0b17d04b (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'tests/CMakeLists.txt')
| -rw-r--r-- | tests/CMakeLists.txt | 26 |
1 files changed, 14 insertions, 12 deletions
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 "$<TARGET_FILE: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 "$<TARGET_FILE: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) |
