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.
23 lines
912 B
Bash
23 lines
912 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
bin=${1:-"$root/build/packages/ziran/build/bin"}
|
|
work="$root/build/audio-meter-zi-test"
|
|
source="$root/tests/audio_meter_behavior.zi"
|
|
mkdir -p "$work/c"
|
|
|
|
"$bin/zi2zir" --check-only --define PLATFORM_DESKTOP \
|
|
--root "$root/tests" --module-path "$root/src" \
|
|
--module-path "$root/build/packages/ziran/std" "$source"
|
|
"$bin/zi2c" --define PLATFORM_DESKTOP \
|
|
--entry audio_meter_behavior:main --root "$root/tests" \
|
|
--module-path "$root/src" --module-path "$root/build/packages/ziran/std" \
|
|
-o "$work/c" "$source"
|
|
"${CC:-cc}" -std=c11 -O2 -ffunction-sections -fdata-sections \
|
|
-Wl,--gc-sections -I"$root/build/packages/ziran/include" \
|
|
-iquote "$work/c" "$work/c"/*.c -latomic -o "$work/test"
|
|
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
|
|
"$work/test"
|
|
echo "Inbe Ziran audio meter test passed"
|