Files
aego/tools/check-agent-game.sh
T
sanspie 5eb1832907
ci-platforms / darwin amd64 smoke (push) Skipped
ci / build (amd64, linux, ubuntu-24.04) (push) Failing after 15m28s
ci / release (push) Skipped
ci-platforms / windows amd64 smoke (push) Skipped
ci-platforms / darwin arm64 smoke (push) Skipped
ci / checks (push) Successful in 7m47s
Complete Stage 12 for v0.12.0
2026-11-05 11:46:53 +03:00

15 lines
804 B
Bash

#!/bin/sh
set -eu
engine=$(pwd)
cli=${AEGO_CLI:-$engine/.cache/bin/aego}
output=${1:?usage: sh tools/check-agent-game.sh NEW_OUTPUT_DIRECTORY}
mkdir "$output"
output=$(cd "$output" && pwd)
AEGO_BELLRUN_OUT="$output/source" go test -count=1 -tags aego_nonative ./tests/agent -run '^TestAuthorBellRunFromEmpty$'
"$cli" export "$output/source" --engine "$engine" --target host --development --out "$output/native"
native=$(sed -n 's/^ binary="\([^"]*\)"$/\1/p' "$output/native/export.aetext")
test -n "$native"
"$output/native/$native" --headless --frames 185 --seed 41 --replay "$output/source/route.aeinput"
"$cli" export "$output/source" --engine "$engine" --target web --release --out "$output/web"
node tools/websmoke/agent-game.mjs "$output/web" "$output/source/route.aeinput" "$output/web-captures"