2017-03-22 16:59:02 +00:00
|
|
|
enable_testing()
|
2017-02-22 14:34:36 +00:00
|
|
|
|
2018-06-08 16:18:07 +00:00
|
|
|
# Run tests with "ninja check" or "make check"
|
2017-02-22 14:34:36 +00:00
|
|
|
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 ()
|
|
|
|
|
2022-03-14 19:55:18 +00:00
|
|
|
option (ENABLE_CLICKHOUSE_TEST "Install clickhouse-test script and relevant tests scenarios" OFF)
|
2021-10-16 17:03:45 +00:00
|
|
|
|
|
|
|
if (ENABLE_CLICKHOUSE_TEST)
|
|
|
|
install (PROGRAMS clickhouse-test DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
|
|
|
install (
|
|
|
|
DIRECTORY queries performance config
|
|
|
|
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/clickhouse-test
|
|
|
|
USE_SOURCE_PERMISSIONS
|
|
|
|
COMPONENT clickhouse
|
|
|
|
PATTERN "CMakeLists.txt" EXCLUDE
|
|
|
|
PATTERN ".gitignore" EXCLUDE
|
|
|
|
)
|
|
|
|
endif ()
|
2017-12-27 19:01:57 +00:00
|
|
|
|
2018-09-21 10:46:58 +00:00
|
|
|
if (ENABLE_TEST_INTEGRATION)
|
|
|
|
add_subdirectory (integration)
|
|
|
|
endif ()
|