]> granicus.if.org Git - gc/commitdiff
Execute more single-threaded GC tests by CMake
authorIvan Maidanski <ivmai@mail.ru>
Mon, 19 Dec 2016 21:47:17 +0000 (00:47 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 17:44:47 +0000 (20:44 +0300)
(Cherry-pick commits 495b4fe686c871 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

index a24872c95c2a53bbf9f83e6f3df7e7e6c9e402db..26663493f41bd79629c9d0cc6b3f874e8b9a07a0 100644 (file)
 ##
 
 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)