2022-05-30 19:32:49 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-08-02 12:27:45 +00:00
|
|
|
# Tags: long, no-fasttest, no-parallel, no-s3-storage, no-random-settings
|
2022-05-30 19:32:49 +00:00
|
|
|
|
|
|
|
# set -x
|
|
|
|
|
|
|
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
. "$CUR_DIR"/../shell_config.sh
|
|
|
|
|
|
|
|
TMP_PATH=${CLICKHOUSE_TEST_UNIQUE_NAME}
|
|
|
|
QUERIES_FILE=02313_filesystem_cache_seeks.queries
|
|
|
|
TEST_FILE=$CUR_DIR/filesystem_cache_queries/$QUERIES_FILE
|
|
|
|
|
2022-07-14 15:30:44 +00:00
|
|
|
for storagePolicy in 's3_cache' 'local_cache' 's3_cache_multi'; do
|
2022-05-30 19:32:49 +00:00
|
|
|
echo "Using storage policy: $storagePolicy"
|
|
|
|
cat $TEST_FILE | sed -e "s/_storagePolicy/${storagePolicy}/" > $TMP_PATH
|
|
|
|
${CLICKHOUSE_CLIENT} --queries-file $TMP_PATH
|
|
|
|
rm $TMP_PATH
|
|
|
|
echo
|
|
|
|
done
|