From 9bcc752916cd9ffeaf4d85c9d25ce3d3095ce76d Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Wed, 26 Jun 2024 19:08:03 +0800 Subject: [PATCH] Update nodeloc_vps_autotest.sh --- nodeloc_vps_autotest.sh | 49 ++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/nodeloc_vps_autotest.sh b/nodeloc_vps_autotest.sh index 624ba11..f90ca91 100644 --- a/nodeloc_vps_autotest.sh +++ b/nodeloc_vps_autotest.sh @@ -171,7 +171,7 @@ run_all_tests() { # 流媒体解锁 echo "运行${YELLOW}流媒体解锁测试...${NC}" run_streaming_test - + # 响应测试 echo "运行${YELLOW}响应测试...${NC}" response_result=$(run_and_capture "bash <(curl -sL https://nodebench.mereith.com/scripts/curltime.sh)") @@ -185,54 +185,57 @@ run_all_tests() { echo "运行${YELLOW}AutoTrace三网回程路由...${NC}" autotrace_result=$(run_and_capture "wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && echo '1' | bash AutoTrace.sh) -# 测试报告Markdown -echo "运行${YELLOW}此报告由Nodeloc_VPS_自动脚本测试生成${NC}" -format_results() { - result="[tabs] + # 生成Markdown结果 + echo "生成${YELLOW}Markdown${NC}结果..." + result=" +# 测试报告 +*此报告由Nodeloc_VPS_自动脚本测试生成* + +[tabs] [tab=\"YABS\"] -\`\`\` +\\\ $yabs_result -\`\`\` +\\\ [/tab] [tab=\"融合怪\"] -\`\`\` +\\\ $fusion_result -\`\`\` +\\\ [/tab] [tab=\"IP质量\"] -\`\`\` +\\\ $ip_quality_result -\`\`\` +\\\ [/tab] [tab=\"流媒体\"] -\`\`\` +\\\ $streaming_result -\`\`\` +\\\ [/tab] [tab=\"响应\"] -\`\`\` +\\\ $response_result -\`\`\` +\\\ [/tab] [tab=\"多线程测速\"] -\`\`\` +\\\ $speedtest_multi_result -\`\`\` +\\\ [/tab] [tab=\"单线程测速\"] -\`\`\` +\\\ $speedtest_single_result -\`\`\` +\\\ [/tab] [tab=\"iperf3\"] -\`\`\` +\\\ -\`\`\` +\\\ [/tab] [tab=\"回程路由\"] -\`\`\` +\\\ $autotrace_result -\`\`\` +\\\ [/tab] [tab=\"去程路由\"]