#!/usr/bin/env bash # One clean trial of Ⓐ on the settled boot title. Exactly one emulator, verified. set -u export HOME=/sylph-home/re SDL_AUDIODRIVER=dummy DISPLAY=:98 SD="$(cd "$(dirname "$0")" && pwd)" OUT="${1:-/sylph-home/re/apress}"; mkdir -p "$OUT" . "$SD/ensure_single_emulator.sh" ensure_single_emulator || exit 3 ( cd "$OUT" && nohup run-canary --mem_watch=false \ --logged_profile_slot_0_xuid=B13EBABEBABEBABE \ >"$OUT/canary.stdout" 2>"$OUT/canary.stderr" & ) sleep 10 ps -C xenia_canary >/dev/null 2>&1 || { echo "EMULATOR DID NOT START:"; tail -3 "$OUT/canary.stderr"; exit 4; } echo "emulator alive: $(ps -C xenia_canary --no-headers | wc -l) instance(s)" timeout 1000 python3 "$SD/a_press_reliability.py" "$OUT" 900 echo "--- pad delivery, from the emulator's own log ---" grep -c "RE-INPUT" "$OUT/canary.stdout" 2>/dev/null | sed 's/^/[RE-INPUT] lines: /' grep -oE "\[file-pad\] keystroke vk=[0-9a-fA-F]+ (down|up)" "$OUT/canary.stdout" 2>/dev/null | tail -4 echo "A-PRESS SESSION DONE"