mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
72ccc69212
* Allow use external re2 with re2_st=re2 * fix * remove dupe * use re2_st in FunctionsStringSearch.h * fix * move files from tools/etc to debian * dont generate control * version * ok. * wip * Cmake: dont touch CMAKE_INSTALL_PREFIX * wip * works! * clean * okay * like old * wip * wip * okay * clickhouse-server-base-dbg * clean * clickhouse-server-dbg * Debian: Remove daemons * Update rules * add source/format * control clean * add watch * clean * clean * temp fix build * clean * docs * fake make_control * fix * testme * testme * add metrika package * fake metrika files
31 lines
910 B
Bash
Executable File
31 lines
910 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
|
|
ln -sf clickhouse build/dbms/src/Server/clickhouse-server
|
|
ln -sf clickhouse build/dbms/src/Server/clickhouse-client
|
|
ln -sf clickhouse build/dbms/src/Server/clickhouse-local
|
|
# Start a local clickhouse server which will be used to run tests
|
|
PWD=$(pwd)
|
|
echo ${PWD}
|
|
PATH=$PATH:./build/dbms/src/Server \
|
|
./build/dbms/src/Server/clickhouse-server --config-file=./debian/clickhouse-server-config-tests.xml 2>/dev/null &
|
|
CH_PID=$!
|
|
|
|
# Define needed stuff to kill test clickhouse server after tests completion
|
|
function finish {
|
|
kill $CH_PID
|
|
wait
|
|
rm -rf /tmp/clickhouse
|
|
rm -f build/dbms/src/Server/clickhouse-local
|
|
rm -f build/dbms/src/Server/clickhouse-client
|
|
rm -f build/dbms/src/Server/clickhouse-server
|
|
}
|
|
trap finish EXIT
|
|
|
|
# Do tests
|
|
cd dbms/tests
|
|
PATH=$PATH:../../build/dbms/src/Server \
|
|
./clickhouse-test -c ../../build/dbms/src/Server/clickhouse-client
|