diff options
Diffstat (limited to 'build/snap.zig')
| -rw-r--r-- | build/snap.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/snap.zig b/build/snap.zig index 407463bc..75e578bf 100644 --- a/build/snap.zig +++ b/build/snap.zig @@ -6,6 +6,8 @@ pub fn addTty(b: *std.Build, opts: struct { optimize: std.builtin.OptimizeMode, ghostty_vt: ?*std.Build.Module, cloud9: *std.Build.Module, + /// The build is the window's (-Dplatform=gui): the process tests drive it. + gui: bool = false, }) void { const snap = b.addExecutable(.{ .name = "pardes-snap", @@ -62,6 +64,7 @@ pub fn addTty(b: *std.Build, opts: struct { } const run_process_test = b.addRunArtifact(process_test); run_process_test.addArtifactArg(opts.exe); + run_process_test.addArg(if (opts.gui) "--backend=gui" else "--backend=tty"); run_process_test.addPassthruArgs(); run_process_test.has_side_effects = true; b.step("process-test", "run the process tests: real sessions driven over their sockets (-- [filter])").dependOn(&run_process_test.step); |
