upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/vulkan_aftermath.cpp
diff options
context:
space:
mode:
authorqhukz13 <v.onashchuk@gmail.com>2026-11-24 18:54:37 +0200
committerqhukz13 <v.onashchuk@gmail.com>2026-11-24 18:54:37 +0200
commitdbc0c74360b36298ec86f8f1c8a16bde34f6d285 (patch)
tree9179524af195840c1471d027908caf36ce022c0f /runtime/src/vulkan_aftermath.cpp
parent6ff4d2805a59e8ad00ee64bc13a09d3f4ba0114d (diff)
semantic_mutants: --source mutates any tools/ file, and tests outside tests/semantic run from a copy (MUTANTS-SOURCE)
The tool could only mutate tools/rdna2spirv.py, but much of the logic a test should catch lives in other tools: cfg_structure.py, lane_masks.py, wave64_emulate_opt.py, rdna2_decode.py. `--source tools/<file>.py` (default tools/rdna2spirv.py, so existing uses are unchanged) picks the file; --op/--function/--lines and the Python-logic mutations apply to it. A tests/semantic file runs in place through LEONIDA_TOOLS_DIR, as before. Any other test of the repository imports tools/ by path, so a mutant in the private tools/ copy never reached it (reviewing #637, every mutant of rdna2_decode.py "survived" test_rdna2_decode.py that way). Such a test now runs from a copy of the repository's tracked files (git ls-files, then tools/ and tests/ whole for untracked work) with the mutant in that copy's tools/, and as a script when it has a `__main__` block, since test_cfg_structure.py and test_lane_masks.py have no unittest class. run_test is unchanged. On main: `--source tools/rdna2_decode.py` on the VOP3 0x140 rename with tests/test_rdna2_decode.py catches 2 of 2; `--source tools/cfg_structure.py --function depth` with tests/test_cfg_structure.py catches 2 of 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions