From 174e031985db910b4907ba324d6fd12c67898a5a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 8 Nov 2026 23:49:04 -0300 Subject: tests: monkey and replay are modes of the T1 runner and snapshot.zig goes: behaviour-test runs test/monkey9p.zig bare (its smoke), `-- --monkey ` drives an in-process session with test/monkey.zig's input (keys, leader bursts, the mouse, tiny resizes, over /kbdin, /mousein and Session.resize) hunting panics and hangs, `-- --replay` records each seed's sessions as a tape in memory and replays it (tape.replayBytes, replayMain's loop: three replicas and the dump), and `process-test -- --replay` records and replays the tty cases' real sessions as `zig build replay` did (with the addons it lacked, so images passes); the snap, snap-driver-test, monkey, monkey-test (it no longer compiled), replay and monkey-session steps, pardes-snap and build/snap.zig (now build/process.zig) go; checked: a counter outside the core bumped at the 40th update diverges every T1 seed and 89 of 103 old tapes, one bumped on terminal output diverges no T1 seed but 69 tty cases and 70 old tapes (why the tty replay stays), a panic on a window under 5x5 is found by the T1 monkey (seeds 1 8 17 20) and the old one (seed 13) Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- .gitignore | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index fa5a6ee0..92bf54d9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,9 +3,9 @@ zig-out* .zig-cache/ .zig-cache/* test/__pycache__/ -# a failing snapshot writes .actual beside its golden; it is the failure -# report, not a source of truth, and eleven had been committed by accident -test/snapshots/*.actual +# a failing macOS snapshot writes .actual beside its golden; it is the +# failure report, not a source of truth, and eleven had been committed by +# accident (a tty case writes what it drew under /tmp/pardes-snap instead) test/macos-snapshots/*.actual # a REAL rust-analyzer pointed at the client fixture (which its Cargo.toml # invites) runs cargo there, and cargo writes a target/ and a lock beside the -- cgit v1.3