#!/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