Repository navigation
Conversation
… tools are missing Without llvm-mc (or the SDK's spirv-as/spirv-val, or glslangValidator for d3d12_subgroup) ten tests were never registered, so ctest reported 266 tests instead of 276 and runs on different machines could not be compared. They are now registered as disabled, as gameinput is without SDL3, so the total is the same everywhere and the run shows which tests it did not run.
|
Tested
The test names are identical between the two configures of this branch ( |
|
Tested
AI-assisted: yes |
Claimed in the coordination issue: #9522 (comment) (the CMake side of icecreammule277-dot's finding, #9522 (comment); the docs side is @monkelmaoooo's PROC-546).
What and why
Without llvm-mc (or the Vulkan SDK's
spirv-as/spirv-val, orglslangValidatorford3d12_subgroup),runtime/CMakeLists.txtdid not register the tests that need translated shaders. Only a configure-time STATUS line said so, soctestreported a smaller total, and runs on different machines could not be compared. The finding counted 7 tests. The two blocks actually leave out 10:d3d12_translated_draw,vk_bindless_ps_tex,vk_bindless_ps_imgatomic,d3d12_m2_textured,d3d12_m2_formats,d3d12_m3_frame,d3d12_m3_first_pass,d3d12_m4_compute,d3d12_buffer_uavandd3d12_subgroup.runtime/CMakeLists.txt: theelse()branch of the M1.5 block (LEONIDA_LLVM_MC AND LEONIDA_SPIRV_AS AND LEONIDA_SPIRV_VAL) and the one of the subgroup block (LEONIDA_LLVM_MC AND Vulkan_GLSLANG_VALIDATOR_EXECUTABLE) register these tests withDISABLED TRUE. This is howgameinputis already registered without SDL3 (L1096-1099), so ctest lists them as "Not Run (Disabled)". The total is now the same on every machine, and the run shows which tests it did not run. The STATUS lines stay, and the two comments above the blocks say what happens now. When the tools are found, nothing changes.Tested
Windows 11 Pro (10.0.26300), NVIDIA GeForce RTX 4070 SUPER, driver 32.0.16.1742, Vulkan SDK 1.4.363.0, CMake 4.4.4, Visual Studio 17 2022 generator (VS Build Tools 2022). Configure and
ctest -Nonly. Nothing was built, because the change is in test registration only.main5d74c27, noLLVM_MCLLVM_MC(Disabled)LLVM_MCsetctest -Ron three of the disabled tests prints***Not Run (Disabled)for each, with no failure.python -I tests/test_ctest_registration.py: OK (every built test executable still has anadd_test).spirv-as/spirv-valare not (sameelse()branch), Linux, and a real llvm-mc build. The "LLVM_MCset" configure points it at an unrelated executable, which is enough for registration but not for building the shaders.python -I scripts/check_no_game_data.py runtime/CMakeLists.txt: clean.AI-assisted: yes (Claude Code).
Checklist
Touches
runtime/CMakeLists.txtonly, in twoelse()branches. PROC-546 documents the same tests indocs/testing.md: if it lands first, its wording about missing tests may need to say "Not Run (Disabled)".