Commit Graph

9 Commits

Author SHA1 Message Date
924b14656c shader_diff: replay a single seeded program by index (#6855)
Squash-merged after diff review of PR #6855 - shader_diff: replay a single seeded program by index
2026-11-23 09:50:23 -06:00
71f0c9f778 tests: invalid format codes skip 42 (now 10_11_11 SINT); an all-skipped shader_diff run exits 2 (#4448)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 04:25:00 -05:00
76cf23f5c3 Merge pull request #4448 from tedin7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:14:49 -05:00
6caeae4ac6 cf_diff, mem_diff, shader_diff, fmisc_diff: exit 2 when every program was skipped 2026-11-23 02:29:16 +01:00
da96d1fac9 test: a run where every program was skipped is not a success (cf_diff, mem_diff, shader_diff, fmisc_diff) 2026-11-23 02:27:39 +01:00
0c48c1f432 shader_diff: report unexpected translator errors (TEST-807) 2026-11-23 00:29:39 +03:00
89924428f9 fix(tests): report unexpected shader interpreter failures 2026-11-22 17:49:31 +03:00
780a0a479d shader_diff: refuse an option below 1 instead of running nothing
--programs and --limit took bare ints, so 0 or a negative value ran no
program and still printed "0 programs (seed 1): 0 pass, 0 mismatch ..."
with exit 0. That reads as a pass from the differential oracle the docs
tell people to run, and a negative --limit is easy to get from shell
arithmetic. --max-ops had the same gap and died with
ValueError: empty range in randrange(1, 1).

All three now require at least 1: one argparse line, exit 2, which is what
anim_index, rbf0_index, rpf9_carve and shader_disasm already do. Defaults,
the output format and the 2/1/0 exit codes are unchanged, and the new
tests cover both the refusal and a valid --limit still running that many
programs.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-22 05:00:37 -06:00
9df1a6cee1 shader_diff: a harness error exits 2, as documented, not 1 like a mismatch
run_suite sets first_failure for a harness error too, and main returned 1
whenever first_failure was set, so the exit-2 branch was unreachable and a
broken harness read as a translator mismatch.
2026-11-22 12:37:25 +05:30