summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-08 23:17:01 -0300
committerGabriel Schneider <[email protected]>2026-11-09 01:28:28 -0300
commit7437a05c87c5313467a24d24468ea807a1413830 (patch)
treed09a4819937ca4a46094d2af973479c1a1c7cc64 /build.zig
parentbfae9bec636129e78703bce3b156963686ab81dc (diff)
downloadpardes-7437a05c87c5313467a24d24468ea807a1413830.tar.gz
pardes-7437a05c87c5313467a24d24468ea807a1413830.zip
tests: hxparity is hxdiff's --parity mode, one driver: the hxparity step goes, `zig build hxdiff -- --parity` runs the pty run against the file run as the step did (738 cases, 0 mismatches, 12 waived, its report still named hxparity), and the docs that named the step say so
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
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;