tests: a synthetic console title for e2e runs without game data, asserting the game folder is untouched #648

Open
opened 2026-11-28 21:37:02 +00:00 by github-bot · 0 comments
Owner

@⁠AnastasisKon on GitHub · 2026-11-28 21:34 UTC · original

What

Every meaningful run today needs the 137 GB game folder, which is still downloading — and the full path (loader -> HLE -> victory-gpu -> Metal) has no end-to-end regression that does not depend on it. MacBox ships one: tests/testtitle (x86-64 title, gpu.rs ~1.8k lines exercising pipelines, draws and presents; audio.rs) run by an e2e harness whose test is literally named test_title_runs_and_game_folder_is_untouched — it snapshots the game folder before the run and asserts it is byte-identical after, so the never-touch-the-game-data rule is enforced by a test, not by review.

What this changes

  • a small x86-64 test title built by xtask (built with the workspace, never from game data), exercising: memory, threads, one pipeline create/bind/draw/present through the Metal path, a DirectStorage queue over a synthetic pack, one audio voice;
  • an e2e test that runs it under the standing one-game-at-a-time rule (lockf, headless) and asserts the game folder is untouched.

How it was tested

  • the e2e test itself, plus the existing suites; no game run needed — that is the point.

Sources: MacBox tests/testtitle/, crates/xcl/tests/e2e.rs (copy_dir, snapshot, test_title_runs_and_game_folder_is_untouched).

**@⁠AnastasisKon** on GitHub · 2026-11-28 21:34 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/644) ## What Every meaningful run today needs the 137 GB game folder, which is still downloading — and the full path (loader -> HLE -> victory-gpu -> Metal) has no end-to-end regression that does not depend on it. MacBox ships one: tests/testtitle (x86-64 title, gpu.rs ~1.8k lines exercising pipelines, draws and presents; audio.rs) run by an e2e harness whose test is literally named test_title_runs_and_game_folder_is_untouched — it snapshots the game folder before the run and asserts it is byte-identical after, so the never-touch-the-game-data rule is enforced by a test, not by review. ## What this changes - a small x86-64 test title built by xtask (built with the workspace, never from game data), exercising: memory, threads, one pipeline create/bind/draw/present through the Metal path, a DirectStorage queue over a synthetic pack, one audio voice; - an e2e test that runs it under the standing one-game-at-a-time rule (lockf, headless) and asserts the game folder is untouched. ## How it was tested - the e2e test itself, plus the existing suites; no game run needed — that is the point. Sources: MacBox tests/testtitle/, crates/xcl/tests/e2e.rs (copy_dir, snapshot, test_title_runs_and_game_folder_is_untouched).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:37:03 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.