Build: make workspace tests run on Linux #39
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!39
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/39/head"
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?
@LaunchDoesntCode on GitHub · 2026-11-23 23:37 UTC · original
fix/linux-portable-tests→main· +84 −36 · 9 files · 1 commits · closed without mergingSummary
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.@raffclar on GitHub · 2026-11-23 23:40 UTC · original
This is required for good CI and test automation
@raffclar on GitHub · 2026-11-23 23:40 UTC · original
The sooner, we can get CI running the tests, the better
@DaviTostes on GitHub · 2026-11-23 23:51 UTC · original
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).
@Quat3rnion on GitHub · 2026-11-24 00:37 UTC · original
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.
@SkippySteve on GitHub · 2026-11-24 01:39 UTC · original
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).
@SkippySteve on GitHub · 2026-11-24 01:41 UTC · original
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