WIP: Keep shader tests buildable on Linux #578
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!578
Loading…
Reference in a new issue
No description provided.
Delete branch "tyr0nsur/Darner:codex/shader-tests-portability"
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?
Contributor role (optional)
Role already granted.
What it changes
A bare Linux build of the shader unit tests fails with
E0433atc8258f9. The ignoredtranslate_hot_programstest still has to compile, but it refers toemit::validator, which is compiled only on Windows.Guard the optional validator load and invocation. On Linux the test can compile and use the existing
no validatorstatus. This change is confined to the ignored test module.How it was tested
9cc5a54don top ofc8258f9, using rustc 1.98.1.oracle64::legacy_mul_forms_are_exact. That case exceeded a four-minute run limit. Commandcargo test --locked --offline -p darner-shader --lib -- --skip oracle64::legacy_mul_forms_are_exact --test-threads=1.cargo xwin test --locked --offline --target x86_64-pc-windows-msvc -p darner-shader --lib --no-run. Runningemit::lower::tests::under Wine passed 30 tests with one ignored.fastprofile. 357 passed and six were ignored, including a pass oforacle64::legacy_mul_forms_are_exact. The suite took 37.93 s on one pinned Ryzen 7 5800X logical CPU. CommandRUSTFLAGS='-C target-cpu=native' cargo test --locked --offline --profile fast -p darner-shader --lib -- --test-threads=1.9cc5a54d, using rustc 1.98.1. Commandscargo clippy --workspace --all-targets --locked -- -D warningsandcargo clippy --workspace --all-targets --locked --all-features -- -D warnings.Checklist
main.docs/asset-policy.md.Checked for overlap
card_cost_tests.rs.WIP: [pr-tests][shaders] Keep shader tests buildable on Linuxto WIP: Keep shader tests buildable on LinuxView 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.