mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
Upddate test script
This commit is contained in:
parent
ebcb25a3b9
commit
c62f2495eb
@ -10,7 +10,7 @@ $CLICKHOUSE_CLIENT --query "CREATE DATABASE ${CLICKHOUSE_DATABASE}_db ENGINE=Ato
|
||||
|
||||
function create_or_replace_view_thread
|
||||
{
|
||||
for _ in {1..10}; do
|
||||
for _ in {1..20}; do
|
||||
$CLICKHOUSE_CLIENT --query "CREATE OR REPLACE VIEW ${CLICKHOUSE_DATABASE}_db.test_view AS SELECT 'abcdef'" > /dev/null
|
||||
done
|
||||
}
|
||||
@ -18,7 +18,7 @@ export -f create_or_replace_view_thread;
|
||||
|
||||
function select_view_thread
|
||||
{
|
||||
for _ in {1..10}; do
|
||||
for _ in {1..20}; do
|
||||
$CLICKHOUSE_CLIENT --query "SELECT * FROM ${CLICKHOUSE_DATABASE}_db.test_view" > /dev/null
|
||||
done
|
||||
}
|
||||
@ -51,8 +51,4 @@ $CLICKHOUSE_CLIENT --query "CREATE OR REPLACE VIEW ${CLICKHOUSE_DATABASE}_db.tes
|
||||
bash -c create_or_replace_view_thread &
|
||||
} > >(cat) 2> >(cat >&2)
|
||||
|
||||
for _ in {1..100}; do
|
||||
$CLICKHOUSE_CLIENT --query "SELECT * FROM ${CLICKHOUSE_DATABASE}_db.test_view" | grep -v abcdef
|
||||
done
|
||||
|
||||
wait
|
@ -10,7 +10,7 @@ $CLICKHOUSE_CLIENT --query "CREATE DATABASE ${CLICKHOUSE_DATABASE}_db ENGINE=Rep
|
||||
|
||||
function create_or_replace_view_thread
|
||||
{
|
||||
for _ in {1..10}; do
|
||||
for _ in {1..20}; do
|
||||
$CLICKHOUSE_CLIENT --query "CREATE OR REPLACE VIEW ${CLICKHOUSE_DATABASE}_db.test_view AS SELECT 'abcdef'" > /dev/null
|
||||
done
|
||||
}
|
||||
@ -18,30 +18,37 @@ export -f create_or_replace_view_thread;
|
||||
|
||||
function select_view_thread
|
||||
{
|
||||
for _ in {1..10}; do
|
||||
for _ in {1..20}; do
|
||||
$CLICKHOUSE_CLIENT --query "SELECT * FROM ${CLICKHOUSE_DATABASE}_db.test_view" > /dev/null
|
||||
done
|
||||
}
|
||||
export -f select_view_thread;
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "CREATE OR REPLACE VIEW ${CLICKHOUSE_DATABASE}_db.test_view AS SELECT 'abcdef'" > /dev/null
|
||||
{
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c select_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
bash -c create_or_replace_view_thread &
|
||||
} > >(cat) 2> >(cat >&2)
|
||||
|
||||
wait
|
Loading…
Reference in New Issue
Block a user