From: Ivan Maidanski Date: Mon, 19 Dec 2016 21:47:17 +0000 (+0300) Subject: Execute more single-threaded GC tests by CMake X-Git-Tag: v7.6.2~251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c036630e8817393226e3dd3b276ed7db7af3f5fb;p=gc 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). --- 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)