test(backend): add process manager and steamcmd tests with stub scripts

- server_process_test.go: 16 tests covering splitArgs, hasArgPrefix,
  buildAutoArgs (config/port/profiles), buildArgs, resolveModPath (name/
  ID/empty), buildModPath, WriteUserconfigFiles, Start/Stop lifecycle,
  percent-command substitution
- steamcmd_test.go: 9 tests covering CheckWorkshopMod (directory/file/
  empty), SteamCmdManager state machine, DownloadMods/UpdateGame
- testdata/: stub arma3server_x64 and steamcmd scripts for safe process
  testing without real binaries
This commit is contained in:
MrFastwind
2026-07-23 20:23:31 +02:00
parent 311cc01ce5
commit bc23ad7daa
4 changed files with 693 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
# Stub steamcmd binary for testing.
# Logs args to stdout then exits immediately.
echo "[STUB] steamcmd called with: $@"
exit 0