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

View File

@@ -1,4 +1,4 @@
.PHONY: dev server prod logs down test sim
.PHONY: dev server prod logs down test sim shots
GODOT ?= $(HOME)/bin/godot
@@ -16,9 +16,13 @@ dev:
test:
GODOT=$(GODOT) bash tests/run.sh
# Bot gegen Bot, je Stufe 12 Partien parallel (~3 min): Rundenzahl und Siegquoten.
# Screenshots nach tests/out/ - mit Display oder per xvfb-run.
shots:
GODOT=$(GODOT) bash tests/shots.sh
# Bot gegen Bot ohne Physik, je Stufe 50 Partien parallel: Rundenzahl und Siegquoten.
sim:
@for s in 0 1 2; do $(GODOT) --headless --path . res://tests/sim.tscn -- $$s 12 2>/dev/null | grep "^SIM" & done; wait
@for s in 0 1 2; do $(GODOT) --headless --path . res://tests/sim.tscn -- $$s 50 2>/dev/null | grep "^SIM" & done; wait
# ── Produktion ───────────────────────────────────────────────────────────────
# Auf dem Server ausführen, im Projektverzeichnis. Der Build holt Godot selbst.