summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig20
1 files changed, 19 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 8646be05..e9e64056 100644
--- a/build.zig
+++ b/build.zig
@@ -1568,7 +1568,25 @@ pub fn build(b: *std.Build) void {
if (enable_quic) run_fs_test.addArg("--quic");
run_fs_test.setCwd(b.path("."));
run_fs_test.has_side_effects = true;
- b.step("fs-test", "exercise default 9P service and mounts with an independent client").dependOn(&run_fs_test.step);
+ const fs_test_step = b.step("fs-test", "exercise default 9P service and mounts with an independent client");
+ fs_test_step.dependOn(&run_fs_test.step);
+
+ // Random 9P operations against a throwaway detached session, checking
+ // the documented rules (test/monkey9p.py). The fixed-seed smoke run is
+ // part of fs-test; the long run is manual.
+ const run_monkey9p = b.addSystemCommand(&.{ "python3", "-B", "test/monkey9p.py" });
+ run_monkey9p.addArtifactArg(exe);
+ if (b.args) |args| run_monkey9p.addArgs(args);
+ run_monkey9p.setCwd(b.path("."));
+ run_monkey9p.has_side_effects = true;
+ b.step("monkey-9p", "random 9P operations checking the documented rules (-- [--seed N]... [--steps M] [--replay F] [--shrink F] [--no-shrink])").dependOn(&run_monkey9p.step);
+ const run_monkey9p_smoke = b.addSystemCommand(&.{ "python3", "-B", "test/monkey9p.py" });
+ run_monkey9p_smoke.addArtifactArg(exe);
+ run_monkey9p_smoke.addArg("--smoke");
+ run_monkey9p_smoke.setCwd(b.path("."));
+ run_monkey9p_smoke.has_side_effects = true;
+ b.step("monkey-9p-smoke", "a short fixed-seed 9P monkey run (part of fs-test)").dependOn(&run_monkey9p_smoke.step);
+ fs_test_step.dependOn(&run_monkey9p_smoke.step);
const run_discovery = b.addSystemCommand(&.{ "python3", "-B", "test/fs.py" });
run_discovery.addArtifactArg(exe);