interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / tests / slab-arena / run.sh

17 lines · 527 bytes Raw Blame History
1#!/bin/sh
2set -eu
3test -z "$(git status --porcelain)" || { echo 'Dirty tree' >&2; exit 1; }
4tmp=$(mktemp -d)
5trap 'rm -rf "$tmp"' EXIT
6src=om/runtime/slab_arena.om
7gate=tests/slab-arena/gate.om
8seed/out/omc < "$src" > "$tmp/unit"
9sed 's/^export fn /fn /' "$src" > "$tmp/program.om"
10cat "$gate" >> "$tmp/program.om"
11seed/out/omc < "$tmp/program.om" > "$tmp/gate"
12chmod +x "$tmp/gate"
13"$tmp/gate"
14git rev-parse HEAD
15sha256sum seed/out/omc "$src" "$gate"
16(cd "$tmp" && sha256sum unit gate)
17echo 'PASS slab-arena host transitions'