test: 增加测试套件

This commit is contained in:
mofeng-git
2026-07-05 21:30:11 +08:00
parent b346af35d3
commit 696c1b4bb2
10 changed files with 4486 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
arch="${GOARCH:-amd64}"
out="../bin/okvm-win-agent-${arch}.exe"
GOOS=windows GOARCH="$arch" CGO_ENABLED=0 \
go build -trimpath -ldflags "-s -w" -o "$out" .
echo "Built $out"