Follow-up to #337, from the review points there:
- resolve_build_dir, CONFIG_DIRS and the "not found" message move from
scripts/run_gpu_tests.py into runtime/test/shaders/check.py, which
run_gpu_tests.py already imports from. check.py main() now finds the
programs in build/RelWithDebInfo, Release, Debug or MinSizeRel as well,
so `check.py <out>` (docs/design.md, "Reproduce the shader tests") works
with the Visual Studio generator.
- When the programs come from a configuration subfolder, one line says
which: `test programs: <folder> (newest of A, B)`, so a #166 report can
name the build it ran and a stale pick is visible.
- The "Test programs not found" message says the configuration subfolders
were searched too (and gets a space after the colon in run_gpu_tests.py).
- tests/test_gpu_build_dir.py: the printed line, the message, and two
main()-level tests (run_gpu_tests.main hands the resolved folder to
run_suite, check.main hands it to the first test) with the programs faked.
No GPU used. AI-assisted.
With the Visual Studio generator the test programs land in build/<Config>, and the runner only looked in the build
folder itself, so --build had to point at the subfolder (#166, RX 9070 XT entry). resolve_build_dir() looks in the
build folder first, then in RelWithDebInfo, Release, Debug and MinSizeRel, and takes the configuration that has all
three required programs and was built last. If none has them, the folder given is kept for the error message.