summaryrefslogtreecommitdiff
path: root/build/snap.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build/snap.zig')
-rw-r--r--build/snap.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/snap.zig b/build/snap.zig
index 4f9b8f63..e7f4069c 100644
--- a/build/snap.zig
+++ b/build/snap.zig
@@ -65,10 +65,13 @@ pub fn addTty(b: *std.Build, opts: struct {
const run_process_test = b.addRunArtifact(process_test);
run_process_test.addArtifactArg(opts.exe);
for (opts.addons) |a| run_process_test.addPrefixedFileArg("--addon=", a.getEmittedBin());
+ run_process_test.addPrefixedFileArg("--lspmock=", lspmock.getEmittedBin());
run_process_test.addArg(if (opts.gui) "--backend=gui" else "--backend=tui");
run_process_test.addPassthruArgs();
+ // The tty cases' goldens are test/snapshots/'s, from the build root.
+ run_process_test.setCwd(b.path("."));
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);
+ b.step("process-test", "run the process tests: real sessions over their sockets, the tty's in a pty each (-- [--update] [filter])").dependOn(&run_process_test.step);
// The window's own, run in full when asked (test/process/window.zig):
// the monkey over every Motion, and the frames against
// this machine's goldens (PARDES_GUI_GOLDEN=update rewrites them).