Skip to content

Commit

Permalink
[Enhancement] Assume --test option in run-be-ut.sh is a single test s…
Browse files Browse the repository at this point in the history
…uite/case name (backport #51614) (#51769)

Co-authored-by: Kevin Cai <[email protected]>
  • Loading branch information
mergify[bot] and kevincai authored Oct 11, 2024
1 parent 9017b14 commit cc50e0d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run-be-ut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ usage() {
echo "
Usage: $0 <options>
Optional options:
--test [TEST_NAME] run specific test
--test TEST_NAME run specific test
--gtest_filter GTEST_FILTER run test cases with gtest filters
--dry-run dry-run unit tests
--clean clean old unit tests before run
--with-gcov enable to build with gcov
Expand All @@ -51,6 +52,7 @@ Usage: $0 <options>
$0 --dry-run dry-run unit tests
$0 --clean clean old unit tests before run
$0 --help display usage
$0 --gtest_filter CompactionUtilsTest*:TabletUpdatesTest* run the two test suites: CompactionUtilsTest and TabletUpdatesTest
"
exit 1
}
Expand Down Expand Up @@ -114,8 +116,8 @@ while true; do
--clean) CLEAN=1 ; shift ;;
--dry-run) DRY_RUN=1 ; shift ;;
--run) shift ;; # Option only for compatibility
--test) TEST_NAME=$2 ; shift 2;;
--gtest_filter) TEST_NAME=$2 ; shift 2;; # Option only for compatibility
--test) TEST_NAME=${2}* ; shift 2;;
--gtest_filter) TEST_NAME=$2 ; shift 2;;
--module) TEST_MODULE=$2; shift 2;;
--help) HELP=1 ; shift ;;
--with-aws) WITH_AWS=ON; shift ;;
Expand Down

0 comments on commit cc50e0d

Please sign in to comment.