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

Open
opened 2026-11-28 21:34:28 +00:00 by AnastasisKon · 0 comments
AnastasisKon commented 2026-11-28 21:34:28 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T21:34:28Z.


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).

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6671403107 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/644). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T21:34:28Z. --- ## 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).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#644
No description provided.