From 6497257245a9f2549b66f550364b66f985847f0b Mon Sep 17 00:00:00 2001 From: Leif Walsh Date: Wed, 17 Apr 2013 00:01:11 -0400 Subject: [PATCH] refs #5537 add BUILD_SRC_TESTS to be able to build just those tests in Xcode git-svn-id: file:///svn/toku/tokudb@48382 c7de825b-a66e-492c-adef-691d508d4ae1 --- cmake_modules/TokuSetupCTest.cmake | 4 ++-- src/tests/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake_modules/TokuSetupCTest.cmake b/cmake_modules/TokuSetupCTest.cmake index 536e764c4fb..c8184c715e3 100644 --- a/cmake_modules/TokuSetupCTest.cmake +++ b/cmake_modules/TokuSetupCTest.cmake @@ -81,7 +81,7 @@ set(BUILDNAME "${branchname} ${buildname_build_type} ${CMAKE_SYSTEM} ${machine_t include(CTest) -if (BUILD_TESTING OR BUILD_FT_TESTS) +if (BUILD_TESTING OR BUILD_FT_TESTS OR BUILD_SRC_TESTS) ## set up full valgrind suppressions file (concatenate the suppressions files) file(READ ft/valgrind.suppressions valgrind_suppressions) file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/valgrind.suppressions" "${valgrind_suppressions}") @@ -130,4 +130,4 @@ if (BUILD_TESTING OR BUILD_FT_TESTS) option(RUN_PERF_TESTS "If set, run the perf tests." OFF) configure_file(CTestCustom.cmake . @ONLY) -endif (BUILD_TESTING OR BUILD_FT_TESTS) +endif (BUILD_TESTING OR BUILD_FT_TESTS OR BUILD_SRC_TESTS) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 020433d0cda..a75399ad1a5 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -1,6 +1,6 @@ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE DONT_DEPRECATE_ERRNO) -if(BUILD_TESTING) +if(BUILD_TESTING OR BUILD_SRC_TESTS) file(GLOB transparent_upgrade_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" upgrade*.cc) file(GLOB tdb_dontrun_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" bdb-simple-deadlock*.cc) @@ -707,4 +707,4 @@ if(BUILD_TESTING) ) endif (BDB_FOUND) set_tests_properties(${phenomenally_long_tests} PROPERTIES TIMEOUT 14400) -endif(BUILD_TESTING) +endif(BUILD_TESTING OR BUILD_SRC_TESTS)