summaryrefslogtreecommitdiff
path: root/build/process.zig
diff options
context:
space:
mode:
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);
}
}