summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig72
1 files changed, 2 insertions, 70 deletions
diff --git a/build.zig b/build.zig
index 78c01c61..b3b9eeea 100644
--- a/build.zig
+++ b/build.zig
@@ -1704,26 +1704,9 @@ pub fn build(b: *std.Build) void {
syntax_test_step.dependOn(&run_syntax_test.step);
if (testMatch(b, unit_profile, test_filters, syntax_test_step)) |check| check.addArtifactArg(syntax_test);
- const run_fs_test = b.addSystemCommand(&.{ "python3", "-B", "test/fs.py" });
- run_fs_test.addArtifactArg(exe);
- if (enable_quic) run_fs_test.addArg("--quic");
- run_fs_test.setCwd(b.path("."));
- run_fs_test.has_side_effects = true;
- 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);
- run_monkey9p.addPassthruArgs();
- 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);
// The GUI's effects under random input in a hidden test window, each
- // Motion x Lift x Bloom (test/gui_monkey.py): a gate, not part of
- // fs-test, since it needs a Wayland display.
+ // Motion x Lift x Bloom (test/gui_monkey.py): a gate, run by hand,
+ // since it needs a Wayland display.
const monkey_gui_step = b.step("monkey-gui", "random input to hidden GUI test windows across the effect settings (-Dplatform=gui; -- [--seed N] [--steps M])");
if (platform == .gui) {
const run_monkey_gui = b.addSystemCommand(&.{ "python3", "-B", "test/gui_monkey.py" });
@@ -1733,57 +1716,6 @@ pub fn build(b: *std.Build) void {
run_monkey_gui.has_side_effects = true;
monkey_gui_step.dependOn(&run_monkey_gui.step);
} else monkey_gui_step.dependOn(&b.addFail("monkey-gui needs -Dplatform=gui").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);
- run_discovery.addArg("--discovery");
- run_discovery.setCwd(b.path("."));
- run_discovery.has_side_effects = true;
- b.step("fs-discovery-test", "test browsable pane creation over 9P").dependOn(&run_discovery.step);
-
- if (target.result.os.tag == .linux) {
- const v9fs_helper = b.addExecutable(.{
- .name = "pardes-v9fs",
- .root_module = b.createModule(.{
- .root_source_file = b.path("src/linux/v9fs.zig"),
- .target = target,
- .optimize = requested_optimize,
- .link_libc = true,
- }),
- });
- // Ordinary executable; each launch asks sudo inside its own PTY.
- installHome(b, v9fs_helper, home_bin);
- const run_v9fs = b.addSystemCommand(&.{ "python3", "-B", "test/v9fs.py" });
- run_v9fs.addArtifactArg(exe);
- run_v9fs.addArtifactArg(v9fs_helper);
- run_v9fs.setCwd(b.path("."));
- run_v9fs.has_side_effects = true;
- b.step("v9fs-test", "probe Linux kernel 9P mounts in a private subprocess namespace (requires sudo -v)").dependOn(&run_v9fs.step);
- const run_v9fs_driver = b.addSystemCommand(&.{ "python3", "-B", "test/v9fs_driver_test.py" });
- run_v9fs_driver.setCwd(b.path("."));
- run_v9fs_driver.has_side_effects = true;
- b.step("v9fs-driver-test", "test kernel-mount probe launcher without privileges or compiling the editor").dependOn(&run_v9fs_driver.step);
- const run_v9fs_terminal = b.addSystemCommand(&.{ "python3", "-B", "test/v9fs_terminal.py" });
- run_v9fs_terminal.addArtifactArg(exe);
- run_v9fs_terminal.addArtifactArg(v9fs_helper);
- run_v9fs_terminal.setCwd(b.path("."));
- run_v9fs_terminal.has_side_effects = true;
- b.step("v9fs-terminal-test", "exercise Tty9p authentication routing and cleanup without mount privileges").dependOn(&run_v9fs_terminal.step);
- }
-
- const run_agent_session_test = b.addSystemCommand(&.{ "python3", "-B", "test/agent_session_test.py" });
- run_agent_session_test.addArtifactArg(exe);
- if (platform == .gui) run_agent_session_test.addArg("--gui-grid");
- run_agent_session_test.setCwd(b.path("."));
- run_agent_session_test.has_side_effects = true;
- b.step("agent-session-test", "test interactive session readiness, input and cleanup through 9P").dependOn(&run_agent_session_test.step);
const history = b.addExecutable(.{
.name = "pardes-history",