interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / omega / allen / test-look-home-dirty.sh

22 lines · 1064 bytes Raw Blame History
1#!/bin/sh
2# External orchestration, using the pinned native Omega compiler and HOME oracle module order.
3set -eu
4[ "$#" = 1 ] || { echo 'usage: test-look-home-dirty.sh FRESH_OUTPUT_DIR' >&2; exit 64; }
5a=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
6out=$1
7mkdir "$out"
8out=$(CDPATH= cd -- "$out" && pwd)
9cat "$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.
17sed '/^hmmarkcaret$/d' "$out/home-dirty.om" > "$out/missing-caret.om"
18"$a/build-one.sh" "$out/missing-caret.om" "$out/missing-caret"
19rc=0
20"$out/missing-caret" pixels 1280 || rc=$?
21[ "$rc" = 30 ] || { echo "missing-caret control expected 30, got $rc" >&2; exit 1; }
22echo 'LOOK_HOME_DIRTY: PASS; full-redraw pixel equality and idle redraw budget at 1280 and 4K'