Tests: allow a prebuilt HLE probe DLL in loader integration tests #989

Open
opened 2026-11-26 04:16:03 +00:00 by github-bot · 1 comment
Owner

@⁠sigonor90 on GitHub · 2026-11-24 14:42 UTC · original

Problem

The victory-loader integration test loads_binds_and_calls_probe builds its HLE probe fixture by invoking Cargo at runtime.

When running Windows-targeted tests on Linux through Wine, the test executable attempts to launch the Linux Cargo binary from the Windows test process. This prevents the integration test from running in this environment.

Proposed change

This patch adds an optional VICTORY_HLE_PROBE_DLL environment variable to build_probe().

When set, the test uses the supplied prebuilt DLL.

The path is checked before use.

When unset, the existing behavior is preserved: the fixture is built through Cargo as before.

This keeps the normal Windows CI workflow unchanged while allowing cross-platform test runners to provide a Windows fixture built in advance.

Validation

Tested on Fedora Linux with Wine, targeting x86_64-pc-windows-msvc.

victory-loader package tests: 25 passed, 0 failed.

Integration tests in load_probe: 2 passed, 0 failed.

The HLE probe DLL was built separately for the Windows MSVC target.

This is a test-infrastructure change. It does not modify loader behavior or claim official Linux/Wine support.

Patch

Commit: 90064d05b403cf9532a2a97a245cfb43faa12191

Branch: test/wine-prebuilt-probe

I'd appreciate maintainer feedback on whether this approach is suitable for the project.

**@⁠sigonor90** on GitHub · 2026-11-24 14:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/989) Problem The victory-loader integration test loads_binds_and_calls_probe builds its HLE probe fixture by invoking Cargo at runtime. When running Windows-targeted tests on Linux through Wine, the test executable attempts to launch the Linux Cargo binary from the Windows test process. This prevents the integration test from running in this environment. Proposed change This patch adds an optional VICTORY_HLE_PROBE_DLL environment variable to build_probe(). When set, the test uses the supplied prebuilt DLL. The path is checked before use. When unset, the existing behavior is preserved: the fixture is built through Cargo as before. This keeps the normal Windows CI workflow unchanged while allowing cross-platform test runners to provide a Windows fixture built in advance. Validation Tested on Fedora Linux with Wine, targeting x86_64-pc-windows-msvc. victory-loader package tests: 25 passed, 0 failed. Integration tests in load_probe: 2 passed, 0 failed. The HLE probe DLL was built separately for the Windows MSVC target. This is a test-infrastructure change. It does not modify loader behavior or claim official Linux/Wine support. Patch Commit: 90064d05b403cf9532a2a97a245cfb43faa12191 Branch: test/wine-prebuilt-probe I'd appreciate maintainer feedback on whether this approach is suitable for the project.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:16:03 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:57 UTC · original

Automated triage for the maintainers.

main has no VICTORY_HLE_PROBE_DLL: the loader's load_probe integration test always builds the probe fixture through Cargo. Open PR #1631 ("Tests: allow prebuilt HLE probe DLL via VICTORY_HLE_PROBE_DLL", which names this issue) carries this change together with the GNU delay-load flag from #903, so review can continue there. It is a test-infrastructure change for running the Windows tests under Wine. The project supports Windows hosts, so whether to take it is for the maintainers.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 06:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/989#issuecomment-7155337877) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T14:42:53Z at=2026-11-25T06:57:37Z --> Automated triage for the maintainers. `main` has no `VICTORY_HLE_PROBE_DLL`: the loader's `load_probe` integration test always builds the probe fixture through Cargo. Open PR #1631 ("Tests: allow prebuilt HLE probe DLL via VICTORY_HLE_PROBE_DLL", which names this issue) carries this change together with the GNU delay-load flag from #903, so review can continue there. It is a test-infrastructure change for running the Windows tests under Wine. The project supports Windows hosts, so whether to take it is for the maintainers. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#989
No description provided.