This commit is contained in:
team3
2026-09-16 17:00:41 +02:00
parent f1c78f66f4
commit 9800c614bb
21 changed files with 497 additions and 191 deletions

14
tests/shots.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Screenshots für die Sichtprüfung nach tests/out/. Mit Display direkt, ohne
# Display über xvfb-run (Paket xvfb). Aufruf: make shots
set -u
GODOT="${GODOT:-$HOME/bin/godot}"
cd "$(dirname "$0")/.."
if [ -n "${DISPLAY:-}${WAYLAND_DISPLAY:-}" ]; then
timeout 120 "$GODOT" --path . res://tests/shots.tscn 2>&1 | grep -E "^(OK |FEHL|TEST:)"
elif command -v xvfb-run >/dev/null; then
timeout 120 xvfb-run -a -s "-screen 0 1280x720x24" "$GODOT" --path . res://tests/shots.tscn 2>&1 | grep -E "^(OK |FEHL|TEST:)"
else
echo "Kein Display und kein xvfb-run - Screenshots übersprungen."; exit 0
fi
ls -1 tests/out/