interplane.Get Omega
Read in your language

omnet

aien-dev/omnet

Brought by drakestapleton

branch main Branches Tags History

omnet / om / tkasig / test / run.sh

12 lines · 453 bytes Raw Blame History
1#!/bin/sh
2set -eu
3ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)
4OMC=${1:-$("$ROOT/tools/omc.sh")}
5GO=${GO:-go}
6BUILD=$(mktemp -d)
7trap 'rm -rf "$BUILD"' EXIT HUP INT TERM
8if [ "${REGEN:-0}" = 1 ]; then
9 (cd "$ROOT/om/tkasig/test" && GOTOOLCHAIN=local "$GO" run -mod=readonly oracle.go) > "$BUILD/vectors.jsonl"
10 cp "$BUILD/vectors.jsonl" "$ROOT/om/tkasig/test/vectors.jsonl"
11fi
12python3 "$ROOT/om/tkasig/test/check.py" "$OMC" "$BUILD"