提交 fa94035b 编写于 作者: A Alexey Milovidov

Merge branch 'master' of github.com:yandex/ClickHouse

...@@ -216,8 +216,9 @@ endif () ...@@ -216,8 +216,9 @@ endif ()
# also for copy_headers.sh: # also for copy_headers.sh:
target_include_directories (clickhouse_common_io BEFORE PRIVATE ${COMMON_INCLUDE_DIR}) target_include_directories (clickhouse_common_io BEFORE PRIVATE ${COMMON_INCLUDE_DIR})
add_subdirectory (tests)
if (ENABLE_TESTS) if (ENABLE_TESTS)
add_subdirectory (tests)
# attach all dbms gtest sources # attach all dbms gtest sources
grep_gtest_sources(${ClickHouse_SOURCE_DIR}/dbms dbms_gtest_sources) grep_gtest_sources(${ClickHouse_SOURCE_DIR}/dbms dbms_gtest_sources)
add_executable(unit_tests_dbms ${dbms_gtest_sources}) add_executable(unit_tests_dbms ${dbms_gtest_sources})
......
...@@ -20,4 +20,14 @@ macro(grep_gtest_sources BASE_DIR DST_VAR) ...@@ -20,4 +20,14 @@ macro(grep_gtest_sources BASE_DIR DST_VAR)
file(GLOB_RECURSE "${DST_VAR}" RELATIVE "${BASE_DIR}" "gtest*.cpp") file(GLOB_RECURSE "${DST_VAR}" RELATIVE "${BASE_DIR}" "gtest*.cpp")
endmacro() endmacro()
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
)
add_subdirectory (external_dictionaries) add_subdirectory (external_dictionaries)
/usr/bin/clickhouse-client /usr/bin/clickhouse-client
/usr/bin/clickhouse-benchmark
/usr/bin/clickhouse-local /usr/bin/clickhouse-local
/etc/clickhouse-client/config.xml /etc/clickhouse-client/config.xml
/usr/bin/clickhouse-extract-from-config /usr/bin/clickhouse-extract-from-config
/usr/bin/clickhouse-performance-test
usr/bin/clickhouse-test
usr/share/clickhouse-test/*
usr/bin/clickhouse-performance-test
usr/bin/clickhouse-benchmark
...@@ -53,3 +53,11 @@ Priority: extra ...@@ -53,3 +53,11 @@ Priority: extra
Depends: ${misc:Depends}, clickhouse-server-base (= ${binary:Version}) Depends: ${misc:Depends}, clickhouse-server-base (= ${binary:Version})
Description: debugging symbols for clickhouse-server-base Description: debugging symbols for clickhouse-server-base
This package contains the debugging symbols for clickhouse-server-base. This package contains the debugging symbols for clickhouse-server-base.
Package: clickhouse-test
Section: Database
Priority: extra
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, clickhouse-client, clickhouse-compressor, bash, expect, python, python-lxml, python-termcolor, curl, perl, sudo
Description: Clickhouse tests
#!/bin/bash #!/bin/bash
#service clickhouse-server start # delete me:
clickhouse-client -q "SELECT version();" env
clickhouse-client -q "SELECT * from system.build_options;"
# --no-shard because default server listen only :: and 127.0.0.1
[ -n "$TEST_RUN" ] && clickhouse-test --no-shard --queries /usr/share/clickhouse-test/queries || true
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册