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.
18 lines
732 B
Bash
18 lines
732 B
Bash
#!/bin/sh
|
|
set -eu
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
bin=${1:-"$root/build/packages/ziran/build/bin"}
|
|
work=$root/build/host-services-zi-test
|
|
mkdir -p "$work/c"
|
|
"$bin/zi2c" --root "$root/tests" --module-path "$root/src" \
|
|
--module-path "$root/build/packages/ziran/std" \
|
|
--entry host_services_behavior:main -o "$work/c" \
|
|
"$root/tests/host_services_behavior.zi"
|
|
"${CC:-cc}" -std=c11 -O2 -DZIRAN_BOUNDS_CHECK \
|
|
-I"$root/build/packages/ziran/include" -iquote "$work/c" \
|
|
"$work/c"/*.c -o "$work/test"
|
|
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
|
|
"$work/test" 2> "$work/stderr"
|
|
test "$(cat "$work/stderr")" = "INFO: host test"
|
|
echo "Inbe Ziran process services test passed"
|