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.
22 lines
888 B
Bash
22 lines
888 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
bin=${1:-"$root/build/packages/ziran/build/bin"}
|
|
work=$root/build/text-buffers-zi-test
|
|
mkdir -p "$work/c"
|
|
"$bin/zi2zir" --check-only --root "$root/src" \
|
|
--module-path "$root/build/packages/ziran/std" \
|
|
"$root/src/app/text_buffers.zi"
|
|
"$bin/zi2c" --no-main --root "$root/src" \
|
|
--module-path "$root/build/packages/ziran/std" \
|
|
-o "$work/c" "$root/src/app/text_buffers.zi"
|
|
"${CC:-cc}" -std=c11 -Wall -Wextra -Werror \
|
|
-Wno-unused-function -Wno-unused-variable \
|
|
-ffunction-sections -fdata-sections -Wl,--gc-sections \
|
|
-I"$root/build/packages/ziran/include" -I"$work/c" \
|
|
"$root/tests/text_buffers_link_test.c" \
|
|
"$work/c/app/text_buffers.c" "$work/c/byte_text_linux.c" -o "$work/test"
|
|
env -u DISPLAY -u WAYLAND_DISPLAY "$work/test"
|
|
echo "Inbe text buffer Ziran/native test passed"
|