Skip to content

Commit 52c8aaf

Browse files
authored
[Enhancement] Assume --test option in run-be-ut.sh is a single test suite/case name (StarRocks#51614)
Signed-off-by: Kevin Xiaohua Cai <[email protected]>
1 parent acce535 commit 52c8aaf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

run-be-ut.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ usage() {
3232
echo "
3333
Usage: $0 <options>
3434
Optional options:
35-
--test [TEST_NAME] run specific test
35+
--test TEST_NAME run specific test
36+
--gtest_filter GTEST_FILTER run test cases with gtest filters
3637
--dry-run dry-run unit tests
3738
--clean clean old unit tests before run
3839
--with-gcov enable to build with gcov
@@ -51,6 +52,7 @@ Usage: $0 <options>
5152
$0 --dry-run dry-run unit tests
5253
$0 --clean clean old unit tests before run
5354
$0 --help display usage
55+
$0 --gtest_filter CompactionUtilsTest*:TabletUpdatesTest* run the two test suites: CompactionUtilsTest and TabletUpdatesTest
5456
"
5557
exit 1
5658
}
@@ -116,8 +118,8 @@ while true; do
116118
--clean) CLEAN=1 ; shift ;;
117119
--dry-run) DRY_RUN=1 ; shift ;;
118120
--run) shift ;; # Option only for compatibility
119-
--test) TEST_NAME=$2 ; shift 2;;
120-
--gtest_filter) TEST_NAME=$2 ; shift 2;; # Option only for compatibility
121+
--test) TEST_NAME=${2}* ; shift 2;;
122+
--gtest_filter) TEST_NAME=$2 ; shift 2;;
121123
--module) TEST_MODULE=$2; shift 2;;
122124
--help) HELP=1 ; shift ;;
123125
--with-aws) WITH_AWS=ON; shift ;;

0 commit comments

Comments
 (0)