Files
breeze/tests/android_text_input_zi_test.sh
T
waozi 458f4fb5eb Run the test harnesses on the Ziran 0.6 toolchain
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.
2026-11-17 03:12:21 -03:00

23 lines
1.4 KiB
Bash

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
bin=${1:-"$root/build/packages/ziran/build/bin"}
ui=${KRYON_UI:-"$root/build/packages/kryon/src/ui"}
work="$root/build/android-text-input-test"
source="$root/tests/android_text_input_behavior.zi"
mkdir -p "$work/c"
"$bin/zi2zir" --check-only --define ANDROID_BUILD --define KRYON_ANDROID_HOST --root "$root/tests" \
--module-path "$root/src" --module-path "$ui" \
--module-path "$root/build/packages/kryon/src/backend" \
--module-path "$root/build/packages/ziran/std" --module-path "$root/build/packages/daochi-client" $(sh "$root/scripts/package-paths.sh" "$root/build/packages") "$source"
"$bin/zi2c" --define ANDROID_BUILD --define KRYON_ANDROID_HOST --root "$root/tests" \
--module-path "$root/src" --module-path "$ui" \
--module-path "$root/build/packages/kryon/src/backend" \
--module-path "$root/build/packages/ziran/std" --module-path "$root/build/packages/daochi-client" $(sh "$root/scripts/package-paths.sh" "$root/build/packages") -o "$work/c" "$source"
"${CC:-cc}" -std=c11 -D_DEFAULT_SOURCE -O2 -pthread \
-ffunction-sections -fdata-sections -I"$root/build/packages/ziran/include" \
-iquote "$work/c" "$work/c"/*.c -Wl,--gc-sections -o "$work/test"
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY timeout 15 "$work/test"
printf '%s\n' 'Android text input UTF-8, ordered edits, focus, and session lifetime passed'