From 31ca3943784645f6e337ca18b175853726213f30 Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Tue, 13 Aug 2024 15:35:15 +0800 Subject: [PATCH] Update Nlbench_beta.sh --- Nlbench_beta.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Nlbench_beta.sh b/Nlbench_beta.sh index f5b3040..c7a91e8 100644 --- a/Nlbench_beta.sh +++ b/Nlbench_beta.sh @@ -473,9 +473,11 @@ generate_markdown_output() { local final_output_file="${base_output_file}.md" local sections=("YABS" "Geekbench5" "融合怪" "IP质量" "流媒体" "响应" "多线程测速" "单线程测速" "iperf3" "回程路由") local file_suffixes=("yabs" "gb5" "fusion" "ip_quality" "streaming" "response" "multi_thread" "single_thread" "iperf3" "route") + local empty_tabs=("去程路由" "Ping.pe" "哪吒 ICMP" "其他") echo "[tabs]" > "$final_output_file" + # 输出有内容的标签 for i in "${!sections[@]}"; do section="${sections[$i]}" suffix="${file_suffixes[$i]}" @@ -489,6 +491,12 @@ generate_markdown_output() { fi done + # 添加保留的空白标签 + for tab in "${empty_tabs[@]}"; do + echo "[tab=\"$tab\"]" >> "$final_output_file" + echo "[/tab]" >> "$final_output_file" + done + echo "[/tabs]" >> "$final_output_file" echo "所有测试完成,结果已保存在 $final_output_file 中。" @@ -496,6 +504,7 @@ generate_markdown_output() { clear } + # 执行全部脚本 run_all_scripts() { local base_output_file="NLvps_results_$(date +%Y%m%d_%H%M%S)"