`zig build test -Dname=examples/0625-foo.sx[,examples/0626-bar.sx]` runs ONLY the named example(s) — full repo-relative .sx paths, comma-separated (a leading `./` is tolerated). Empty = run everything (unchanged default). Why: a full `-Dupdate-goldens` re-runs and rewrites all ~690 snapshots, so one flaky/host-divergent example (AOT links, cross-arch `target` examples) can clobber a good snapshot. `-Dname` regenerates only the named example(s) and touches nothing else. It also busts the cached test-run result — the corpus enumerates .sx/expected files at runtime, so a bare snapshot edit alone is otherwise served from cache. - build.zig: new `name` option threaded onto corpus_paths. - corpus_run.test.zig: `nameMatchesFilter` + a per-example skip in the run loop. - CLAUDE.md: document the targeted-regen workflow under Snapshot integrity.
12 KiB
12 KiB