From c036630e8817393226e3dd3b276ed7db7af3f5fb Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 20 Dec 2016 00:47:17 +0300 Subject: [PATCH] Execute more single-threaded GC tests by CMake (Cherry-pick commits 495b4fe, 686c871 from 'master' branch.) Note: support of the multi-threaded tests, disclaim_bench/test, trace_test, staticrootstest is not added to cmake test script yet. * tests/CMakeLists.txt (ADD_EXECUTABLE, TARGET_LINK_LIBRARIES, ADD_TEST): Add hugetest, leaktest, middletest, realloc_test, smashtest (similar to gctest). --- tests/CMakeLists.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a24872c9..26663493 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,6 +15,27 @@ ## ADD_DEFINITIONS(-DGC_NOT_DLL) + ADD_EXECUTABLE(gctest WIN32 test.c) TARGET_LINK_LIBRARIES(gctest gc-lib) ADD_TEST(NAME gctest COMMAND gctest) + +ADD_EXECUTABLE(hugetest huge_test.c) +TARGET_LINK_LIBRARIES(hugetest gc-lib) +ADD_TEST(NAME hugetest COMMAND hugetest) + +ADD_EXECUTABLE(leaktest leak_test.c) +TARGET_LINK_LIBRARIES(leaktest gc-lib) +ADD_TEST(NAME leaktest COMMAND leaktest) + +ADD_EXECUTABLE(middletest middle.c) +TARGET_LINK_LIBRARIES(middletest gc-lib) +ADD_TEST(NAME middletest COMMAND middletest) + +ADD_EXECUTABLE(realloc_test realloc_test.c) +TARGET_LINK_LIBRARIES(realloc_test gc-lib) +ADD_TEST(NAME realloc_test COMMAND realloc_test) + +ADD_EXECUTABLE(smashtest smash_test.c) +TARGET_LINK_LIBRARIES(smashtest gc-lib) +ADD_TEST(NAME smashtest COMMAND smashtest) -- 2.40.0