From d667965902512147f976fbbf89cb1ee77d0a37d0 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 15:57:57 -0300 Subject: test/cross_replay.py: a session that meets the host's failures (a Look of a fifo and of a directory, a Save into a file, a Restore of no dump, a stat and a read under /os) recorded by one build of pardes and replayed by others, its errors by name in the tape; --record and --replay alone, for the box; pardes-snap --replay-with (zig build replay -Dreplay-with=) replays every script's tape with another build too, whose replica that draws nothing must agree (a replica client draws none of its session's frames) Co-Authored-By: Claude Opus 5.5 --- build/snap.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build/snap.zig') diff --git a/build/snap.zig b/build/snap.zig index ece84ad4..ad06486a 100644 --- a/build/snap.zig +++ b/build/snap.zig @@ -77,6 +77,10 @@ pub fn addTty(b: *std.Build, opts: struct { run_replay.addArtifactArg(opts.exe); run_replay.addPrefixedFileArg("--lspmock=", lspmock.getEmittedBin()); run_replay.addArgs(&.{ "--tape=" ++ tapes, "--dump" }); + // Each script's tape replayed by another build too: a window's build + // replaying a terminal's sessions, as its replica of one does. + if (b.option([]const u8, "replay-with", "another build of pardes `zig build replay` replays every script's tape with too (a pardes-gui, say)")) |other| + run_replay.addArg(b.fmt("--replay-with={s}", .{other})); run_replay.setCwd(b.path(".")); run_replay.has_side_effects = true; const seeds = b.option(u32, "replay-seeds", "monkey seeds `zig build replay` records and replays (default 20)") orelse 20; -- cgit v1.3