Skip to content

1.12.3 - the Play path tested end to end, and the tests tracked

Choose a tag to compare

@phoenixd123 phoenixd123 released this 28 Nov 02:59
· 4 commits to main since this release

The Play path is now tested end to end, and every test that needs no game files lives in tests/ behind one
runner.

The Play row, tested end to end

1.12.2 tested the Ctrl+Alt+End watcher by calling it directly. This release drives the real menu: a stub sh3.exe,
scripted keys that press Play, the Play path's two prompts answered by a test-only hook, CreateProcess, the
hidden launcher window, the watcher registering Ctrl+Alt+End, the kill, and exit 0. The stub writes a file only if
it is still alive six seconds in, so a kill that did not land fails the run instead of passing quietly.

Two environment variables exist for that run only: SH3_CONFIRM=yes|no answers every yes/no box without a dialog,
and SH3_REGISTRY_READY=1 stands in for the machine registry entry that writing would need an administrator prompt
for. The answer is logged as confirm: ... -> yes, so the log itself says what happened.

Tests in the repository, one runner

modes_test.c, ini_test.c and watchdog_test.c moved out of the ignored build/ folder into tests/, with:

bash tests/run.sh

That builds the launcher, then runs the display-mode list, the sh3.ini writer, the watcher, and the Play test,
and exits non-zero if any of them fails.

Not tested: the in-game Options pick (no game files here), and a real Ctrl+Alt+End keystroke - the tests reach the
kill through SH3_WATCH_KILL_MS and a posted WM_HOTKEY.