Build: make workspace tests run on Linux #39
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/39"
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?
Imported from Marvisak/VIctory. Originally posted by LaunchDoesntCode on 2026-11-23T23:37:35Z.
Summary
Make
cargo test --workspace --lockedrun on Linux while keeping the title runtime and GPU implementation Windows-targeted.This supports Linux contributors who build the Windows executable for Proton. No game files or derived data are included.
Validation
cargo test --workspace --lockedon Linux: 155 passed, 3 ignored, 0 failed.lld-link, and pure Rust BLAKE3: passed.cargo xtask policy: passed (148 files).git diff --check: passed.cargo fmt --all -- --checkstill reports formatting differences already present on upstreammain; this branch leaves those files' unrelated formatting alone.Imported from Marvisak/VIctory. Originally posted by raffclar on 2026-11-23T23:40:07Z.
This is required for good CI and test automation
Imported from Marvisak/VIctory. Originally posted by raffclar on 2026-11-23T23:40:36Z.
The sooner, we can get CI running the tests, the better
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-23T23:51:25Z.
Tested
c0b749don Arch Linux x86_64, rustc 1.98.1 (the pinned toolchain): pass, and it makes the workspace testable here.main,cargo build -p victory-gpufails on Linux witherror[E0425]: cannot find function 'host_resource'incrates/victory-gpu/src/resource.rs. On this head the workspace builds.cargo test --workspace: 156 passed, 0 failed, 3 ignored (all test binaries), no game data and novictory.tomlused.This is the Linux baseline the other open PRs can be checked against.
AI-assisted (DeepSeek V4.1 Flash coding agent).
Imported from Marvisak/VIctory. Originally posted by Quat3rnion on 2026-11-24T00:37:54Z.
Superseded by #112, which carries your host-aware path and storage tests and keeps the data/shader tools usable on Linux. Verified on Linux: 156 passed, 0 failed, 3 ignored with the pinned toolchain. Thanks for the groundwork, @LaunchDoesntCode.
Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T01:39:25Z.
Heads-up: this PR is currently conflicting with
main.I rebased the same set of gates onto current
upstream/main(d2a4bae) here, in case it saves you some time:https://github.com/SkippySteve/VIctory/tree/linux-workspace-gates (one commit,
compare)Results on x86_64 Arch Linux:
mainlinux-workspace-gatescargo check --workspace --tests --lockedhost_resourcein victory-gpucargo test --workspace --lockedcargo build --workspace --locked --releasecargo xtask policyIt covers the same files as this PR: the
view_formatgate, d3d12x allocator hookup,XLaunchNewGamerelaunch, the xgameui dialog, and the PE/path-rule tests being Windows-only. The test modules whose remaining tests are all gated also get anallow(unused_imports)so Linux builds stay warning-free.The one real difference is
apps/victory/src/translate.rs. Instead of gating inmain.rs, it adds a small off-WindowsValidator/Hoststub that reports "needs Windows (D3D12 / dxil.dll)". With that,victory translatestill runs on Linux (translation and structuring work; validation and pipeline creation are reported as unavailable) instead of being compiled out.Feel free to pull or reset onto that branch. Or, if you'd rather, say the word and I'll open a superseding PR based on #39 that credits you (Co-authored-by).
Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T01:41:09Z.
Thanks @LaunchDoesntCode for this approach. I've rebased the gates as a minimal change onto current main in #235, with credit to this PR, so Linux builds work while #112 is still in progress.
Pull request closed