18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 21:34:58 +01:00

test: scenario tests that run the simulator and check a vehicle's physicslog

tests/scenarios/run.py builds a test scenery from a game install's scenery
(own trainsets removed, case fragment added), runs eu07 in ghostview with
physicslog on, and checks what the vehicle did: starts, max speed, brakes,
stops. First case: EU07 on td.scn driven by AI on the td/rozklad timetable,
with the Stacja1 exit route set by an event launcher instead of shift+4.

eu07 gets a -ini <file> option: an extra settings file read after eu07.ini,
so a test run can switch to a window and turn on physicslog without touching
the user's config.

Local only: scenery and vehicle data are not in the repo.
This commit is contained in:
jerrrrycho
2026-09-30 19:16:46 +02:00
parent 939e42b611
commit 798fd89dd0
6 changed files with 435 additions and 1 deletions

2
tests/scenarios/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
out/
__pycache__/