Tests: add synthetic Xbox runtime conformance under Wine #505
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!505
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-505"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@pedrofort on GitHub · 2026-11-24 04:17 UTC · original
pedrofort:runtime-conformance→main· +942 −0 · 2 files · 1 commits · openObjective
Add a reproducible synthetic runtime conformance harness for VIctory's Windows loader under Wine, initially validated on Apple Silicon.
Coverage
PE mapping and relocation
Xbox HLE initialization and uninitialization
Series X and Series S configurations
AVX2 and FMA arithmetic
Multithreading and synchronization
TLS callbacks and static thread-local storage
Virtual memory allocation
Virtual G: drive file access
Imported and dynamically loaded title DLLs
Missing import reporting and zero-return stubs
Map-only execution and alternate exit codes
Validation
Apple M5, macOS 27.2.1, Rosetta, Sikarugir Wine 10.0 and LLVM/LLD 23.1.6.
Check | Result -- | -- Fixture compilation | 12/12 Direct execution controls | 9/9 VIctory loader checks | 16/16 Total | 37/37 Failed | 0 Blocked | 0 Asset policy | PASSThe harness was rerun successfully after packaging it for this PR.
Scope
No runtime implementation changes. All fixtures are generated from original synthetic source outside the repository.
These results demonstrate the tested CPU and loader functionality under Wine on Apple Silicon, not commercial title compatibility or integrated graphics support.
Independent Linux/Wine validation is welcome.
No game files or proprietary assets were used.
AI-assisted implementation, with execution and validation performed locally on Apple Silicon.
@MichaelSmithAI on GitHub · 2026-11-24 10:19 UTC · original
Independent x86-64 Linux replay passed all 37 checks with Wine 11.22: 12 fixture builds, 9 direct execution controls, and 16 VIctory loader checks. All 37 ran, including thread-local storage, threading and the Series S HLE case.
We used the unmodified harness files from this PR with a Win64 GNU/LLVM build of VIctory main
ffe310e. A fresh Wine prefix initially timed out during initialization. Disabling the optionalmscoreeandmshtmlcomponents alongsidewinemenubuilderlet initialization finish and the harness run to completion. This was a synthetic CPU and loader run.AI-assisted setup and verification.
@Marvisak on GitHub · 2026-11-25 01:28 UTC · original
Automated triage for the maintainers.
Needs work. This needs the maintainer's decision.
tests/runtime/run.shis a bash wrapper around about 880 lines of embedded Python. It creates a Wine prefix, runsclang,lld-linkandllvm-dlltool, and startswineandvictory.exeas subprocesses, with macOS-specificDYLD_*setup. A harness that spawns external tools needs the maintainer's sign-off. It also adds a second test toolchain (Python, LLVM, Wine) next to the Rust one, and CI does not run it.Concrete points:
mainalready covers synthetic loader and HLE loading in Rust:crates/victory-loader/tests/load_probe.rsbuildstests/fixtures/hle-probeand runs it in CI. Cases this harness adds that are missing there could go into that fixture or test instead. These cases are relocation, TLS callbacks, the G: drive, missing-import stubs and Series S.xtask wine-test). A Wine-specific harness belongs with that decision.A smaller PR that adds the missing cases to the existing Rust fixture test would be easier to review.
CI: no check runs on the head commit.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.