Files
breeze/tests/graphics_transition_test.sh
T
waozi 458f4fb5eb Run the test harnesses on the Ziran 0.6 toolchain
Point every harness's default toolchain at build/packages/ziran/build,
drop the removed `zi2zx bundle` form, link the generated C each harness
actually gets (whole generated folders where the test has no stubs, and
Kryon's package-prefixed frame pacing module), and stop listing the
header-only type module in the modal rules test. Twenty-two more test
targets pass from a clean export; plans/2026-11-17-test-harnesses.md
lists the 54 that still fail and why.
2026-11-17 03:12:21 -03:00

16 lines
708 B
Bash

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
bin=${1:-"$root/build/packages/ziran/build/bin"}
work=$(mktemp -d "$root/build/graphics-transition.XXXXXX")
trap 'rm -rf "$work"' EXIT HUP INT TERM
unset DISPLAY WAYLAND_DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS
"$bin/ziran" build --target=c --project --offline --root "$root" \
-o "$work/c" "$root/tests/graphics_transition_behavior.zi"
find "$work/c" -name "*.c" -print > "$work/c-files"
"${CC:-cc}" -std=c11 -O2 -ffunction-sections -fdata-sections \
-Wl,--gc-sections -I"$work/c" @"$work/c-files" \
-lm -o "$work/c-test"
"$work/c-test"
echo 'Graphics recovery cancels borrowed, owned and lost-context route frames in C'