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 / 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 <why>".
8set -u
9cd "$(dirname "$0")/.."
10K=native/kernel
11OUT=target/native-kernel-sky
12W=$(mktemp -d "${TMPDIR:-/tmp}/ck_sky.XXXXXX")
13trap 'rm -rf "$W"' EXIT
14fail() { echo "AIENOS_SKY: FAIL $*"; exit 1; }
15CC=${HOSTCC:-cc}
16mkdir -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"
20echo "pictures: $OUT"
21echo "AIENOS_SKY: PASS"