scopedvr-map-editor/tools/run_tests.sh
2026-10-25 10:34:37 +01:00

13 lines
671 B
Bash
Executable file

#!/bin/bash
# Regression: alle Editor-Testsuiten (Karte t_3a998ae4)
cd "$(dirname "$0")/.."
GODOT=${GODOT:-/opt/data/home/bin/godot4}
rc=0
for t in test_ux test_shortcuts test_editor_svmap test_terrain test_library test_glb_view test_spawns test_testrun test_bauen test_resize_dialog test_updater test_gui_smoke test_rmb_vorrang test_inspector test_pinsel_werkzeuge test_terrain_mirror test_mal_fein test_ui_aufraeumen test_ui_layout test_ui_scale; 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