Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ alone does not establish that they ran. Check the CMake configure messages and l
configured tests with `ctest --test-dir runtime/build -C RelWithDebInfo -N` before comparing test counts. After
installing missing tools, rerun CMake in an environment where they are visible and rebuild.

`LEONIDA_SHADERS` is one environment variable that changes which tests pass, not just which ones run.
It is what `shader_library_corpus` reads, and `d3d12_descriptor` and `d3d12_r9g9b9e5_uav` also pick up
whatever it names. Set to a translated corpus and left in the shell, a full suite reported four
failures on one machine (`display_white_cache`, `d3d12_descriptor`, `d3d12_r9g9b9e5_uav`,
`xbox_present`); the same suite from a shell without it reported one (`xbox_present`), and the two
middle tests passed in under half a second each on their own. Set the variable for the corpus test
only, or pass it on that test's command line, so the rest of the suite runs in the environment it was
written for.


Windows, from a "Developer PowerShell for VS 2022" or a plain shell:

Expand Down