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 / test_local_tools_udp.sh
| 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. |
| 5 | set -euo pipefail |
| 6 | cd "$(dirname "$0")/.." |
| 7 | tmp=$(mktemp -d "${TMPDIR:-/tmp}/local_tools_udp.XXXXXX") |
| 8 | trap 'rm -rf "$tmp"' EXIT |
| 9 | cc="${HOSTCC:-cc}" |
| 10 | for 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" |
| 13 | done |
| 14 | cargo 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}" |