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_sky_test.sh
| 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 <why>". |
| 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" |