summaryrefslogtreecommitdiff
path: root/build/process.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-09 00:37:48 -0300
committerGabriel Schneider <[email protected]>2026-11-09 01:28:28 -0300
commit4c4b9bf54d77dbc0f9f4e2619746908e501c6001 (patch)
tree457f82861e13ae95ab8d46ab04db93bcc0ca0e0b /build/process.zig
parent174e031985db910b4907ba324d6fd12c67898a5a (diff)
downloadpardes-4c4b9bf54d77dbc0f9f4e2619746908e501c6001.tar.gz
pardes-4c4b9bf54d77dbc0f9f4e2619746908e501c6001.zip
tests: the gui goldens go (test/gui-goldens.txt, the gui-golden step, window.zig's scenes case): their 15 frame hashes were this machine's; what they caught the kept set catches, checked break by break: the core's primary selection drawn as a secondary one (6 frames) fails 12 tty cases, the grip's focus fill and its button a pixel narrow (all 15) fail "every pixel of a grip column is band, button or ring", the theme's rules a pixel wider (all 15) fail "an empty column is ruled on both sides" and "decor is read from the regions"; two caught by the frames alone get unit tests of their own in gui.zig, the scrollbar thumb a pixel narrower (all 15) and the block cursor not reversed (9 frames); breaks the frames never saw (the body's clip and its context border, InactiveDim's fade, an image's scissor, fit and placed rect, the palette, the glyph art) stay the unit tests' and the image harness's or nobody's, as before
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build/process.zig')
-rw-r--r--build/process.zig13
1 files changed, 1 insertions, 12 deletions
diff --git a/build/process.zig b/build/process.zig
index bec37d65..1968aaab 100644
--- a/build/process.zig
+++ b/build/process.zig
@@ -60,10 +60,8 @@ pub fn add(b: *std.Build, opts: struct {
run_process_test.has_side_effects = true;
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).
+ // the monkey over every Motion.
const monkey_gui_step = b.step("monkey-gui", "random input to the hidden window across the effect settings (-Dplatform=gui; PARDES_GUI_MONKEY_SEED, _STEPS)");
- const gui_golden_step = b.step("gui-golden", "the hidden window's scenes against test/gui-goldens.txt, this machine's (-Dplatform=gui; PARDES_GUI_GOLDEN=update rewrites)");
if (opts.gui) {
const run_monkey_gui = b.addRunArtifact(process_test);
run_monkey_gui.addArtifactArg(opts.exe);
@@ -72,16 +70,7 @@ pub fn add(b: *std.Build, opts: struct {
run_monkey_gui.setEnvironmentVariable("PARDES_GUI_MONKEY", "all");
run_monkey_gui.has_side_effects = true;
monkey_gui_step.dependOn(&run_monkey_gui.step);
- const run_gui_golden = b.addRunArtifact(process_test);
- run_gui_golden.addArtifactArg(opts.exe);
- for (opts.addons) |a| run_gui_golden.addPrefixedFileArg("--addon=", a.getEmittedBin());
- run_gui_golden.addArgs(&.{ "--backend=gui", "window: its scenes" });
- run_gui_golden.setEnvironmentVariable("PARDES_GUI_GOLDEN", b.graph.environ_map.get("PARDES_GUI_GOLDEN") orelse "check");
- run_gui_golden.setCwd(b.path("."));
- run_gui_golden.has_side_effects = true;
- gui_golden_step.dependOn(&run_gui_golden.step);
} else {
monkey_gui_step.dependOn(&b.addFail("monkey-gui needs -Dplatform=gui").step);
- gui_golden_step.dependOn(&b.addFail("gui-golden needs -Dplatform=gui").step);
}
}