test(victory-gpu): pin the console model's declared memory, compute units and name #612

Open
AnastasisKon wants to merge 1 commit from upstream-pr/612 into main
AnastasisKon commented 2026-11-28 13:27:08 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T13:27:08Z.


Test-only change: crates/victory-gpu/src/console.rs (the Series X/S model the title sizes itself by) had no tests.

What the tests pin

  • Console::SeriesX: title_memory() == (10 GiB, 3.5 GiB), compute_units() == 52, name() == "Xbox Series X".
  • Console::SeriesS: title_memory() == (0, 7776 MiB), compute_units() == 20, name() == "Xbox Series S".
  • set/current round trip (kept in a single test because the flag is process-global).

Testing

  • cargo test -p victory-gpu --lib console:: — 3 pass
  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask (host arm64) — all pass
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — clean
  • cargo xtask policy — 404 files ok

Checklist

  • One change, one PR
  • Branch vibe/console-tests-1705ac from upstream/main, pushed to my fork only
  • No game/GDK files, no dumps/logs in the repo
  • No AI attribution in the diff
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5540588905 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/612). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T13:27:08Z. --- Test-only change: `crates/victory-gpu/src/console.rs` (the Series X/S model the title sizes itself by) had no tests. ## What the tests pin - `Console::SeriesX`: `title_memory() == (10 GiB, 3.5 GiB)`, `compute_units() == 52`, `name() == "Xbox Series X"`. - `Console::SeriesS`: `title_memory() == (0, 7776 MiB)`, `compute_units() == 20`, `name() == "Xbox Series S"`. - `set`/`current` round trip (kept in a single test because the flag is process-global). ## Testing - [x] `cargo test -p victory-gpu --lib console::` — 3 pass - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` (host arm64) — all pass - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` — clean - [x] `cargo xtask policy` — 404 files ok ## Checklist - [x] One change, one PR - [x] Branch `vibe/console-tests-1705ac` from `upstream/main`, pushed to my fork only - [x] No game/GDK files, no dumps/logs in the repo - [x] No AI attribution in the diff
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/612:upstream-pr/612'
git switch 'upstream-pr/612'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/612'
git switch 'upstream-pr/612'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/612'
git switch 'upstream-pr/612'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/612'
git switch 'main'
git merge --squash 'upstream-pr/612'
git switch 'main'
git merge --ff-only 'upstream-pr/612'
git switch 'main'
git merge 'upstream-pr/612'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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!612
No description provided.