2018-11-23 15:10:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 &>/var/log/somefile &
|
|
|
|
|
2019-05-20 08:11:53 +00:00
|
|
|
set +e
|
|
|
|
reties=0
|
|
|
|
while true; do
|
|
|
|
docker info &>/dev/null && break
|
|
|
|
reties=$[$reties+1]
|
|
|
|
if [[ $reties -ge 100 ]]; then # 10 sec max
|
|
|
|
echo "Can't start docker daemon, timeout exceeded." >&2
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
sleep 0.1
|
|
|
|
done
|
|
|
|
set -e
|
2018-11-23 15:10:07 +00:00
|
|
|
|
|
|
|
echo "Start tests"
|
|
|
|
export CLICKHOUSE_TESTS_SERVER_BIN_PATH=/clickhouse
|
|
|
|
export CLICKHOUSE_TESTS_CLIENT_BIN_PATH=/clickhouse
|
|
|
|
export CLICKHOUSE_TESTS_BASE_CONFIG_DIR=/clickhouse-config
|
2019-01-30 08:24:16 +00:00
|
|
|
export CLICKHOUSE_ODBC_BRIDGE_BINARY_PATH=/clickhouse-odbc-bridge
|
2018-11-23 15:10:07 +00:00
|
|
|
|
2019-05-20 08:11:53 +00:00
|
|
|
cd /ClickHouse/dbms/tests/integration
|
|
|
|
exec "$@"
|