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.
21 lines
1.0 KiB
Bash
21 lines
1.0 KiB
Bash
#!/bin/sh
|
|
set -eu
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
bin=${1:-"$root/build/packages/ziran/build/bin"}
|
|
work=$root/build/android-package-assets-test
|
|
mkdir -p "$work/generated"
|
|
sh "$root/scripts/run-ziran.sh" "$bin/zi2c" --no-main --define ANDROID_BUILD \
|
|
--root "$root" --module-path "$root/src" \
|
|
--module-path "$root/build/packages/kryon/src/backend" \
|
|
--module-path "$root/build/packages/ziran/std" \
|
|
-o "$work/generated" "$root/tests/android_package_assets_behavior.zi"
|
|
"${CC:-cc}" -std=c11 -Wall -Wextra -Werror -Wno-unused-function \
|
|
-ffunction-sections -fdata-sections -Wl,--gc-sections \
|
|
-I"$root/build/packages/ziran/include" -I"$work/generated" \
|
|
-I"$work/generated/tests" -I"$root/src/app" \
|
|
"$root/tests/android_package_assets_test.c" "$work/generated"/*.c \
|
|
"$work/generated/tests"/*.c \
|
|
-o "$work/test"
|
|
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS "$work/test"
|
|
echo "Android shared package loading, failure recovery and borrowed lifetime passed"
|