omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / tests / slab-arena / run.sh
| 1 | #!/bin/sh |
| 2 | set -eu |
| 3 | test -z "$(git status --porcelain)" || { echo 'Dirty tree' >&2; exit 1; } |
| 4 | tmp=$(mktemp -d) |
| 5 | trap 'rm -rf "$tmp"' EXIT |
| 6 | src=om/runtime/slab_arena.om |
| 7 | gate=tests/slab-arena/gate.om |
| 8 | seed/out/omc < "$src" > "$tmp/unit" |
| 9 | sed 's/^export fn /fn /' "$src" > "$tmp/program.om" |
| 10 | cat "$gate" >> "$tmp/program.om" |
| 11 | seed/out/omc < "$tmp/program.om" > "$tmp/gate" |
| 12 | chmod +x "$tmp/gate" |
| 13 | "$tmp/gate" |
| 14 | git rev-parse HEAD |
| 15 | sha256sum seed/out/omc "$src" "$gate" |
| 16 | (cd "$tmp" && sha256sum unit gate) |
| 17 | echo 'PASS slab-arena host transitions' |