diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 19:19:26 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 19:50:16 -0300 |
| commit | f7442cb1f23ce10ccedaa37b1851d751f689943d (patch) | |
| tree | 5b5d2f4aec42912855040973fd82cffea2cfbae4 /build | |
| parent | 64791576dcfc0efb18ceb7500cfdfe5f9e9fd600 (diff) | |
| download | pardes-f7442cb1f23ce10ccedaa37b1851d751f689943d.tar.gz pardes-f7442cb1f23ce10ccedaa37b1851d751f689943d.zip | |
test: the process tests run on each backend (the user: an effect's test is its backend's): zig build process-test -Dplatform=tty drives pardes, -Dplatform=gui drives pardes-gui hidden (PARDES_TEST, SDL_VIDEO_DRIVER=offscreen, no display of the user's touched) on a pty of its own and a detached session's 160x50 grid, its frames and status in a capture directory of its own, Detached.frame() waiting for it to say it is idle; the runner told its backend (--backend, from the build), each line marked [tty] or [gui] with its time, a case that skips said so; the terminal frontend's and a detached session's own cases (pardes -, a killed tty editor, a signalled detached session, a message expiring with nothing attached) process.only(.tty), a detached session's size checks and pty pixel cells the tty's alone; the canary tty-only for now (on the window its Newcol is refused after the terminal steps, docs/next-tests.md); tty 36 of 36, gui 31 and 5 skipped
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build')
| -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); |
