upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authormilk4sale <53350507+milk4sale@users.noreply.github.com>2026-11-24 20:54:01 -0600
committermilk4sale <53350507+milk4sale@users.noreply.github.com>2026-11-24 21:01:23 -0600
commita94c7e0c4d24108c9cfd0c7e2993e74e170b6e91 (patch)
tree10ddeff2ae95dfa6c27a1c429316afc6be55c27e /runtime/src/xma2_decoder.cpp
parentb07b9ecb09b47fa6496f01ad9d8fe87d205bd5d8 (diff)
tests: test_mutations copies tools/ once and runs only the test each mutation must break (TEST-MUTATIONS-COST)
test_mutations.py is the last file still running in every semantic-tests (windows-latest) run measured for #1462, 250-381 s there against 33-46 s on the Linux leg of the same runs, while the rest of the suite took 0.76-1.61 times as long on Windows as on Linux. For each of its 14 runs of test_ps_semantics.py (the baseline and 13 mutations) it copied tools/ (about 330 files) into a new temporary folder, deleted it afterwards, and ran the whole file. test_each_mutation_is_caught now makes one copy for all 13 mutations: each starts from the original translator and writes it back in a finally, so 14 copies become 2. Each mutation runs only the test it must break (test_ps_semantics.TranslatorSemantics.<test>), so its child translates one shader instead of six. failed_tests counts only failures reported for TranslatorSemantics: a name the class does not have fails too, as "ERROR: test_x (unittest.loader._FailedTest.test_x)", and with one test per run the old pattern would have counted a misspelled expected test as caught. What the file checks is unchanged: the whole of test_ps_semantics.py passes on an unmutated copy, each anchor matches exactly once, each mutation makes its test fail, the CRLF anchor test is untouched and the repository's tools/ is never written. The children keep PYTHONDONTWRITEBYTECODE=1, which now also keeps a .pyc of an earlier mutant from being run for a later one of the same size written in the same second; a comment says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions