Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-forge/blob/main/browse/tests/run.sh # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / browse / tests / run.sh` 47 lines ยท 2671 bytes Raw Blame History 1 #!/bin/sh 2 # browse/tests/run.sh: build the ForgeBrowse test programs with the pinned omc and run the 3 # Markdown fixtures (tests/md/*.md -> expected tests/md/*.html). Cores: taskset -c ${CORES:-6} (the 4 # caller's pool; ticket t_`7c02d686`). 5 # Usage: tests/run.sh [util.om] (default: tests/stubutil.om) 6 set -eu 7 here=$(cd "$(dirname "$0")" && pwd) 8 br=$(dirname "$here") 9 omv=${OMV:-$HOME/work/flux/omega-mv} 10 omc=$omv/seed/out/omc 11 util=${1:-$here/stubutil.om} 12 out=${OUT:-/tmp/forgebrowse} 13 mkdir -p "$out" 14 want=`3ad9f10f64309e7acf8a725082b28e23a2a4aeb07e98322fb4dc0fcd8fc93194` 15 got=$(sha256sum "$omc" | cut -d' ' -f1) 16 [ "$got" = "$want" ] || { echo "omc sha256 $got != pinned $want" >&2; exit 2; } 17 run() { taskset -c "${CORES:-6}" nice -n 10 "$@"; } 18 { printf 'om2\n'; cat "$util" "$(dirname "$br")"/nodes/head.om "$br"/a_core.om "$br"/b_md.om "$here/mdmain.om"; } | run "$omc" > "$out/mdtest" || { 19 echo "compile mdtest failed" >&2; exit 1; } 20 chmod +x "$out/mdtest" 21 pass=0; fail=0 22 for md in "$here"/md/*.md; do 23 exp=${md%.md}.html 24 got=$out/$(basename "${md%.md}").out 25 run "$out/mdtest" < "$md" > "$got" || { echo "FAIL (exit $?) $(basename "$md")"; fail=$((fail+1)); continue; } 26 if grep -qiE '" (inline and at line starts) must 32 # render well inside the timeout (one rescan per opener would be about 10^12 byte reads here) and 33 # every opener must stay escaped text. 34 n=262144 35 big=$out/comment-big.md 36 awk -v n=$n 'BEGIN { for (i = 0; i < n; i++) printf "a