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

Open
opened 2026-11-24 14:42:53 +00:00 by sigonor90 · 1 comment
sigonor90 commented 2026-11-24 14:42:53 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by sigonor90 on 2026-11-24T14:42:53Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6584363703 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/989). Originally posted by [sigonor90](https://github.com/sigonor90) on 2026-11-24T14:42:53Z. --- 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.
Marvisak commented 2026-11-25 07:03:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T06:57:38Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7155337877 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/989#issuecomment-7155337877). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T06:57:38Z. --- <!-- 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)_
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
Marvisak/VIctory#989
No description provided.