Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/scripts/ck_sky_test.sh # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / scripts / ck_sky_test.sh` 21 lines ยท 950 bytes Raw Blame History 1 #!/bin/sh 2 # ck_sky_test.sh -- host test of the real sky behind Allen (native/kernel/ui/ 3 # sky_real.c and the generated sky_data.c): the projection against the 4 # generator, the integer view, sidereal time against published values, the 5 # zenith and precession, and the sky made at 3840x2160 (timed). Pictures land 6 # in target/native-kernel-sky/ for a person to look at. Hosted only. Ends 7 # with "AIENOS_SKY: PASS" or "AIENOS_SKY: FAIL ". 8 set -u 9 cd "$(dirname "$0")/.." 10 K=native/kernel 11 OUT=target/native-kernel-sky 12 W=$(mktemp -d "${TMPDIR:-/tmp}/ck_sky.XXXXXX") 13 trap 'rm -rf "$W"' EXIT 14 fail() { echo "AIENOS_SKY: FAIL $*"; exit 1; } 15 CC=${HOSTCC:-cc} 16 mkdir -p "$OUT" 17 $CC -std=gnu11 -O2 -Wall -Wextra -Werror -o "$W/test" $K/ui/tests/sky_test.c $K/ui/sky_real.c $K/ui/sky_data.c \ 18 $K/ui/night.c $K/ui/paint.c $K/ui/allen_font.c -lm || fail "test does not build" 19 "$W/test" "$OUT" || fail "sky checks" 20 echo "pictures: $OUT" 21 echo "AIENOS_SKY: PASS"