ClickHouse/docker/test/split_build_smoke_test/run.sh

18 lines
488 B
Bash
Raw Normal View History

2019-09-23 13:19:55 +00:00
#!/bin/bash
set -x
install_and_run_server() {
2019-09-23 15:57:18 +00:00
mkdir /unpacked
tar -xzf /package_folder/shared_build.tgz -C /unpacked --strip 1
LD_LIBRARY_PATH=/unpacked /unpacked/clickhouse-server --config /unpacked/config/config.xml >/var/log/clickhouse-server/stderr.log 2>&1 &
2019-09-23 13:19:55 +00:00
sleep 5
}
run_client() {
2019-09-23 15:57:18 +00:00
LD_LIBRARY_PATH=/unpacked /unpacked/clickhouse-client --query \"select 'OK'\" 2>/var/log/clickhouse-server/clientstderr.log || echo 'FAIL'
2019-09-23 13:19:55 +00:00
}
install_and_run_server
run_client