tool paths configurable by environment (LLAMAMOD_CD, LAMA_WINEPREFIX, LAMA_MOD, APPTEST_ROOT, APPTEST_ISO; tools/lamapaths.py), music tracks without a file on the cd marked in the editor and the tutorial uses kronk, levelbuild.py accepts the english texture names
This commit is contained in:
1 parent
a0d961357e
commit
6d449257a7
21 files changed
+153
-44
No files matched your search
+10
-5
@@ -27,7 +27,8 @@ TestLevel (world 9, chapter 1) via save slot 3 and takes screenshots.
|
||||
--keep leave the tested WAD installed (otherwise the previously
|
||||
installed T1L9M001.wad is restored - not .orig!)
|
||||
|
||||
State/logs: $LAMATEST_DIR (default /tmp/lamatest-$USER).
|
||||
State/logs: $LAMATEST_DIR (default /tmp/lamatest-$USER). Game: $LAMA_WINEPREFIX (default ~/.wine-lama),
|
||||
see lamapaths.py.
|
||||
Report lines (report.txt, "ergebnis: ...") and `status` output stay German: helper
|
||||
scripts grep for them. OCR expectations are German game text.
|
||||
Docs: ../notes/testharness.md
|
||||
@@ -43,13 +44,16 @@ import time
|
||||
HOME = os.path.expanduser("~")
|
||||
DISPLAY = ":5"
|
||||
SINK = "lama_stumm"
|
||||
PREFIX = os.path.join(HOME, ".wine-lama")
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
import lamapaths # noqa: E402
|
||||
|
||||
PREFIX = lamapaths.WINEPREFIX
|
||||
GAMEDIR = os.path.join(PREFIX, "drive_c", "Program Files", "Disney Interactive",
|
||||
"Ein Koenigreich fuer ein Lama")
|
||||
GAMEEXE = r"C:\Program Files\Disney Interactive\Ein Koenigreich fuer ein Lama\groove.exe"
|
||||
MODWAD = os.path.join(PREFIX, "mods", "testlevel", "wads", "T1L9M001.wad")
|
||||
OVERLAY = os.path.join(PREFIX, "cd-overlay")
|
||||
LAMA_MOD = os.path.join(HOME, ".local", "bin", "lama-mod")
|
||||
LAMA_MOD = lamapaths.lama_mod()
|
||||
STATE = os.environ.get("LAMATEST_DIR", "/tmp/lamatest-%s" % os.environ.get("USER", "x"))
|
||||
WINELOG = os.path.join(STATE, "wine.log")
|
||||
XVFBLOG = os.path.join(STATE, "xvfb.log")
|
||||
@@ -190,10 +194,11 @@ def check_slot3():
|
||||
|
||||
# ---------------------------------------------------------------- commands
|
||||
def cmd_start(timeout=60):
|
||||
lamapaths.need(GAMEDIR, "game folder", "set LAMA_WINEPREFIX")
|
||||
os.makedirs(STATE, exist_ok=True)
|
||||
f = foreign_groove()
|
||||
if f:
|
||||
die("Elias' own game instance is running (pid %s) - test aborted" % f)
|
||||
die("the user's own game instance is running (pid %s) - test aborted" % f)
|
||||
if game_alive():
|
||||
log("game already running on %s" % DISPLAY)
|
||||
return
|
||||
@@ -756,7 +761,7 @@ def cmd_run(wad, outdir, n=8, seq=None, do_tour=None, keep=False):
|
||||
rep = ["wad: %s" % os.path.abspath(wad)]
|
||||
status = 0
|
||||
if foreign_groove():
|
||||
die("Elias' own game instance is running - aborted")
|
||||
die("the user's own game instance is running - aborted")
|
||||
# remember the previously installed WAD -> put it back afterwards (not .orig!)
|
||||
prev = os.path.join(STATE, "vorher_T1L9M001.wad")
|
||||
os.makedirs(STATE, exist_ok=True)
|
||||
|
||||
Reference in new issue
Block a user