summaryrefslogtreecommitdiff
path: root/build/snap.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build/snap.zig')
-rw-r--r--build/snap.zig11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/snap.zig b/build/snap.zig
index 6982379c..d74767d3 100644
--- a/build/snap.zig
+++ b/build/snap.zig
@@ -86,7 +86,16 @@ pub fn addTty(b: *std.Build, opts: struct {
run_monkey_replay.has_side_effects = true;
// One pardes-snap run at a time (its lock): the scripts, then the seeds.
run_monkey_replay.step.dependOn(&run_replay.step);
- b.step("replay", "record every snapshot script's and -Dreplay-seeds monkey seeds' tapes and require each to replay without diverging").dependOn(&run_monkey_replay.step);
+ // The same seeds with three terminals on the session, each a view of
+ // it, typed into in turn (views.zig).
+ const run_views_replay = b.addRunArtifact(monkey);
+ run_views_replay.addArtifactArg(snap);
+ run_views_replay.addArtifactArg(opts.exe);
+ run_views_replay.addArgs(&.{ b.fmt("{d}", .{seeds}), "70", "--views=3", "--tape=" ++ tapes ++ "/monkey-views", "--out=" ++ tapes ++ "/monkey-views" });
+ run_views_replay.setCwd(b.path("."));
+ run_views_replay.has_side_effects = true;
+ run_views_replay.step.dependOn(&run_monkey_replay.step);
+ b.step("replay", "record every snapshot script's and -Dreplay-seeds monkey seeds' tapes (one terminal and three) and require each to replay without diverging").dependOn(&run_views_replay.step);
const monkey_tests = b.addTest(.{ .root_module = monkey.root_module });
b.step("monkey-test", "test the monkey's generator and panic detector").dependOn(&b.addRunArtifact(monkey_tests).step);
const run_driver_test = b.addRunArtifact(snap);