summaryrefslogtreecommitdiff
path: root/build/snap.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-08 23:20:07 -0300
committerGabriel Schneider <[email protected]>2026-11-09 01:28:28 -0300
commit80db18269dd9f7153a02f3efa6ff92c69948a623 (patch)
treeaf09fbba02c5fdf40bd6a8e1520a24937219aed4 /build/snap.zig
parent7437a05c87c5313467a24d24468ea807a1413830 (diff)
downloadpardes-80db18269dd9f7153a02f3efa6ff92c69948a623.tar.gz
pardes-80db18269dd9f7153a02f3efa6ff92c69948a623.zip
tests: the tty's own cases get their runner in the process suite, test/tty.zig (a pardes in a pty of its own, driven by a terminal's bytes, its captures compared with test/snapshots/<name>.golden: the snapshot scripts' commands as methods, their capture and settle code moved from snapshot.zig) and process_test.zig's pool (a child a case, a core's worth at once, a failure run again alone with the wider settle probe), with six empty files for the script families the next changes fill, so each family can be reverted alone
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
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).