Files
breeze/tests/android_push_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

19 lines
1.0 KiB
Bash

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
bin=${1:-"$root/build/packages/ziran/build/bin"}
kryon=${KRYON_DIR:-"$root/build/packages/kryon"}
entity=${ENTITY_DIR:-"$root/build/packages/entity"}
apps=${APPS_DIR:-"$root/build/packages/apps"}
"$bin/zi2zir" --check-only --root "$root/src" \
--module-path "kryon=$kryon/src/ui" --module-path "kryon=$kryon/src/backend" \
--module-path "entity=$entity/src" --module-path "apps=$apps/src" \
--module-path "$kryon/src/ui" --module-path "$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") \
--define ANDROID_BUILD --define KRYON_ANDROID_HOST --define __aarch64__ \
"$root/src/app/app_notifications.zi" "$root/src/platform/android/android_push.zi"
export KRYON_UI="$kryon/src/ui" KRYON_BACKEND="$kryon/src/backend"
export ENTITY_DIR="$entity" APPS_DIR="$apps"
exec python3 "$root/tests/android_jni_zi_test.py" "$bin"