diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-30 15:57:57 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-30 16:29:54 -0300 |
| commit | d667965902512147f976fbbf89cb1ee77d0a37d0 (patch) | |
| tree | f5f9ed32160edaf7e1db23a0b805253206f54cfb /build | |
| parent | d0ed8056ba90a12fa3bc40ccd8642ec4ae8d9cc0 (diff) | |
| download | pardes-d667965902512147f976fbbf89cb1ee77d0a37d0.tar.gz pardes-d667965902512147f976fbbf89cb1ee77d0a37d0.zip | |
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=<pardes-gui>) 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 <[email protected]>
Diffstat (limited to 'build')
| -rw-r--r-- | build/snap.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
