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/omega-feel/blob/main/tests/round40/run.sh # omega-feel This project has not described itself yet. 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 `omega-feel / tests / round40 / run.sh` 32 lines ยท 1438 bytes Raw Blame History 1 #!/bin/sh 2 # Run on Linux aarch64, on an allowed CPU. The caller supplies the two pinned inputs. 3 set -eu 4 here=$(CDPATH= cd -- "$(dirname "$0")" && pwd) 5 [ "$#" -eq 4 ] || { echo "usage: run.sh OMC ENGINE_SOURCE MODEL_DIR EMPTY_OUTPUT_DIR" >&2; exit 2; } 6 omc=$1 engine=$2 model=$3 dst=$4 7 [ "$(sha256sum <"$omc" | cut -d' ' -f1)" = "$(sed -n 's/^omc-sha256 //p' "$here/../../PIN")" ] 8 [ "$(sha256sum <"$model/model.ck" | cut -d' ' -f1)" = `7c7b5b5260f2d9453b6076b64e7f23e88341d96498584f2dfaa229c31ad2e346` ] 9 [ "$(sha256sum <"$model/merges.bin" | cut -d' ' -f1)" = `73a29baf97619a746a21232c403bf08af71a76e48b3b2cde6d64dab766083882` ] 10 mkdir "$dst" 11 python3 "$here/compose.py" "$engine" > "$dst/live.om" 12 python3 "$here/compose.py" "$engine" --wrong-arm > "$dst/broken.om" 13 for target in live broken ollm-new; do 14 src="$dst/$target.om" 15 if [ "$target" = ollm-new ]; then src=$engine; fi 16 "$omc" < "$src" > "$dst/$target" 17 chmod +x "$dst/$target" 18 done 19 run() { 20 "$dst/$1" kvcmp "$model/model.ck" "$2" "Omega model test" "$model/merges.bin" > "$dst/$3.log" 2> "$dst/$3.events" 21 } 22 run live 68 live 23 run broken 35 broken 24 run ollm-new 68 ollm-new-68 25 run ollm-new 35 ollm-new-35 26 python3 "$here/check.py" "$dst" 27 "$omc" < "$here/../../feel.om" > "$dst/replay" 28 chmod +x "$dst/replay" 29 for variant in live broken; do 30 "$dst/replay" < "$dst/$variant.trace" > "$dst/$variant.replay" 31 sed '/^0 F /d' "$dst/$variant.replay" | diff "$dst/$variant.decisions" - 32 done