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 / scripts / ck_boot_show_test.sh
| 1 | #!/bin/sh |
| 2 | # ck_boot_show_test.sh -- host test of the boot sequence's frame receipt |
| 3 | # (native/kernel/ui/boot_show.c on ui/allen_ui.c): frames drawn and 60 Hz |
| 4 | # slots dropped on a fake clock (fast and slow), one present per frame, the |
| 5 | # chirp kept on the night's clock. With BOOT_SHOW_SIZES="WxH ..." it also |
| 6 | # plays the whole night at each size on one core of this host with the real |
| 7 | # clock and prints the receipt line (host fixtures, e.g. the iMac's 5120x2880). |
| 8 | # Hosted only. Ends with "AIENOS_BOOT_SHOW: PASS" or "AIENOS_BOOT_SHOW: FAIL <why>". |
| 9 | set -u |
| 10 | cd "$(dirname "$0")/.." |
| 11 | K=native/kernel |
| 12 | W=$(mktemp -d "${TMPDIR:-/tmp}/ck_boot_show.XXXXXX") |
| 13 | trap 'rm -rf "$W"' EXIT |
| 14 | fail() { echo "AIENOS_BOOT_SHOW: FAIL $*"; exit 1; } |
| 15 | CC=${HOSTCC:-cc} |
| 16 | $CC -std=gnu11 -O2 -Wall -Wextra -Werror -pthread -o "$W/test" $K/ui/tests/boot_show_test.c $K/ui/boot_show.c \ |
| 17 | $K/ui/allen_ui.c $K/svc/allen_code.c $K/ui/paint.c $K/ui/night.c $K/ui/sky_real.c $K/ui/sky_data.c $K/ui/mind.c $K/ui/flow.c \ |
| 18 | $K/ui/allen_font.c $K/ui/canvas.c $K/svc/allen_scene.c || fail "test does not build" |
| 19 | "$W/test" || fail "receipt checks" |
| 20 | for s in ${BOOT_SHOW_SIZES:-}; do |
| 21 | "$W/test" "$s" | grep "^host one core" || fail "host run at $s" |
| 22 | done |
| 23 | echo "AIENOS_BOOT_SHOW: PASS" |