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/aienos.com/blob/main/om/hive-page/gate-fresh.sh # aienos.com Source of www.aienos.com, served from my own hardware 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 `aienos.com / om / hive-page / gate-fresh.sh` 27 lines ยท 1145 bytes Raw Blame History 1 #!/bin/sh 2 # Host-only gate: actual AArch64 compiler path and read-only Node wasm oracle. 3 set -eu 4 cd "$(dirname "$0")/../.." 5 [ "$(uname -m)" = aarch64 ] || { echo 'NOT_RUN requires AArch64 Linux'; exit 3; } 6 B=${FRESH_GATE_OUT:-/tmp/hive-fresh-gate} 7 mkdir -p "$B" 8 nice -n 19 sh om/hive-page/check.sh 9 : > "$B/native.status" 10 i=0 11 while read -r now generated previous stale ok expected; do 12 case "$now" in ''|'#'*) continue ;; esac 13 i=$((i+1)) 14 cat om/hive-page/fresh.om > "$B/case-$i.om" 15 printf 'fn main to int\nret int fresh long %s long %s long %s long %s %s\nend\n' \ 16 "$now" "$generated" "$previous" "$stale" "$ok" >> "$B/case-$i.om" 17 om/hive-page/omc < "$B/case-$i.om" > "$B/case-$i" 18 chmod +x "$B/case-$i" 19 set +e 20 "$B/case-$i" 21 rc=$? 22 set -e 23 printf '%s\n' "$rc" >> "$B/native.status" 24 [ "$rc" = "$expected" ] || { echo "FAIL native case $i exit=$rc expected=$expected"; exit 1; } 25 done < om/hive-page/fresh.cases 26 node om/hive-page/fresh-oracle.js public/wasm/hive-fresh.wasm om/hive-page/fresh.cases "$B/native.status" 27 sha256sum om/hive-page/fresh.om public/wasm/hive-fresh.wasm om/hive-page/irwasm