Files

24 lines
970 B
Bash

#!/bin/bash
# =============================================================================
# check_z3_server.sh -- Palladium Z3 连通性测试脚本
#
# 完全基于当前终端已加载的 module 环境直接测试 test_server
# =============================================================================
echo ""
echo "=========================================================="
echo " Palladium Z3 硬件连通性测试 (test_server) "
echo " 当前使用: $(which test_server 2>/dev/null || echo '未检测到 test_server,请先 module load')"
echo "=========================================================="
test_server
RET_CODE=$?
echo "----------------------------------------------------------"
if [ $RET_CODE -eq 0 ]; then
echo "===> [SUCCESS] test_server 测试通过!Palladium Z3 通信正常!"
else
echo "===> [FAILED] test_server 退出码: $RET_CODE"
fi
echo "=========================================================="