Implement playable Mac client and rendering validation

This commit is contained in:
shen
2026-09-11 14:58:22 +08:00
parent 1ab68bd06e
commit 374d4165d8
233 changed files with 6546 additions and 284 deletions
+9 -4
View File
@@ -12,9 +12,9 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO="$(cd "$SCRIPT_DIR/.." && pwd)"
APP="$REPO/build/export/mtgodot-poc.app"
APP="${MT_SMOKE_APP:-$REPO/build/export/mtgodot-poc.app}"
EXECUTABLE="$APP/Contents/MacOS/mtgodot-poc"
ARTIFACT_DIR="$REPO/build/live-smoke"
ARTIFACT_DIR="${MT_SMOKE_OUTPUT:-$REPO/build/live-smoke}"
LOG="$ARTIFACT_DIR/live-smoke.log"
REPORT="$ARTIFACT_DIR/live-smoke-report.json"
CONFIG_FILE="${MT_SMOKE_CONFIG:-$REPO/.env.live-smoke.local}"
@@ -31,6 +31,7 @@ usage() {
--no-build 使用现有 APP,不重新打包
--no-mutations 只做登录、进游戏和数据读取,不发送移动/聊天/重连包
--no-reconnect 做移动和聊天,但跳过重连
--reconnect-only 只测试登录/主动重连,不发送移动、聊天或施法
--help 显示帮助
环境变量:
@@ -42,8 +43,9 @@ EOF
while [ "$#" -gt 0 ]; do
case "$1" in
--no-build) BUILD=0 ;;
--no-mutations) MUTATIONS=0 ;;
--no-mutations) MUTATIONS=0; RECONNECT=0 ;;
--no-reconnect) RECONNECT=0 ;;
--reconnect-only) MUTATIONS=0; RECONNECT=1 ;;
--help) usage; exit 0 ;;
*) echo "未知选项: $1" >&2; usage >&2; exit 2 ;;
esac
@@ -90,7 +92,10 @@ for port in 11000 13002; do
fi
done
pkill -x mtgodot-poc 2>/dev/null || true
if pgrep -x mtgodot-poc >/dev/null; then
echo "已有客户端运行,请先关闭后再执行独立登录测试。" >&2
exit 2
fi
export MT_PROTOCOL=classic
export MT_AUTOLOGIN=1