mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
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
This commit is contained in:
parent
9e79e56ba2
commit
6497257245
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue