Update Nlbench_beta.sh

This commit is contained in:
Jensfrank 2024-06-28 21:17:01 +08:00 committed by GitHub
parent 0a98b5dcb8
commit 310de3e271
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -264,6 +264,14 @@ run_all_tests() {
echo -e "${RED}请选择测试模式:${NC}" echo -e "${RED}请选择测试模式:${NC}"
echo "1. 全部测试" echo "1. 全部测试"
echo "2. 选择性测试输入数字用英文逗号分隔1,2,3" echo "2. 选择性测试输入数字用英文逗号分隔1,2,3"
echo " [1] Yabs"
echo " [2] 融合怪"
echo " [3] IP质量"
echo " [4] 流媒体解锁"
echo " [5] 响应测试"
echo " [6] 多线程测试"
echo " [7] 单线程测试"
echo " [8] 回程路由"
read -r test_choice read -r test_choice
case "$test_choice" in case "$test_choice" in
@ -282,9 +290,9 @@ run_all_tests() {
;; ;;
2) 2)
echo "请输入要测试的编号用逗号分隔1,2,3" echo "请输入要测试的编号用逗号分隔1,2,3"
echo -e "${RED}开始测试,测试时间较长,请耐心等待...${NC}"
read -r test_numbers read -r test_numbers
IFS=',' read -ra selected_tests <<< "$test_numbers" IFS=',' read -ra selected_tests <<< "$test_numbers"
echo -e "${RED}开始测试,测试时间较长,请耐心等待...${NC}"
for test_num in "${selected_tests[@]}"; do for test_num in "${selected_tests[@]}"; do
perform_test "$test_num" perform_test "$test_num"
done done
@ -294,7 +302,7 @@ run_all_tests() {
format_results format_results
;; ;;
*) *)
echo -e "${RED}无效的选项:$choice${NC}" echo -e "${RED}无效的选项:$test_choice${NC}"
;; ;;
esac esac
} }