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-home-dirty.sh
| 1 | #!/bin/sh |
| 2 | # External orchestration, using the pinned native Omega compiler and HOME oracle module order. |
| 3 | set -eu |
| 4 | [ "$#" = 1 ] || { echo 'usage: test-look-home-dirty.sh FRESH_OUTPUT_DIR' >&2; exit 64; } |
| 5 | a=$(CDPATH= cd -- "$(dirname "$0")" && pwd) |
| 6 | out=$1 |
| 7 | mkdir "$out" |
| 8 | out=$(CDPATH= cd -- "$out" && pwd) |
| 9 | cat "$a/font-data.om" "$a/font.om" "$a/look-paint.om" "$a/tests/look-home-stubs.om" "$a/look-home.om" \ |
| 10 | "$a/tests/look-home-dirty.om" > "$out/home-dirty.om" |
| 11 | "$a/build-one.sh" "$out/home-dirty.om" "$out/home-dirty" |
| 12 | "$out/home-dirty" pixels 1280 |
| 13 | "$out/home-dirty" pixels 4k |
| 14 | "$out/home-dirty" budget 1280 |
| 15 | "$out/home-dirty" budget 4k |
| 16 | # A missing caret redraw must actually be detected by the pixel oracle. |
| 17 | sed '/^hmmarkcaret$/d' "$out/home-dirty.om" > "$out/missing-caret.om" |
| 18 | "$a/build-one.sh" "$out/missing-caret.om" "$out/missing-caret" |
| 19 | rc=0 |
| 20 | "$out/missing-caret" pixels 1280 || rc=$? |
| 21 | [ "$rc" = 30 ] || { echo "missing-caret control expected 30, got $rc" >&2; exit 1; } |
| 22 | echo 'LOOK_HOME_DIRTY: PASS; full-redraw pixel equality and idle redraw budget at 1280 and 4K' |