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.
20 lines
803 B
Bash
20 lines
803 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
bin=${1:-"$root/build/packages/ziran/build/bin"}
|
|
work=$root/build/update-policy-zi-test
|
|
mkdir -p "$work/c"
|
|
"$bin/zi2zx" --root "$root/tests" \
|
|
--module-path "$root/src" --module-path "$root/build/packages/ziran/std" \
|
|
--entry update_policy_behavior:Answer \
|
|
-o "$work/update-policy.zx" \
|
|
"$root/tests/update_policy_behavior.zi"
|
|
[ "$("$bin/zi2zx" run "$work/update-policy.zx")" = 42 ]
|
|
"$bin/zi2c" --no-main --root "$root/tests" \
|
|
--module-path "$root/src" --module-path "$root/build/packages/ziran/std" \
|
|
-o "$work/c" "$root/tests/update_policy_behavior.zi"
|
|
"${CC:-cc}" -std=c11 -fsyntax-only \
|
|
-I"$root/build/packages/ziran/include" -I"$work/c" "$work/c"/*.c
|
|
echo "Inbe update policy Ziran test passed"
|