2018-01-11 17:28:49 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
. $CURDIR/../shell_config.sh
|
|
|
|
|
|
|
|
if [ $CLICKHOUSE_HOST == "localhost" ]; then
|
|
|
|
$CLICKHOUSE_CLIENT -q "SELECT * FROM remote('127.0.0.1', system, one);"
|
|
|
|
$CLICKHOUSE_CLIENT -q "SELECT * FROM remote('127.0.0.{1,1}', system, one);"
|
|
|
|
$CLICKHOUSE_CLIENT -q "SELECT * FROM remote('127.0.0.1:${CLICKHOUSE_PORT_TCP}', system, one);"
|
|
|
|
$CLICKHOUSE_CLIENT -q "SELECT * FROM remote('127.0.0.{1,1}:${CLICKHOUSE_PORT_TCP}', system, one);"
|
|
|
|
else
|
|
|
|
# Can't test without localhost
|
|
|
|
echo 0
|
|
|
|
echo 0
|
|
|
|
echo 0
|
|
|
|
echo 0
|
2018-01-11 21:30:34 +00:00
|
|
|
echo 0
|
|
|
|
echo 0
|
2018-01-11 17:28:49 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
$CLICKHOUSE_CLIENT -q "SELECT * FROM remote('${CLICKHOUSE_HOST}', system, one);"
|
|
|
|
$CLICKHOUSE_CLIENT -q "SELECT * FROM remote('${CLICKHOUSE_HOST}:${CLICKHOUSE_PORT_TCP}', system, one);"
|