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 / test_local_tools_udp.sh

15 lines · 760 bytes Raw Blame History
1#!/usr/bin/env bash
2# UDP adapter oracle for the local-tools courier path, synthetic result bytes.
3# Real CPL3 execution is covered separately by scripts/qemu_ck_local_tools_test.sh.
4# Builds the C model oracle and C wire test, then runs them against the Rust relay.
5set -euo pipefail
6cd "$(dirname "$0")/.."
7tmp=$(mktemp -d "${TMPDIR:-/tmp}/local_tools_udp.XXXXXX")
8trap 'rm -rf "$tmp"' EXIT
9cc="${HOSTCC:-cc}"
10for unit in local_tools_model_oracle local_tools_udp_test; do
11 "$cc" -std=c11 -D_DEFAULT_SOURCE -O2 -Wall -Wextra -Werror \
12 -o "$tmp/$unit" "native/kernel/x86/tests/$unit.c"
13done
14cargo build -q -p allen-courier
15"$tmp/local_tools_udp_test" "$tmp/local_tools_model_oracle" "${ALLEN_RELAY:-${CARGO_TARGET_DIR:-target}/debug/allen-courier}"