interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / om / hive-render / check.sh

20 lines · 888 bytes Raw Blame History
1#!/bin/sh
2# Shell is build/test coordination only, not the renderer implementation.
3set -eu
4cd "$(dirname "$0")"
5omc=${OMEGA_OMC:-../hive-page/omc}
6expected=734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61
7[ -x "$omc" ] || exit 2
8[ "$(sha256sum "$omc" | cut -d ' ' -f1)" = "$expected" ] || exit 3
9scratch=$(mktemp -d)
10trap 'rm -rf "$scratch"' EXIT HUP INT TERM
11nice -n 19 "$omc" < render.om > "$scratch/one"
12nice -n 19 "$omc" < render.om > "$scratch/two"
13cmp "$scratch/one" "$scratch/two" || exit 5
14[ -s "$scratch/one" ] || exit 6
15chmod +x "$scratch/one"
16python3 test-render.py "$scratch/one" "$omc" "$scratch"
17sha256sum render.om > render.om.sha256
18sha256sum "$scratch/one" | cut -d ' ' -f1 > hive-render.sha256
19cp "$scratch/one" hive-render
20printf '%s\n' 'HIVE-RENDER PASS: deterministic compiler output, escaper differential, schema refusals, XSS text and tree checks'