aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / native / omega / allen / test-look-submit.sh
| 1 | #!/bin/sh |
| 2 | # External assembly/build orchestration. Submission behavior executes in native Omega. |
| 3 | # Reuses build-fw.sh's module order and the existing showbench hardware-boundary convention. |
| 4 | set -eu |
| 5 | [ "$#" = 1 ] || { echo 'usage: test-look-submit.sh FRESH_OUTPUT_DIR' >&2; exit 64; } |
| 6 | a=$(CDPATH= cd -- "$(dirname "$0")" && pwd) |
| 7 | out=$1 |
| 8 | mkdir "$out" |
| 9 | out=$(CDPATH= cd -- "$out" && pwd) |
| 10 | unit=$out/submit.om |
| 11 | { |
| 12 | for f in platform.om base.om vendor/sha256-core.om font-data.om font.om look-paint.om look-skydata.om look-sky.om \ |
| 13 | look-night.om look-mind.om look-home.om surface.om github.om http.om net.om tls-crypto.om vendor/cert-sha384.om \ |
| 14 | vendor/cert-p256.om tls-p384.om vendor/cert-root.om tls-cert.om tls.om session.om repository-screen.om runtime.om \ |
| 15 | code.om courier.om scheduler.om memory.om intent.om reply.om context.om application.om look-chat.om look-stat.om; do |
| 16 | cat "$a/$f" |
| 17 | done |
| 18 | # Hardware-only boundaries are unused by these input tests. The actual handlers and app remain intact. |
| 19 | printf '\nfn efms to ulong\nret 1000\nend\nfn inmatch to bool\nret false\nend\nfn ininstall now ulong to void\nret\nend\n' |
| 20 | sed -e 's/^st = efi 3 arg Efa mul mul y0 w 4 n$/st = ulong 0/' \ |
| 21 | -e 's/^st = efi 3 arg Efb mul mul sub y0 hh w 4 n$/st = ulong 0/' "$a/look-show.om" |
| 22 | cat "$a/tests/look-submit.om" |
| 23 | } > "$unit" |
| 24 | "$a/build-one.sh" "$unit" "$out/submit" |
| 25 | "$out/submit" |
| 26 | echo 'LOOK_SUBMIT: PASS; offline feedback, preserved input, no job, local stats, empty Enter' |