summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig13
1 files changed, 3 insertions, 10 deletions
diff --git a/build.zig b/build.zig
index 35f4c55b..1491ed35 100644
--- a/build.zig
+++ b/build.zig
@@ -1310,10 +1310,11 @@ pub fn build(b: *std.Build) void {
hxdiff.root_module.addImport("pardes", core_module);
const run_hxdiff = b.addRunArtifact(hxdiff);
run_hxdiff.has_side_effects = true;
- // Bare, it runs the checked-in suite (test/hxdiff.zig).
+ // Bare, it runs the checked-in suite (test/hxdiff.zig); `-- --parity`
+ // runs each case in a file pane and a pty pane and compares the two.
run_hxdiff.addPassthruArgs();
run_hxdiff.setCwd(b.path("."));
- const hxdiff_step = b.step("hxdiff", "compare Helix results (-- --strict cases reference [waivers]; cases alone emits)");
+ const hxdiff_step = b.step("hxdiff", "compare Helix results (-- --strict cases reference [waivers]; cases alone emits; --parity: a pty pane against a file pane)");
hxdiff_step.dependOn(&run_hxdiff.step);
const helix_harness = b.option([]const u8, "helix-harness", "path to the reference hx-harness executable") orelse
@@ -1334,14 +1335,6 @@ pub fn build(b: *std.Build) void {
update_reference.step.dependOn(&live_diff.step);
b.step("hxdiff-update", "replace checked-in Helix goldens after the live comparison passes").dependOn(&update_reference.step);
- const run_hxparity = b.addRunArtifact(hxdiff);
- run_hxparity.has_side_effects = true;
- run_hxparity.addArg("--parity");
- run_hxparity.addPassthruArgs();
- run_hxparity.setCwd(b.path("."));
- const hxparity_step = b.step("hxparity", "run the file-vs-pty editing parity suite (-- [--waivers w.jsonl] <cases.jsonl>...)");
- hxparity_step.dependOn(&run_hxparity.step);
-
// every helix-golf example, one case per step of its walkthrough
const run_hxgolf = b.addRunArtifact(hxdiff);
run_hxgolf.has_side_effects = true;