From 2c63506d6a12445a395f944b0a66c07af190b11f Mon Sep 17 00:00:00 2001 From: hezheyu Date: Tue, 19 Dec 2023 09:05:14 +0800 Subject: [PATCH] temp: show tpcds time usage. --- scripts/ci/ci-run-sqllogic-tests-native.sh | 6 ++++++ scripts/ci/ci-run-sqllogic-tests.sh | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/scripts/ci/ci-run-sqllogic-tests-native.sh b/scripts/ci/ci-run-sqllogic-tests-native.sh index 3710801b95bee..f10672cab37c1 100755 --- a/scripts/ci/ci-run-sqllogic-tests-native.sh +++ b/scripts/ci/ci-run-sqllogic-tests-native.sh @@ -18,5 +18,11 @@ if [ $# -gt 0 ]; then fi echo "Run suites using argument: $RUN_DIR" +# If RUN_DIR is tpcds, run benchmark tests +if [ "$RUN_DIR" == "--run_dir tpcds" ]; then + ./target/${BUILD_PROFILE}/databend-sqllogictests --handlers ${TEST_HANDLERS} ${RUN_DIR} -f queries.test --enable_sandbox --parallel 8 --bench + exit 0 +fi + echo "Starting databend-sqllogic tests" target/${BUILD_PROFILE}/databend-sqllogictests --handlers ${TEST_HANDLERS} ${RUN_DIR} --skip_dir management,cluster,explain,tpch,ee --enable_sandbox --parallel 8 diff --git a/scripts/ci/ci-run-sqllogic-tests.sh b/scripts/ci/ci-run-sqllogic-tests.sh index 83e7b6696af30..b250202cf16da 100755 --- a/scripts/ci/ci-run-sqllogic-tests.sh +++ b/scripts/ci/ci-run-sqllogic-tests.sh @@ -19,4 +19,11 @@ fi echo "Run suites using argument: $RUN_DIR" echo "Starting databend-sqllogic tests" + +# If RUN_DIR is tpcds, run benchmark tests +if [ "$RUN_DIR" == "--run_dir tpcds" ]; then + ./target/${BUILD_PROFILE}/databend-sqllogictests --handlers ${TEST_HANDLERS} ${RUN_DIR} -f queries.test --enable_sandbox --parallel 8 --bench + exit 0 +fi + target/${BUILD_PROFILE}/databend-sqllogictests --handlers ${TEST_HANDLERS} ${RUN_DIR} --skip_dir management,explain_native,ee --enable_sandbox --parallel 8