mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 23:10:50 +00:00
15 lines
388 B
Bash
Executable File
15 lines
388 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
. $CURDIR/../shell_config.sh
|
|
|
|
OUTPUT=`$CLICKHOUSE_CLIENT_BINARY -c 1 -C 2 2>&1`
|
|
|
|
#test will fail if clickouse-client exit code is 0
|
|
if [ $? -eq 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
#test will fail if no special error message was printed
|
|
grep "Two or more configuration files referenced in arguments" > /dev/null <<< "$OUTPUT"
|