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_virtio_av_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_virtio_av_test.sh` 17 lines ยท 854 bytes Raw Blame History 1 #!/bin/sh 2 # ck_virtio_av_test.sh -- host test of the VM screen and speaker drivers' 3 # pure parts: the virtio-gpu and virtio-sound commands checked field by field 4 # against the Linux UAPI copy of the virtio spec, the reply parsers, and the 5 # polled request core (native/kernel/dev/virtio_q.c) compiled clean. 6 # Hosted only. Ends with "AIENOS_VIRTIO_AV: PASS" or "AIENOS_VIRTIO_AV: FAIL ". 7 set -u 8 cd "$(dirname "$0")/.." 9 K=native/kernel 10 W=$(mktemp -d "${TMPDIR:-/tmp}/ck_virtio_av.XXXXXX") 11 trap 'rm -rf "$W"' EXIT 12 fail() { echo "AIENOS_VIRTIO_AV: FAIL $*"; exit 1; } 13 CC=${HOSTCC:-cc} 14 $CC -std=gnu11 -O2 -Wall -Wextra -Werror -DCK_HOSTED -Inative/net -o "$W/test" $K/dev/tests/virtio_av_test.c \ 15 $K/dev/virtio_gpu.c $K/dev/virtio_snd.c $K/dev/virtio_q.c || fail "test does not build" 16 "$W/test" || fail "layout checks" 17 echo "AIENOS_VIRTIO_AV: PASS"