summaryrefslogtreecommitdiff
path: root/test/hxcases/regen.sh
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-07 09:48:05 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commit9da20917b6f4cf98fd9b5c2c0a904e4f6a8380a9 (patch)
treec7c8c4d1126def565eb0b1d20ad29782eb49c5e7 /test/hxcases/regen.sh
parentb2cdd8ee719961b2f037f20bf0f88fad94ca73b4 (diff)
downloadpardes-9da20917b6f4cf98fd9b5c2c0a904e4f6a8380a9.tar.gz
pardes-9da20917b6f4cf98fd9b5c2c0a904e4f6a8380a9.zip
helix diff testing and feature parity
Diffstat (limited to 'test/hxcases/regen.sh')
-rwxr-xr-xtest/hxcases/regen.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/hxcases/regen.sh b/test/hxcases/regen.sh
new file mode 100755
index 00000000..308cc9d2
--- /dev/null
+++ b/test/hxcases/regen.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Regenerate test/hxcases/goldens.jsonl by running the helix reference harness
+# over cases.jsonl. The harness is hx-harness on the pardes-harness branch of
+# the genizah helix checkout (see docs/helix-keys.md, "Differential testing"):
+# cd ~/05-genizah/helix && git switch pardes-harness && \
+# cargo build --release -p helix-term --features helix-term/integration --bin hx-harness
+# Override the binary with $HX_HARNESS. helix ignores pane:"tty" — a tty
+# twin's golden is helix on the same text, which IS the oracle for tty
+# navigation parity.
+set -eu
+cd "$(dirname "$0")"
+HX_HARNESS="${HX_HARNESS:-$HOME/05-genizah/helix/target/release/hx-harness}"
+[ -x "$HX_HARNESS" ] || { echo "regen.sh: no hx-harness at $HX_HARNESS (set \$HX_HARNESS)" >&2; exit 1; }
+"$HX_HARNESS" cases.jsonl > goldens.jsonl.tmp
+mv goldens.jsonl.tmp goldens.jsonl
+wc -l goldens.jsonl