scopedvr-map-editor/tools/run_tests.sh

13 lines
412 B
Bash

#!/bin/bash
# Regression: alle Editor-Testsuiten (Karte t_3a998ae4)
cd "$(dirname "$0")/.."
GODOT=~/bin/godot4
rc=0
for t in test_ux test_editor_svmap test_terrain test_library test_spawns; do
"$GODOT" --headless --path . --script "res://tests/$t.gd" > "/tmp/$t.log" 2>&1
code=$?
line=$(grep -E "ALL OK|FAILED" "/tmp/$t.log" | tail -1)
echo "$t: exit=$code $line"
[ $code -ne 0 ] && rc=1
done
exit $rc