diff options
Diffstat (limited to 'test/hxcases/regen.sh')
| -rwxr-xr-x | test/hxcases/regen.sh | 16 |
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 |
