2017-03-22 16:59:02 +00:00
|
|
|
enable_testing()
|
2017-02-22 14:34:36 +00:00
|
|
|
|
|
|
|
# Run tests with "make check"
|
|
|
|
if (TARGET check)
|
2017-04-01 07:20:54 +00:00
|
|
|
message (STATUS "Target check already exists")
|
2017-02-22 14:34:36 +00:00
|
|
|
else ()
|
2017-04-01 07:20:54 +00:00
|
|
|
include (${ClickHouse_SOURCE_DIR}/cmake/add_check.cmake)
|
2017-02-22 14:34:36 +00:00
|
|
|
endif ()
|
|
|
|
|
2017-12-27 19:01:57 +00:00
|
|
|
install (PROGRAMS clickhouse-test DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
|
|
|
install (
|
|
|
|
DIRECTORY queries performance external_dictionaries
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/clickhouse-test
|
|
|
|
USE_SOURCE_PERMISSIONS
|
|
|
|
COMPONENT clickhouse
|
|
|
|
PATTERN "CMakeLists.txt" EXCLUDE
|
|
|
|
PATTERN ".gitignore" EXCLUDE
|
|
|
|
)
|
|
|
|
|
2017-09-05 01:08:26 +00:00
|
|
|
add_subdirectory (external_dictionaries)
|
2018-01-18 20:33:16 +00:00
|
|
|
|
|
|
|
if (ENABLE_TESTS)
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR})
|
|
|
|
|
|
|
|
# maybe add --no-long ?
|
|
|
|
add_test(NAME with_server COMMAND bash -c "env BUILD_DIR=${ClickHouse_BINARY_DIR} TEST_OPT='--skip 00281' ${CMAKE_CURRENT_SOURCE_DIR}/server_wrapper.sh")
|
|
|
|
endif ()
|