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.
52 lines
3.1 KiB
Bash
52 lines
3.1 KiB
Bash
#!/bin/sh
|
|
set -eu
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
work="$root/build/lumi-engine-test"
|
|
mkdir -p "$work"
|
|
"$root/build/packages/ziran/build/bin/ziran" bundle --root "$root/tests" \
|
|
--entry lumi_tool_budget_behavior:Answer -o "$work/tool-budget.zx" \
|
|
"$root/tests/lumi_tool_budget_behavior.zi"
|
|
result=$(env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
|
"$root/build/packages/ziran/build/bin/ziran" run "$work/tool-budget.zx")
|
|
[ "$result" = 42 ]
|
|
printf '%s\n' 'Lumi tools: complete appearance workflow and bounded continuations passed'
|
|
"$root/build/packages/ziran/build/bin/ziran" bundle --root "$root/tests" \
|
|
--entry lumi_engine_behavior:Answer -o "$work/engine.zx" \
|
|
"$root/tests/lumi_engine_behavior.zi"
|
|
result=$(env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
|
"$root/build/packages/ziran/build/bin/ziran" run "$work/engine.zx")
|
|
[ "$result" = 42 ]
|
|
"$root/build/packages/ziran/build/bin/ziran" bundle --root "$root/tests" \
|
|
--entry lumi_response_behavior:Answer -o "$work/response.zx" \
|
|
"$root/tests/lumi_response_behavior.zi"
|
|
result=$(env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
|
"$root/build/packages/ziran/build/bin/ziran" run "$work/response.zx")
|
|
[ "$result" = 42 ]
|
|
printf '%s\n' 'Lumi responses: JSON trailing whitespace accepted; malformed and trailing data rejected'
|
|
printf '%s\n' 'Lumi engine: translated commands, Unicode titles, completion matching and bounded actions passed'
|
|
"$root/build/packages/ziran/build/bin/ziran" bundle --root "$root/tests" \
|
|
--module-path "$root/build/packages/kryon/src/ui" \
|
|
--entry lumi_message_text_behavior:Answer -o "$work/message-text.zx" \
|
|
"$root/tests/lumi_message_text_behavior.zi"
|
|
result=$(env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
|
"$root/build/packages/ziran/build/bin/ziran" run "$work/message-text.zx")
|
|
[ "$result" = 42 ]
|
|
printf '%s\n' 'Lumi emphasis: visible bold ranges, Unicode, escapes, code and literal user messages passed'
|
|
"$root/build/packages/ziran/build/bin/ziran" bundle --root "$root/tests" \
|
|
--module-path "$root/build/packages/kryon/src/ui" --define KRYON_HOSTED_UI \
|
|
$(sh "$root/scripts/package-paths.sh" "$root/build/packages") \
|
|
--entry lumi_reply_cache_behavior:Answer -o "$work/reply-cache.zx" \
|
|
"$root/tests/lumi_reply_cache_behavior.zi"
|
|
result=$(env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
|
"$root/build/packages/ziran/build/bin/ziran" run "$work/reply-cache.zx")
|
|
[ "$result" = 42 ]
|
|
printf '%s\n' 'Lumi reply cache: edited text, Unicode emphasis and slot eviction passed'
|
|
"$root/build/packages/ziran/build/bin/ziran" bundle --root "$root/tests" \
|
|
--entry lumi_chart_behavior:Answer -o "$work/chart.zx" \
|
|
"$root/tests/lumi_chart_behavior.zi"
|
|
result=$(env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
|
"$root/build/packages/ziran/build/bin/ziran" run "$work/chart.zx")
|
|
[ "$result" = 42 ]
|
|
python3 "$root/tests/lumi_progress_sql_test.py"
|
|
printf '%s\n' 'Lumi charts: snapshots, validation, leap days, year boundaries and account-scoped history passed'
|