update
This commit is contained in:
14
tests/shots.sh
Executable file
14
tests/shots.sh
Executable 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/
|
||||
Reference in New Issue
Block a user