Files
breeze/tests/lumi_narration_test.sh
waozi ef0de86e02
Cloudflare Pages / Build and verify the site (push) Successful in 3m29s
Integrate Breeze desktop, Android, and app updates
Use the verified dependency lock across native hosts and bundled apps. Preserve saved styles, local app reactivation, and offline packages while integrating the latest practice, Habits, Lumi, and figure preview updates.
2026-11-20 02:24:34 -03:00

27 lines
1.2 KiB
Bash

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
bin=${1:-"$root/build/packages/ziran/build/bin"}
work=$root/build/lumi-narration-test
generated=$work/generated
mkdir -p "$generated"
"$bin/zi2c" --no-main --root "$root/src" \
--module-path "$root/build/packages/kryon/src/ui" \
--module-path "$root/build/packages/ziran/std" \
--module-path "$root/build/packages/mesh-client" \
$(sh "$root/scripts/package-paths.sh" "$root/build/packages") \
--module-path "$root/build/packages/kryon/src/backend" \
-o "$generated" "$root/src/app/lumi_guide.zi"
# The link test stands in for these modules, so their headers declare the
# functions it replaces instead of defining them inline.
"${CC:-cc}" -std=c11 -DZIRAN_BOUNDS_CHECK \
-DZIRAN_PRACTICE_DOWNLOADS_H_SOURCE -DZIRAN_AUDIO_H_SOURCE -DZIRAN_ASSETS_H_SOURCE \
-ffunction-sections -fdata-sections -Wl,--gc-sections \
-I"$root/build/packages/ziran/include" -I"$generated" \
"$root/tests/lumi_narration_link_test.c" \
"$generated/app/lumi_guide.c" "$generated/host_clock.c" "$generated/audio_policy.c" \
"$generated/byte_text_linux.c" \
-o "$work/test"
env -u DISPLAY -u WAYLAND_DISPLAY "$work/test"
echo "Lumi narration playback and mute tests passed"