diff --git a/plans/2026-11-16-crash-safety.md b/plans/2026-11-16-crash-safety.md index 593651aa7..777c1bfb3 100644 --- a/plans/2026-11-16-crash-safety.md +++ b/plans/2026-11-16-crash-safety.md @@ -2,8 +2,7 @@ - Verify practice and Diary photo picking, the other photo entry points and WHM custom controls on the full debug build. -- Publish Radio and Library in the current format, then their rebuilt packages - on the Python 3.10 packaging fix. Publish Arcade with its child games. Verify - current hosts receive these packages and older hosts retain their versions. +- Publish Arcade 0.7.126 with its ZX 28 games. Verify current hosts receive + Radio 1.0.6, Library 1.0.7 and Arcade, and older hosts retain their versions. - Verify Radio's payload download and load through the Pixel debug process's logcat, without driving the owner's phone UI. diff --git a/plans/2026-11-17-test-harnesses.md b/plans/2026-11-17-test-harnesses.md new file mode 100644 index 000000000..96cf9804f --- /dev/null +++ b/plans/2026-11-17-test-harnesses.md @@ -0,0 +1,40 @@ +# Test harnesses on Ziran 0.6 — open work + +`make -k test` on a clean export of master still fails 54 targets. CI stops +each shard at its first failure, so most of these never show there. The +Browser Add-ons job also stops at the web build. + +- Module-path builds cannot reach Kryon's export names (`kryon/text_area`, + `kryon/text_field`, `kryon/title_bar`) or resolve an `#if` enum member + imported through them: accessibility, account-activity, + android-geometry-probe, android-text-input-zi, app-chrome-zi, app-clock, + audio-runtime, dpi-state-zi, entity-photos, language-selection-zi, + lists-sharing, lumi-connection, lumi-delegate-scope, + lumi-feedback-delivery, lumi-telegram-input, main-platform-zi, + media-store, notification-lifecycle, raylib-text-input-zi, + settings-telegram-ui, settings-ui-zi, storage-sync-zi, sync-account-zi, + sync-connection, telegram-account-flow, telegram-account-ui and + theme-catalog-zi. Build them in project mode like + `tests/storage_sync_zi_test.sh`, or from the export map `ziran pkg list` + prints. Project mode also needs qualified test imports (`kryon/tree`) and a + C link that provides Kryon's raster host (`ImageWidth`, `ImageHeight`, + `RasterLine`). +- C link tests name generated headers or files that are now package-prefixed + (`p_typeface_source.h`) or header-only: fonts-zi, metrics-zi, + legacy-session-zi, database-upgrade-zi, daochi-client-zi, daochi-native-zi, + lumi-narration, node-app-loading and voice-audio-play. +- media-compression: its test host imports `kryon/raylib_image_decode`, which + Kryon does not export. +- The web build generates C for Linux, but Kryon defines its canvas events + only for `OS == .WEB`. With `--target-os web`, Breeze's own window runtime + (`practice_probe.zi`) does not resolve. Port the web build to the web target. +- Practice media: astral-projection and patterns-session read + `astral_projection/drafts/bruce-practices.json`, which the pinned practices + package lacks. practice-narration-keys and practice-narration-snapshot find + Sun Salutation recordings missing or older than their text. +- embedded-image-assets-check and test-references-check reject a resource + bundle format; audio-meter-zi imports `raylib_trace`; and update-transport-zi, + node-app-snapshot, app-click-block-zi, visual-runner, settings-mutation-zi, + small-app-bundling, device-preferences-zi, ziran-behavior-tests, + android-text-selection (Gradle) and fdroid-build (ThinLTO output differs + between checkout locations) each need a look at their own failure. diff --git a/tests/account_activity_zi_test.sh b/tests/account_activity_zi_test.sh index b1d2daa67..0a5840bf0 100644 --- a/tests/account_activity_zi_test.sh +++ b/tests/account_activity_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$root/build/account-activity-test data=$(mktemp -d /tmp/inbe-account-activity.XXXXXX) diff --git a/tests/android_geometry_probe_test.sh b/tests/android_geometry_probe_test.sh index f7d2702e6..35fd98f78 100644 --- a/tests/android_geometry_probe_test.sh +++ b/tests/android_geometry_probe_test.sh @@ -3,7 +3,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) work=$root/build/scratch/android-geometry-probe mkdir -p "$work" -ziran=${ZIRAN_BIN:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${ZIRAN_BIN:-"$root/build/packages/ziran/build/bin/ziran"} "$ziran" build --target=c --define ANDROID_BUILD --define ANDROID_DEBUG \ --root "$root/tests" --module-path "$root/src" \ --module-path "$root/build/packages/kryon/src/ui" \ diff --git a/tests/android_health_zi_test.sh b/tests/android_health_zi_test.sh index 6619b03f6..5aaf3551e 100644 --- a/tests/android_health_zi_test.sh +++ b/tests/android_health_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} "$bin/zi2zir" --check-only --root "$root/src" \ --module-path "$root/build/packages/kryon/src/ui" \ --module-path "$root/build/packages/daochi-client" \ diff --git a/tests/android_import_zi_test.sh b/tests/android_import_zi_test.sh index 6973fff8f..c957e93b4 100644 --- a/tests/android_import_zi_test.sh +++ b/tests/android_import_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} "$bin/zi2zir" --check-only --root "$root/src" \ --module-path "$root/build/packages/kryon/src/ui" \ --module-path "$root/build/packages/ziran/std" --module-path "$root/build/packages/daochi-client" $(sh "$root/scripts/package-paths.sh" "$root/build/packages") --module-path "$root/build/packages/kryon/src/backend" \ diff --git a/tests/android_jni_zi_test.py b/tests/android_jni_zi_test.py index 96476287a..cfd4ee61c 100644 --- a/tests/android_jni_zi_test.py +++ b/tests/android_jni_zi_test.py @@ -9,7 +9,7 @@ import subprocess import sys ROOT = Path(__file__).resolve().parents[1] -BIN = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT / "build/ziran-toolchain/bin" +BIN = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT / "build/packages/ziran/build/bin" UI = Path(os.environ.get("KRYON_UI", str(ROOT / "build/packages/kryon/src/ui"))) WORK = ROOT / "build/android-jni-zi-test" GEN = WORK / "generated" diff --git a/tests/android_lifecycle_zi_test.sh b/tests/android_lifecycle_zi_test.sh index 9669bea94..fe23335de 100644 --- a/tests/android_lifecycle_zi_test.sh +++ b/tests/android_lifecycle_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} mkdir -p "$root/build" work=$(mktemp -d "$root/build/android-lifecycle-zi-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/android_package_assets_zi_test.sh b/tests/android_package_assets_zi_test.sh index 27b0c724a..e31ab76b5 100644 --- a/tests/android_package_assets_zi_test.sh +++ b/tests/android_package_assets_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +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 \ diff --git a/tests/android_push_zi_test.sh b/tests/android_push_zi_test.sh index 02d7d2896..41deed6de 100644 --- a/tests/android_push_zi_test.sh +++ b/tests/android_push_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +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"} diff --git a/tests/android_text_input_zi_test.sh b/tests/android_text_input_zi_test.sh index b1f2c7bf5..49f9ed900 100644 --- a/tests/android_text_input_zi_test.sh +++ b/tests/android_text_input_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +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" diff --git a/tests/android_timer_zi_test.sh b/tests/android_timer_zi_test.sh index 709f20f1a..926a193fa 100644 --- a/tests/android_timer_zi_test.sh +++ b/tests/android_timer_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} mkdir -p "$root/build" work=$(mktemp -d "$root/build/android-timer-zi-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/android_wakelock_zi_test.sh b/tests/android_wakelock_zi_test.sh index 0c3e1b159..6deb94211 100644 --- a/tests/android_wakelock_zi_test.sh +++ b/tests/android_wakelock_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} "$bin/zi2zir" --check-only --root "$root/src" \ --module-path "$root/build/packages/kryon/src/ui" \ --module-path "$root/build/packages/ziran/std" --module-path "$root/build/packages/daochi-client" $(sh "$root/scripts/package-paths.sh" "$root/build/packages") --module-path "$root/build/packages/kryon/src/backend" \ diff --git a/tests/app_chrome_zi_test.sh b/tests/app_chrome_zi_test.sh index 54aadcab9..1b296feee 100644 --- a/tests/app_chrome_zi_test.sh +++ b/tests/app_chrome_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/title-bars-zi-test rm -rf "$work/c" mkdir -p "$work/c" diff --git a/tests/app_click_block_zi_test.sh b/tests/app_click_block_zi_test.sh index 5bbc9f711..0a3c3d609 100644 --- a/tests/app_click_block_zi_test.sh +++ b/tests/app_click_block_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work="$root/build/app-click-block-test" mkdir -p "$work/generated" "$bin/zi2c" --no-main --define PLATFORM_DESKTOP --root "$root/tests" \ diff --git a/tests/app_clock_host_test.sh b/tests/app_clock_host_test.sh index 7f778cc86..23043399f 100644 --- a/tests/app_clock_host_test.sh +++ b/tests/app_clock_host_test.sh @@ -3,7 +3,7 @@ set -eu unset DISPLAY WAYLAND_DISPLAY root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/app-clock-test std=$root/build/packages/ziran/std mkdir -p "$work" diff --git a/tests/app_nav_state_zi_test.sh b/tests/app_nav_state_zi_test.sh index 7bd4113c4..911c9f89d 100644 --- a/tests/app_nav_state_zi_test.sh +++ b/tests/app_nav_state_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} mkdir -p "$root/build" work=$(mktemp -d "$root/build/app-nav-state-zi-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/app_zoom_zi_test.sh b/tests/app_zoom_zi_test.sh index e62a5382f..cf3e8c6b9 100644 --- a/tests/app_zoom_zi_test.sh +++ b/tests/app_zoom_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/app-zoom-test source=$root/tests/app_zoom_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -26,7 +26,7 @@ for input in source saved; do fi output=$work/$input mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$app_path" --module-path "$kryon" \ --module-path "$std" \ --entry app_zoom_behavior:Answer \ diff --git a/tests/apps_platform_test.sh b/tests/apps_platform_test.sh index 1948267ab..0170cb7b1 100644 --- a/tests/apps_platform_test.sh +++ b/tests/apps_platform_test.sh @@ -3,7 +3,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) cd "$root" -ziran=${1:-build/ziran-toolchain/bin/ziran} +ziran=${1:-build/packages/ziran/build/bin/ziran} target=${2:-native} liboqs=${3:-} sqlite=${4:-} @@ -38,7 +38,7 @@ if [ "$target" = android ]; then binary=$work/android-armv7 elif [ "$target" = native ]; then cc=${CC:-cc} - runtime=$root/build/ziran-toolchain + runtime=$root/build/packages/ziran/build binary=$work/native else echo "usage: apps_platform_test.sh ZIRAN native|android" >&2 diff --git a/tests/apps_zi_test.sh b/tests/apps_zi_test.sh index 678607ba8..e6aace754 100755 --- a/tests/apps_zi_test.sh +++ b/tests/apps_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=${APPS_TEST_DIR:-$root/build/apps-test} bundles=${APPS_TEST_BUNDLES:-$root/build} diff --git a/tests/archive_file_linux_zi_test.sh b/tests/archive_file_linux_zi_test.sh index 31ba6d778..d8623c2a5 100644 --- a/tests/archive_file_linux_zi_test.sh +++ b/tests/archive_file_linux_zi_test.sh @@ -2,25 +2,19 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} standard=${2:-"$root/build/packages/ziran/std"} work=$root/build/archive-file-linux-zi-test +rm -rf "$work/generated" mkdir -p "$work/generated" "$bin/zi2c" --no-main --root "$root/src" \ --module-path "$standard" \ -o "$work/generated" "$root/src/storage/archive_file_linux.zi" +generated_sources=$(find "$work/generated" -name '*.c' | sort) "${CC:-cc}" -std=c11 -O0 -I"$root/build/packages/ziran/include" \ -I"$work/generated" -I"$root/vendor-builds/sqlite" \ "$root/tests/archive_file_linux_zi_test.c" \ - "$work/generated/storage/archive_file_linux.c" \ - "$work/generated/zip.c" "$work/generated/zip_linux.c" \ - "$work/generated/zip_file_linux.c" \ - "$work/generated/mapped_file_linux.c" \ - "$work/generated/byte_text_linux.c" \ - "$work/generated/file_linux.c" "$work/generated/c_string.c" \ - "$work/generated/storage_layout.c" "$work/generated/legacy_session_zip.c" \ - "$work/generated/legacy_session.c" "$work/generated/state.c" \ - "$work/generated/path_join.c" "$work/generated/sqlite.c" \ + $generated_sources \ "$root/vendor-builds/sqlite/sqlite3.c" \ -lz -ldl -lpthread -lm -o "$work/test" env -u DISPLAY -u WAYLAND_DISPLAY "$work/test" diff --git a/tests/asset_files_zi_test.sh b/tests/asset_files_zi_test.sh index 541de7fe2..a85e96d49 100644 --- a/tests/asset_files_zi_test.sh +++ b/tests/asset_files_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} raylib=${2:-"$root/vendor-builds/linux/x86_64/raylib/libraylib.a"} work=$(mktemp -d "$root/build/asset-files-zi.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/assets_zi_test.sh b/tests/assets_zi_test.sh index 7182d87c5..409482fc8 100644 --- a/tests/assets_zi_test.sh +++ b/tests/assets_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/assets-zi-test mkdir -p "$work/c" diff --git a/tests/audio_cue_assets_test.sh b/tests/audio_cue_assets_test.sh index 21bef89a2..88a843fb0 100644 --- a/tests/audio_cue_assets_test.sh +++ b/tests/audio_cue_assets_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/audio-cue-assets generated=$work/generated mkdir -p "$generated" diff --git a/tests/audio_first_cue_test.sh b/tests/audio_first_cue_test.sh index 1724e2a2d..ebacb642b 100644 --- a/tests/audio_first_cue_test.sh +++ b/tests/audio_first_cue_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/audio-first-cue generated=$work/generated mkdir -p "$generated" diff --git a/tests/audio_meter_zi_test.sh b/tests/audio_meter_zi_test.sh index 328dd33c8..51b52dd8c 100644 --- a/tests/audio_meter_zi_test.sh +++ b/tests/audio_meter_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work="$root/build/audio-meter-zi-test" source="$root/tests/audio_meter_behavior.zi" mkdir -p "$work/c" diff --git a/tests/audio_policy_zi_test.sh b/tests/audio_policy_zi_test.sh index fedc76a33..33a3170e1 100644 --- a/tests/audio_policy_zi_test.sh +++ b/tests/audio_policy_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/audio-policy-test source=$root/tests/audio_policy_behavior.zi diff --git a/tests/audio_runtime_zi_test.sh b/tests/audio_runtime_zi_test.sh index de04c308e..51ebd5c3f 100644 --- a/tests/audio_runtime_zi_test.sh +++ b/tests/audio_runtime_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d) trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/audio_settings_zi_test.sh b/tests/audio_settings_zi_test.sh index a7134534a..807c0a13a 100644 --- a/tests/audio_settings_zi_test.sh +++ b/tests/audio_settings_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/audio-settings-test generated=$work/generated diff --git a/tests/bottom_nav_policy_zi_test.sh b/tests/bottom_nav_policy_zi_test.sh index 5f1c5d8f9..454a54ee7 100644 --- a/tests/bottom_nav_policy_zi_test.sh +++ b/tests/bottom_nav_policy_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/bottom-nav-policy-test source=$root/tests/bottom_nav_policy_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/break_activity_x11_test.sh b/tests/break_activity_x11_test.sh index b585e0ef2..0db06a8d5 100644 --- a/tests/break_activity_x11_test.sh +++ b/tests/break_activity_x11_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/break-activity-x11-test mkdir -p "$work/c" "$work/runtime" kryon=$root/build/packages/kryon diff --git a/tests/break_engine_zi_test.sh b/tests/break_engine_zi_test.sh index 635ef44a2..ee23d856c 100755 --- a/tests/break_engine_zi_test.sh +++ b/tests/break_engine_zi_test.sh @@ -4,7 +4,7 @@ set -eu # The break engine scenarios as native # code. Thousands of ticks per scenario are too many for the portable interpreter. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/break-engine-zi-test include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} kryon_ui=${KRYON_UI_DIR:-"$root/build/packages/kryon/src/ui"} diff --git a/tests/break_rules_zi_test.sh b/tests/break_rules_zi_test.sh index 623dfc83b..5c6aa8433 100644 --- a/tests/break_rules_zi_test.sh +++ b/tests/break_rules_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${BREAK_RULES_TEST_BUILD_DIR:-"$root/build/break-rules-test"} source=$root/tests/break_rules_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/break_stats_zi_test.sh b/tests/break_stats_zi_test.sh index 6e22e1910..bbfde6412 100644 --- a/tests/break_stats_zi_test.sh +++ b/tests/break_stats_zi_test.sh @@ -2,8 +2,9 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/break-stats-zi-test +rm -rf "$work/c" mkdir -p "$work/c" "$bin/zi2zir" --check-only --root "$root/src" \ --module-path "$root/build/packages/ziran/std" \ @@ -11,14 +12,12 @@ mkdir -p "$work/c" "$bin/zi2c" --no-main --root "$root/src" \ --module-path "$root/build/packages/ziran/std" \ -o "$work/c" "$root/src/storage/break_stats.zi" +generated_sources=$(find "$work/c" -name '*.c' | sort) "${CC:-cc}" -std=c11 -Wall -Wextra -Werror -Wno-unused-function \ -I"$root/build/packages/ziran/include" -I"$root/vendor-builds/sqlite" \ -I"$root/src/storage" -I"$work/c" \ "$root/tests/break_stats_link_test.c" \ - "$work/c/date_time.c" "$work/c/break_types.c" \ - "$work/c/break_calendar.c" \ - "$work/c/storage/break_stats.c" "$work/c/state.c" \ - "$work/c/sqlite.c" "$work/c/c_string.c" \ + $generated_sources \ "$root/vendor-builds/sqlite/sqlite3.c" \ -lm -ldl -lpthread -o "$work/test" env -u DISPLAY -u WAYLAND_DISPLAY "$work/test" diff --git a/tests/breath_rounds_zi_test.sh b/tests/breath_rounds_zi_test.sh index 9682c34bb..cfaa92794 100755 --- a/tests/breath_rounds_zi_test.sh +++ b/tests/breath_rounds_zi_test.sh @@ -4,7 +4,7 @@ set -eu # Breathing round flow (countdowns, pauses, results, completion) as native # code. Too many steps for the portable interpreter, so this is native only. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/breath-rounds-zi-test include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/breath_timing_zi_test.sh b/tests/breath_timing_zi_test.sh index ab24195e0..bf7ab7931 100644 --- a/tests/breath_timing_zi_test.sh +++ b/tests/breath_timing_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${BREATH_TIMING_TEST_BUILD_DIR:-"$root/build/breath-timing-zi-test"} source=$root/tests/breath_timing_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/daochi_native_zi_test.py b/tests/daochi_native_zi_test.py index 1ef529f79..bf9d373b6 100644 --- a/tests/daochi_native_zi_test.py +++ b/tests/daochi_native_zi_test.py @@ -14,7 +14,7 @@ import threading ROOT = Path(__file__).resolve().parent.parent -COMPILER = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT / "build/ziran-toolchain/bin/zi2c" +COMPILER = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT / "build/packages/ziran/build/bin/zi2c" USER_ID = "a" * 64 NONCE = "c" * 64 diff --git a/tests/database_upgrade_zi_test.sh b/tests/database_upgrade_zi_test.sh index 07f4db0ac..dd9c62249 100644 --- a/tests/database_upgrade_zi_test.sh +++ b/tests/database_upgrade_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/database-upgrade-zi-test mkdir -p "$work/generated" "$bin/zi2c" --no-main --root "$root/src" \ diff --git a/tests/delegate_account_zi_test.sh b/tests/delegate_account_zi_test.sh index 44f701ba3..1f72ca52d 100644 --- a/tests/delegate_account_zi_test.sh +++ b/tests/delegate_account_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"${ZIRAN_BIN:-"$root/build/ziran-toolchain/bin/ziran"}"} +compiler=${1:-"${ZIRAN_BIN:-"$root/build/packages/ziran/build/bin/ziran"}"} launcher=$compiler ziran_dir=$(cd "$root" && "$launcher" pkg path ziran) monocypher=$(cd "$root" && "$launcher" pkg path monocypher) diff --git a/tests/device_host_sdl_test.sh b/tests/device_host_sdl_test.sh index 5258d260e..b39c9d373 100644 --- a/tests/device_host_sdl_test.sh +++ b/tests/device_host_sdl_test.sh @@ -3,7 +3,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) work=$root/build/device-host-sdl-test -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} mkdir -p "$work/c" "$bin/zi2c" --no-main --root "$root/src/platform" \ --module-path "$root/src" --module-path "$root/build/packages/ziran/std" \ diff --git a/tests/device_key_zi_test.py b/tests/device_key_zi_test.py index 24ba960db..55980a936 100644 --- a/tests/device_key_zi_test.py +++ b/tests/device_key_zi_test.py @@ -11,7 +11,7 @@ import tempfile ROOT = Path(__file__).resolve().parent.parent parser = argparse.ArgumentParser(description=__doc__) -parser.add_argument("compiler", nargs="?", type=Path, default=ROOT / "build/ziran-toolchain/bin/zi2c") +parser.add_argument("compiler", nargs="?", type=Path, default=ROOT / "build/packages/ziran/build/bin/zi2c") parser.add_argument("--wasm", action="store_true") parser.add_argument("--emcc", default=os.environ.get("EMCC", "/home/wao/emsdk/upstream/emscripten/emcc")) args = parser.parse_args() diff --git a/tests/device_link_zi_test.py b/tests/device_link_zi_test.py index d2d3445a8..214813ed8 100644 --- a/tests/device_link_zi_test.py +++ b/tests/device_link_zi_test.py @@ -8,7 +8,7 @@ import sys import tempfile ROOT = Path(__file__).resolve().parent.parent -ziran = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT / "build/ziran-toolchain/bin/ziran" +ziran = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT / "build/packages/ziran/build/bin/ziran" liboqs = Path(sys.argv[2]) if len(sys.argv) > 2 else ROOT / "vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a" with tempfile.TemporaryDirectory(prefix="inbe-device-link-") as temporary: diff --git a/tests/device_policy_zi_test.sh b/tests/device_policy_zi_test.sh index 8f5ec56a7..b934c4141 100644 --- a/tests/device_policy_zi_test.sh +++ b/tests/device_policy_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/device-policy-test source=$root/tests/device_policy_behavior.zi diff --git a/tests/device_preferences_zi_test.sh b/tests/device_preferences_zi_test.sh index ffba0084b..8cb6d2d6c 100644 --- a/tests/device_preferences_zi_test.sh +++ b/tests/device_preferences_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/device-preferences-zi-test mkdir -p "$work/c" diff --git a/tests/dew_test.sh b/tests/dew_test.sh index 9196c82a9..3fa83d602 100644 --- a/tests/dew_test.sh +++ b/tests/dew_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work="$root/build/dew-test" exec 9>"$work.lock" diff --git a/tests/diary_history_zi_test.sh b/tests/diary_history_zi_test.sh index e54673670..d1cdee651 100644 --- a/tests/diary_history_zi_test.sh +++ b/tests/diary_history_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/diary-history-test include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/diary_spelling_test.sh b/tests/diary_spelling_test.sh index e2272459b..aab3d3bff 100644 --- a/tests/diary_spelling_test.sh +++ b/tests/diary_spelling_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work="$root/build/diary-spelling-test" exec 9>"$work.lock" diff --git a/tests/dpi_state_zi_test.sh b/tests/dpi_state_zi_test.sh index d9fce9d18..0d85105fc 100644 --- a/tests/dpi_state_zi_test.sh +++ b/tests/dpi_state_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/dpi-state-zi-test mkdir -p "$work/c" diff --git a/tests/entity_photos_zi_test.sh b/tests/entity_photos_zi_test.sh index 1fe10cd73..d99753434 100755 --- a/tests/entity_photos_zi_test.sh +++ b/tests/entity_photos_zi_test.sh @@ -5,7 +5,7 @@ set -eu # entity data against nodes the test answers from memory, on a real SQLite # database in this build's own directory. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$root/build/entity-photos-zi-test include=$root/build/packages/ziran/include diff --git a/tests/entity_picker_test.py b/tests/entity_picker_test.py index 81da8e456..230b46b48 100644 --- a/tests/entity_picker_test.py +++ b/tests/entity_picker_test.py @@ -6,7 +6,7 @@ import shutil import subprocess ROOT = Path(__file__).resolve().parents[1] -COMPILER = os.environ.get('ZI2C', str(ROOT / 'build/ziran-toolchain/bin/zi2c')) +COMPILER = os.environ.get('ZI2C', str(ROOT / 'build/packages/ziran/build/bin/zi2c')) STD = Path(os.environ.get('ZIRAN_STD_ROOT', str(ROOT / 'build/packages/ziran'))) ENV = {key: value for key, value in os.environ.items() if key not in ('DISPLAY', 'WAYLAND_DISPLAY', 'XAUTHORITY', 'DBUS_SESSION_BUS_ADDRESS', diff --git a/tests/exercise_types_zi_test.sh b/tests/exercise_types_zi_test.sh index 319b0c7fc..76252e91e 100644 --- a/tests/exercise_types_zi_test.sh +++ b/tests/exercise_types_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${EXERCISE_TYPES_TEST_BUILD_DIR:-"$root/build/exercise-types-test"} source=$root/tests/exercise_types_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/export_filename_zi_test.sh b/tests/export_filename_zi_test.sh index 0799c1791..fa8830a76 100644 --- a/tests/export_filename_zi_test.sh +++ b/tests/export_filename_zi_test.sh @@ -2,15 +2,17 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/export-filename-zi-test +rm -rf "$work/generated" mkdir -p "$work/generated" "$bin/zi2c" --no-main --root "$root/src" \ -o "$work/generated" "$root/src/storage/export_filename.zi" +generated_sources=$(find "$work/generated" -name '*.c' | sort) "${CC:-cc}" -std=c11 -Wall -Wextra -Werror \ -I"$root/build/packages/ziran/include" -I"$work/generated" \ - "$work/generated/storage/export_filename.c" \ - "$work/generated/storage_layout.c" -x c - -o "$work/test" <<'EOF' + $generated_sources \ + -x c - -o "$work/test" <<'EOF' #include "storage/export_filename.h" #include #include diff --git a/tests/font_assets_zi_test.sh b/tests/font_assets_zi_test.sh index d5e72015a..b7fa036ae 100644 --- a/tests/font_assets_zi_test.sh +++ b/tests/font_assets_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${FONT_ASSETS_TEST_BUILD_DIR:-"$root/build/font-assets-test"} source=$root/tests/font_assets_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -24,7 +24,7 @@ for input in source saved; do output=$work/$input rm -rf "$output/c" "$output/go" mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$module_path" \ --entry font_assets_behavior:Answer \ -o "$output/font_assets.zx" "$file" diff --git a/tests/fonts_zi_test.sh b/tests/fonts_zi_test.sh index aa1f69ffd..446900aa0 100644 --- a/tests/fonts_zi_test.sh +++ b/tests/fonts_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/fonts-zi-test mkdir -p "$work/c" diff --git a/tests/frame_activity_zi_test.sh b/tests/frame_activity_zi_test.sh index a56e3c9d6..4d6972e28 100644 --- a/tests/frame_activity_zi_test.sh +++ b/tests/frame_activity_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${FRAME_ACTIVITY_TEST_BUILD_DIR:-"$root/build/frame-activity-test"} source=$root/tests/frame_activity_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -24,7 +24,7 @@ for input in source saved; do output=$work/$input rm -rf "$output/c" "$output/go" mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$module_path" \ --entry frame_activity_behavior:Answer \ -o "$output/frame_activity.zx" "$file" diff --git a/tests/frame_pacing_zi_test.sh b/tests/frame_pacing_zi_test.sh index a07d6fa67..034769513 100644 --- a/tests/frame_pacing_zi_test.sh +++ b/tests/frame_pacing_zi_test.sh @@ -2,8 +2,9 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/frame-pacing-zi-test +rm -rf "$work/c" mkdir -p "$work/c" "$bin/zi2zir" --check-only --root "$root/src" \ @@ -21,6 +22,6 @@ mkdir -p "$work/c" "$root/tests/frame_pacing_link_test.c" \ "$work/c/app/app_frame_pacing.c" "$work/c/session_screen.c" \ "$work/c/frame_activity.c" "$work/c/smooth_frames.c" \ - "$work/c/frame_pacing.c" -o "$work/test" + "$work/c"/p*_frame_pacing.c -o "$work/test" env -u DISPLAY -u WAYLAND_DISPLAY "$work/test" echo "Inbe frame pacing Ziran/native link test passed" diff --git a/tests/friend_requests_zi_test.sh b/tests/friend_requests_zi_test.sh index 05ae0e436..f937a6f23 100644 --- a/tests/friend_requests_zi_test.sh +++ b/tests/friend_requests_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} standard=${2:-"$root/build/packages/ziran/std"} include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} work=$(mktemp -d) @@ -11,10 +11,10 @@ trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/friend_requests_behavior.zi "$bin/zi2zir" --root "$root/tests" --module-path "$root/src" \ --module-path "$standard" -o "$work/ir" "$source" -"$bin/zi2zx" bundle --root "$root/tests" --module-path "$root/src" \ +"$bin/zi2zx" --root "$root/tests" --module-path "$root/src" \ --module-path "$standard" --entry friend_requests_behavior:Answer \ -o "$work/source.zx" "$source" -"$bin/zi2zx" bundle --root "$work/ir" --module-path "$work/ir" \ +"$bin/zi2zx" --root "$work/ir" --module-path "$work/ir" \ --entry friend_requests_behavior:Answer -o "$work/saved.zx" \ "$work/ir/friend_requests_behavior.zir" cmp "$work/source.zx" "$work/saved.zx" diff --git a/tests/graphics_transition_test.sh b/tests/graphics_transition_test.sh index 9ae953d88..040a49ecc 100644 --- a/tests/graphics_transition_test.sh +++ b/tests/graphics_transition_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/graphics-transition.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM unset DISPLAY WAYLAND_DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS diff --git a/tests/habit_calendar_zi_test.sh b/tests/habit_calendar_zi_test.sh index 8c97bf388..78899385b 100644 --- a/tests/habit_calendar_zi_test.sh +++ b/tests/habit_calendar_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} ui=${2:-"$root/build/packages/kryon/src/ui"} include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} work=$(mktemp -d) @@ -11,10 +11,10 @@ trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/habit_calendar_behavior.zi "$bin/zi2zir" --root "$root/tests" --module-path "$root/src" \ --module-path "$ui" --module-path "$root/build/packages/ziran/std" --module-path "$root/build/packages/daochi-client" $(sh "$root/scripts/package-paths.sh" "$root/build/packages") --module-path "$root/build/packages/kryon/src/backend" -o "$work/ir" "$source" -"$bin/zi2zx" bundle --root "$root/tests" --module-path "$root/src" \ +"$bin/zi2zx" --root "$root/tests" --module-path "$root/src" \ --module-path "$ui" --module-path "$root/build/packages/ziran/std" --module-path "$root/build/packages/daochi-client" $(sh "$root/scripts/package-paths.sh" "$root/build/packages") --module-path "$root/build/packages/kryon/src/backend" --entry habit_calendar_behavior:CalendarAnswer \ -o "$work/source.zx" "$source" -"$bin/zi2zx" bundle --root "$work/ir" \ +"$bin/zi2zx" --root "$work/ir" \ --entry habit_calendar_behavior:CalendarAnswer \ -o "$work/saved.zx" "$work/ir/habit_calendar_behavior.zir" cmp "$work/source.zx" "$work/saved.zx" diff --git a/tests/habit_days_memory_zi_test.sh b/tests/habit_days_memory_zi_test.sh index 74171525f..52f3e554d 100644 --- a/tests/habit_days_memory_zi_test.sh +++ b/tests/habit_days_memory_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/habit-days-memory-zi-test mkdir -p "$work/c" diff --git a/tests/habit_linked_rules_zi_test.sh b/tests/habit_linked_rules_zi_test.sh index bd0936380..2dcf4f5ce 100644 --- a/tests/habit_linked_rules_zi_test.sh +++ b/tests/habit_linked_rules_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/habit-linked-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/habit_linked_rules_behavior.zi diff --git a/tests/habit_model_zi_test.sh b/tests/habit_model_zi_test.sh index 83b6a3082..6a96a8140 100755 --- a/tests/habit_model_zi_test.sh +++ b/tests/habit_model_zi_test.sh @@ -4,7 +4,7 @@ set -eu # Storage import/export and migration behaviour, run against a real # SQLite database in a temporary directory. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$root/build/habit-model-zi-test include=$root/build/packages/ziran/include diff --git a/tests/habit_session_rules_zi_test.sh b/tests/habit_session_rules_zi_test.sh index 7deb67bb7..596c5c3a9 100644 --- a/tests/habit_session_rules_zi_test.sh +++ b/tests/habit_session_rules_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/habit-session-rules-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/habit_session_rules_behavior.zi diff --git a/tests/habits_table_layout_test.sh b/tests/habits_table_layout_test.sh index b517620ac..fadefe9ec 100755 --- a/tests/habits_table_layout_test.sh +++ b/tests/habits_table_layout_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work="$root/build/habits-table-layout-test" mkdir -p "$work" "$bin/zi2zx" --root "$root/tests" \ diff --git a/tests/host_services_zi_test.sh b/tests/host_services_zi_test.sh index 7a749daf1..c12bc136f 100644 --- a/tests/host_services_zi_test.sh +++ b/tests/host_services_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/host-services-zi-test mkdir -p "$work/c" "$bin/zi2c" --root "$root/tests" --module-path "$root/src" \ diff --git a/tests/language_selection_zi_test.sh b/tests/language_selection_zi_test.sh index c268b0e53..6ab250c56 100644 --- a/tests/language_selection_zi_test.sh +++ b/tests/language_selection_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/language-selection-zi-test mkdir -p "$work/c" diff --git a/tests/launcher_entry_zi_test.sh b/tests/launcher_entry_zi_test.sh index 49c740e26..e5a09ce5f 100644 --- a/tests/launcher_entry_zi_test.sh +++ b/tests/launcher_entry_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work="$root/build/launcher-entry-test" mkdir -p "$work/generated" "$bin/zi2c" --no-main --root "$root/tests" \ diff --git a/tests/launcher_policy_zi_test.sh b/tests/launcher_policy_zi_test.sh index 087329952..718556ea5 100644 --- a/tests/launcher_policy_zi_test.sh +++ b/tests/launcher_policy_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/launcher-policy-test source=$root/tests/launcher_policy_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/legacy_session_zi_test.sh b/tests/legacy_session_zi_test.sh index 9c8785d54..f5e44cb29 100644 --- a/tests/legacy_session_zi_test.sh +++ b/tests/legacy_session_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/legacy-session-zi-test mkdir -p "$work/generated" "$bin/zi2c" --no-main --root "$root/src" \ diff --git a/tests/lists_sharing_test.sh b/tests/lists_sharing_test.sh index dc2775af4..f66c09e25 100644 --- a/tests/lists_sharing_test.sh +++ b/tests/lists_sharing_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work="$root/build/lists-sharing-test" exec 9>"$work.lock" diff --git a/tests/locale_parser_portability_test.sh b/tests/locale_parser_portability_test.sh index 42d1037a6..53392a80e 100644 --- a/tests/locale_parser_portability_test.sh +++ b/tests/locale_parser_portability_test.sh @@ -2,7 +2,7 @@ set -eu repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${ZIRAN_BIN:-"$repo/build/ziran-toolchain/bin/ziran"} +ziran=${ZIRAN_BIN:-"$repo/build/packages/ziran/build/bin/ziran"} work=$(mktemp -d) trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/locale_policy_portability_test.sh b/tests/locale_policy_portability_test.sh index 1e9873daf..62be036b6 100644 --- a/tests/locale_policy_portability_test.sh +++ b/tests/locale_policy_portability_test.sh @@ -2,7 +2,7 @@ set -eu repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${ZIRAN_BIN:-"$repo/build/ziran-toolchain/bin/ziran"} +ziran=${ZIRAN_BIN:-"$repo/build/packages/ziran/build/bin/ziran"} work=$(mktemp -d) trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/locale_zi_test.sh b/tests/locale_zi_test.sh index 52d1c8609..d39dba21e 100644 --- a/tests/locale_zi_test.sh +++ b/tests/locale_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} kryon=${KRYON_DIR:-"$root/build/packages/kryon"} toolchain=${ZIRAN_DIR:-"$root/build/packages/ziran"} work=$root/build/locale-zi-test diff --git a/tests/lumi_authorization_zi_test.sh b/tests/lumi_authorization_zi_test.sh index a3916459c..a36945aaf 100755 --- a/tests/lumi_authorization_zi_test.sh +++ b/tests/lumi_authorization_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=${LUMI_AUTHORIZATION_TEST_OUTPUT:-"$root/build/lumi-authorization-test"} mkdir -p "$work/generated" diff --git a/tests/lumi_connection_test.sh b/tests/lumi_connection_test.sh index 851bf974c..9e99a1809 100755 --- a/tests/lumi_connection_test.sh +++ b/tests/lumi_connection_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=${3:-"$root/build/lumi-connection-test"} exec 9>"$work.lock" diff --git a/tests/lumi_delegate_scope_zi_test.sh b/tests/lumi_delegate_scope_zi_test.sh index e20098e81..a6150efb0 100644 --- a/tests/lumi_delegate_scope_zi_test.sh +++ b/tests/lumi_delegate_scope_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"${ZIRAN_BIN:-"$root/build/ziran-toolchain/bin/ziran"}"} +compiler=${1:-"${ZIRAN_BIN:-"$root/build/packages/ziran/build/bin/ziran"}"} launcher=$compiler ziran_dir=$(cd "$root" && "$launcher" pkg path ziran) monocypher=$(cd "$root" && "$launcher" pkg path monocypher) diff --git a/tests/lumi_engine_test.sh b/tests/lumi_engine_test.sh index 8a1bb89dc..cf5ff1475 100644 --- a/tests/lumi_engine_test.sh +++ b/tests/lumi_engine_test.sh @@ -3,49 +3,49 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) work="$root/build/lumi-engine-test" mkdir -p "$work" -"$root/build/ziran-toolchain/bin/ziran" bundle --root "$root/tests" \ +"$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/ziran-toolchain/bin/ziran" run "$work/tool-budget.zx") + "$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/ziran-toolchain/bin/ziran" bundle --root "$root/tests" \ +"$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/ziran-toolchain/bin/ziran" run "$work/engine.zx") + "$root/build/packages/ziran/build/bin/ziran" run "$work/engine.zx") [ "$result" = 42 ] -"$root/build/ziran-toolchain/bin/ziran" bundle --root "$root/tests" \ +"$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/ziran-toolchain/bin/ziran" run "$work/response.zx") + "$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/ziran-toolchain/bin/ziran" bundle --root "$root/tests" \ +"$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/ziran-toolchain/bin/ziran" run "$work/message-text.zx") + "$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/ziran-toolchain/bin/ziran" bundle --root "$root/tests" \ +"$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/ziran-toolchain/bin/ziran" run "$work/reply-cache.zx") + "$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/ziran-toolchain/bin/ziran" bundle --root "$root/tests" \ +"$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/ziran-toolchain/bin/ziran" run "$work/chart.zx") + "$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' diff --git a/tests/lumi_feedback_delivery_test.sh b/tests/lumi_feedback_delivery_test.sh index 61df18170..9fa41a914 100644 --- a/tests/lumi_feedback_delivery_test.sh +++ b/tests/lumi_feedback_delivery_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work="$root/build/lumi-feedback-test" exec 9>"$work.lock" diff --git a/tests/lumi_guide_narration_test.py b/tests/lumi_guide_narration_test.py index 66c9f52a3..e4794863e 100755 --- a/tests/lumi_guide_narration_test.py +++ b/tests/lumi_guide_narration_test.py @@ -17,7 +17,7 @@ import subprocess import sys root = Path(__file__).resolve().parent.parent -ziran = sys.argv[1] if len(sys.argv) > 1 else str(root / "build/ziran-toolchain/bin/ziran") +ziran = sys.argv[1] if len(sys.argv) > 1 else str(root / "build/packages/ziran/build/bin/ziran") config = json.loads((root / "design/lumi-guide/narration.json").read_text(encoding="utf-8")) narrated = set(config["keys"]) named = set() diff --git a/tests/lumi_habit_intent_test.py b/tests/lumi_habit_intent_test.py index 09e5cb777..bbf037d69 100644 --- a/tests/lumi_habit_intent_test.py +++ b/tests/lumi_habit_intent_test.py @@ -16,7 +16,7 @@ import sys ROOT = Path(__file__).resolve().parent.parent WORK = ROOT / 'build/lumi-habit-intent-test' -ZIRAN = ROOT / 'build/ziran-toolchain/bin/ziran' +ZIRAN = ROOT / 'build/packages/ziran/build/bin/ziran' KEYS = ('lumi_habit_patterns', 'lumi_habit_clauses', 'lumi_habit_words') HABITS = [ diff --git a/tests/lumi_narration_test.sh b/tests/lumi_narration_test.sh index 22ddb5cb8..b7177507f 100644 --- a/tests/lumi_narration_test.sh +++ b/tests/lumi_narration_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/lumi-narration-test generated=$work/generated mkdir -p "$generated" diff --git a/tests/lumi_telegram_input_zi_test.sh b/tests/lumi_telegram_input_zi_test.sh index 0655d848f..5413e875b 100644 --- a/tests/lumi_telegram_input_zi_test.sh +++ b/tests/lumi_telegram_input_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=${LUMI_TELEGRAM_INPUT_TEST_OUTPUT:-"$root/build/lumi-telegram-input-test"} exec 9>"$work.lock" diff --git a/tests/main_platform_zi_test.sh b/tests/main_platform_zi_test.sh index 5fe22ab5e..c7be057f7 100644 --- a/tests/main_platform_zi_test.sh +++ b/tests/main_platform_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} raylib=${2:-"$root/vendor-builds/linux/x86_64/raylib/libraylib.a"} work=$(mktemp -d "$root/build/main-platform-zi.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/media_metadata_test.sh b/tests/media_metadata_test.sh index bb264f6ed..53f5f2ce0 100755 --- a/tests/media_metadata_test.sh +++ b/tests/media_metadata_test.sh @@ -4,7 +4,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/media-metadata-test include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} modules="--module-path $root/build/packages/ziran/std" diff --git a/tests/meditation_audio_archive_zi_test.sh b/tests/meditation_audio_archive_zi_test.sh index 35ce57c65..09908f2d5 100644 --- a/tests/meditation_audio_archive_zi_test.sh +++ b/tests/meditation_audio_archive_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} standard=${ZIRAN_STD:-"$root/build/packages/ziran/std"} work=$(mktemp -d) trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/meditation_timing_zi_test.sh b/tests/meditation_timing_zi_test.sh index cf107a123..08504588f 100644 --- a/tests/meditation_timing_zi_test.sh +++ b/tests/meditation_timing_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} work=$(mktemp -d) trap 'rm -rf "$work"' EXIT HUP INT TERM @@ -10,10 +10,10 @@ trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/meditation_timing_behavior.zi "$bin/zi2zir" --root "$root/tests" --module-path "$root/src" \ -o "$work/ir" "$source" -"$bin/zi2zx" bundle --root "$root/tests" --module-path "$root/src" \ +"$bin/zi2zx" --root "$root/tests" --module-path "$root/src" \ --entry meditation_timing_behavior:Answer \ -o "$work/source.zx" "$source" -"$bin/zi2zx" bundle --root "$work/ir" \ +"$bin/zi2zx" --root "$work/ir" \ --entry meditation_timing_behavior:Answer \ -o "$work/saved.zx" "$work/ir/meditation_timing_behavior.zir" cmp "$work/source.zx" "$work/saved.zx" diff --git a/tests/metrics_zi_test.sh b/tests/metrics_zi_test.sh index cea954abd..9ee8786b7 100644 --- a/tests/metrics_zi_test.sh +++ b/tests/metrics_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/metrics-zi-test mkdir -p "$work/c" "$bin/zi2c" --no-main --root "$root/tests" --module-path "$root/src" \ diff --git a/tests/mini_mode_policy_zi_test.sh b/tests/mini_mode_policy_zi_test.sh index bc25cc996..42529b54f 100755 --- a/tests/mini_mode_policy_zi_test.sh +++ b/tests/mini_mode_policy_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/mini-mode-policy-test source=$root/tests/mini_mode_policy_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -23,7 +23,7 @@ for input in source saved; do fi output=$work/$input mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$app_path" \ --entry mini_mode_policy_behavior:Answer \ -o "$output/policy.zx" "$file" diff --git a/tests/modal_rules_zi_test.sh b/tests/modal_rules_zi_test.sh index cb7dfdd44..52a2188e0 100644 --- a/tests/modal_rules_zi_test.sh +++ b/tests/modal_rules_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${MODAL_RULES_TEST_BUILD_DIR:-"$root/build/modal-rules-test"} source=$root/tests/modal_rules_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -24,7 +24,7 @@ for input in source saved; do output=$work/$input rm -rf "$output/c" "$output/go" mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$module_path" \ --entry modal_rules_behavior:Answer \ -o "$output/modal_rules.zx" "$file" @@ -41,7 +41,7 @@ for input in source saved; do int main(void) { return Answer() == 42 ? 0 : 1; } C "${CC:-cc}" -std=c11 -I"$include" -I"$output/c" \ - "$output/c/modal_rules.c" "$output/c/types.c" \ + "$output/c/modal_rules.c" \ "$output/c/modal_rules_behavior.c" "$output/c/main.c" \ -o "$output/c/test" env -u DISPLAY -u WAYLAND_DISPLAY "$output/c/test" diff --git a/tests/mood_average_zi_test.sh b/tests/mood_average_zi_test.sh index dabedb929..4ab2fcee2 100755 --- a/tests/mood_average_zi_test.sh +++ b/tests/mood_average_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/mood-average-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/mood_average_behavior.zi diff --git a/tests/music_library_zi_test.sh b/tests/music_library_zi_test.sh index 4ca15d73b..2f119ed09 100644 --- a/tests/music_library_zi_test.sh +++ b/tests/music_library_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/music-library-zi-test mkdir -p "$work/c" "$work/stubs" "$bin/zi2zir" --check-only --root "$root/src" \ diff --git a/tests/node_app_records_zi_test.sh b/tests/node_app_records_zi_test.sh index 96cb14978..f78b03d53 100644 --- a/tests/node_app_records_zi_test.sh +++ b/tests/node_app_records_zi_test.sh @@ -4,7 +4,7 @@ set -eu # Names of the apps the node offers, their synced keys, collections and # shared ids, as native code. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/node-app-records-zi-test include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/notification_lifecycle_zi_test.sh b/tests/notification_lifecycle_zi_test.sh index 8b5275c39..4c38e939a 100644 --- a/tests/notification_lifecycle_zi_test.sh +++ b/tests/notification_lifecycle_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +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"} diff --git a/tests/patterns_rules_zi_test.sh b/tests/patterns_rules_zi_test.sh index 6d63dfa90..39e978448 100644 --- a/tests/patterns_rules_zi_test.sh +++ b/tests/patterns_rules_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/patterns-rules-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/patterns_rules_behavior.zi diff --git a/tests/patterns_session_zi_test.sh b/tests/patterns_session_zi_test.sh index 8f16a3cb4..0f6593a96 100644 --- a/tests/patterns_session_zi_test.sh +++ b/tests/patterns_session_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/patterns-session-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/patterns_session_behavior.zi diff --git a/tests/practice_downloads_test.py b/tests/practice_downloads_test.py index 07f3509e5..de07f99ef 100644 --- a/tests/practice_downloads_test.py +++ b/tests/practice_downloads_test.py @@ -18,7 +18,7 @@ if work.exists(): work.mkdir(parents=True) fixtures = work / 'fixtures' (fixtures / 'cache/packages').mkdir(parents=True) -compiler = Path(os.environ.get('ZIRAN', str(ROOT / 'build/ziran-toolchain/bin/ziran'))) +compiler = Path(os.environ.get('ZIRAN', str(ROOT / 'build/packages/ziran/build/bin/ziran'))) packs = [] for name in NAMES: data = (ROOT / 'build/practice-content' / (name + '.zx')).read_bytes() @@ -103,7 +103,7 @@ subprocess.run([os.environ.get('CC', 'cc'), '-std=c11', '-D_GNU_SOURCE', '-O1', '-I' + str(monocypher / 'optional'), str(ROOT / 'tests/practice_downloads_host.c'), *map(str, generated.rglob('*.c')), str(monocypher / 'monocypher.c'), str(monocypher / 'optional/monocypher-ed25519.c'), - os.environ.get('ZIRAN_RUNTIME', str(ROOT / 'build/ziran-toolchain/libziran.a')), '-Wl,--gc-sections', + os.environ.get('ZIRAN_RUNTIME', str(ROOT / 'build/packages/ziran/build/libziran.a')), '-Wl,--gc-sections', '-Wl,--wrap=storage_db_path', '-Wl,--wrap=Sha256Hex', '-lm', '-pthread', '-o', str(work / 'test')], check=True) diff --git a/tests/profile_picture_policy_zi_test.sh b/tests/profile_picture_policy_zi_test.sh index 08ac60cbe..01804d24a 100644 --- a/tests/profile_picture_policy_zi_test.sh +++ b/tests/profile_picture_policy_zi_test.sh @@ -2,17 +2,17 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/profile-picture-policy-test source=$root/tests/profile_picture_policy_behavior.zi mkdir -p "$work/ir" "$work/c" "$bin/zi2zir" --root "$root/tests" --module-path "$root/src" --module-path entity="$root/build/packages/entity/src" --module-path "$root/build/packages/ziran/std" \ -o "$work/ir" "$source" -"$bin/zi2zx" bundle --root "$root/tests" --module-path "$root/src" --module-path entity="$root/build/packages/entity/src" --module-path "$root/build/packages/ziran/std" \ +"$bin/zi2zx" --root "$root/tests" --module-path "$root/src" --module-path entity="$root/build/packages/entity/src" --module-path "$root/build/packages/ziran/std" \ --entry profile_picture_policy_behavior:Answer \ -o "$work/source.zx" "$source" -"$bin/zi2zx" bundle --root "$work/ir" --module-path "$work/ir" \ +"$bin/zi2zx" --root "$work/ir" --module-path "$work/ir" \ --entry profile_picture_policy_behavior:Answer \ -o "$work/saved.zx" "$work/ir/profile_picture_policy_behavior.zir" [ "$(env -u DISPLAY -u WAYLAND_DISPLAY "$bin/zi2zx" run "$work/source.zx")" = 42 ] diff --git a/tests/radio_native_test.sh b/tests/radio_native_test.sh index a298aa96a..818c45559 100644 --- a/tests/radio_native_test.sh +++ b/tests/radio_native_test.sh @@ -1,10 +1,11 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} standard=${2:-"$root/build/packages/ziran/std"} work="$root/build/radio-test" curl=${CURL_LIBRARY:-$(ls /usr/lib/x86_64-linux-gnu/libcurl.so.4 2>/dev/null || echo -lcurl)} +rm -rf "$work/c" mkdir -p "$work/c" "$bin/zi2c" --no-main --root "$root/src" --module-path "$standard" \ -o "$work/c" "$root/src/platform/radio_runtime.zi" @@ -12,12 +13,12 @@ ffmpeg -hide_banner -loglevel error -y -f lavfi -i 'sine=frequency=440:duration= -ac 1 -c:a libmp3lame -b:a 128k "$work/mono.mp3" ffmpeg -hide_banner -loglevel error -y -f lavfi -i 'sine=frequency=220:duration=3:sample_rate=48000' \ -ac 2 -c:a libmp3lame -b:a 128k "$work/stereo.mp3" +generated_sources=$(find "$work/c" -name '*.c' | sort) "${CC:-cc}" -std=c11 -O1 -g -DZIRAN_BOUNDS_CHECK -ffunction-sections -fdata-sections \ -fsanitize=address,undefined -Wl,--gc-sections \ -I"$(dirname "$standard")/include" -I"$root/build/packages/raylib/src" \ -I"$work/c" "$root/tests/radio_native_test.c" \ - "$work/c/platform/radio_runtime.c" "$work/c/radio_native.c" \ - "$work/c/c_string.c" "$work/c/net_http_curl_linux.c" \ + $generated_sources \ "$curl" -lpthread -lm -o "$work/test" env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \ YUE_DESKTOP_RECOVERY=0 ASAN_OPTIONS=detect_leaks=0 "$work/test" "$work/mono.mp3" "$work/stereo.mp3" diff --git a/tests/raylib_text_input_zi_test.sh b/tests/raylib_text_input_zi_test.sh index 67d93d970..366159141 100644 --- a/tests/raylib_text_input_zi_test.sh +++ b/tests/raylib_text_input_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/raylib-text-input-zi-test mkdir -p "$work/c" diff --git a/tests/root_upgrade_zi_test.sh b/tests/root_upgrade_zi_test.sh index f9e9a5731..2dac2e265 100644 --- a/tests/root_upgrade_zi_test.sh +++ b/tests/root_upgrade_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/root-upgrade-zi-test mkdir -p "$work/generated" "$bin/zi2c" --no-main --root "$root/src" \ diff --git a/tests/route_catalog_zi_test.sh b/tests/route_catalog_zi_test.sh index 1f9b4062f..790daa966 100644 --- a/tests/route_catalog_zi_test.sh +++ b/tests/route_catalog_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${ROUTE_CATALOG_TEST_BUILD_DIR:-"$root/build/route-catalog-test"} source=$root/tests/route_catalog_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -29,7 +29,7 @@ for input in source saved; do output=$work/$input rm -rf "$output/c" "$output/go" mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$app_path" --module-path "$ui_path" --module-path "$std_path" \ --entry route_catalog_behavior:Answer \ -o "$output/routes.zx" "$file" diff --git a/tests/route_list_zi_test.sh b/tests/route_list_zi_test.sh index 2ff3dc04a..67b0d9759 100644 --- a/tests/route_list_zi_test.sh +++ b/tests/route_list_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} work=$(mktemp -d) trap 'rm -rf "$work"' EXIT HUP INT TERM @@ -10,9 +10,9 @@ trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/route_list_behavior.zi "$bin/zi2zir" --root "$root/tests" --module-path "$root/src" \ -o "$work/ir" "$source" -"$bin/zi2zx" bundle --root "$root/tests" --module-path "$root/src" \ +"$bin/zi2zx" --root "$root/tests" --module-path "$root/src" \ --entry route_list_behavior:Answer -o "$work/source.zx" "$source" -"$bin/zi2zx" bundle --root "$work/ir" \ +"$bin/zi2zx" --root "$work/ir" \ --entry route_list_behavior:Answer -o "$work/saved.zx" \ "$work/ir/route_list_behavior.zir" cmp "$work/source.zx" "$work/saved.zx" diff --git a/tests/schema_zi_test.sh b/tests/schema_zi_test.sh index 1c13f6eff..bc25a2028 100644 --- a/tests/schema_zi_test.sh +++ b/tests/schema_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/schema-zi-test rm -rf "$work/generated" mkdir -p "$work/generated" @@ -18,15 +18,11 @@ mkdir -p "$work/generated" "$bin/zi2c" --no-main --root "$root/src" \ --module-path "$root/build/packages/ziran/std" \ -o "$work/generated" "$root/src/storage/meta.zi" +generated_sources=$(find "$work/generated" -name '*.c' | sort) "${CC:-cc}" -std=c11 -O0 -I"$root/vendor-builds/sqlite" \ -I"$root/build/packages/ziran/include" -I"$work/generated" \ "$root/tests/schema_zi_test.c" \ - "$work/generated/c_string.c" "$work/generated/byte_text_linux.c" \ - "$work/generated/schema_sql.c" "$work/generated/sql_transaction.c" \ - "$work/generated/storage/schema.c" \ - "$work/generated/storage/sql_query.c" \ - "$work/generated/storage/user.c" "$work/generated/storage/meta.c" \ - "$work/generated/sqlite.c" \ + $generated_sources \ "$root/vendor-builds/sqlite/sqlite3.c" -ldl -lpthread -lm \ -o "$work/test" env -u DISPLAY -u WAYLAND_DISPLAY "$work/test" \ diff --git a/tests/screenshot_request_zi_test.sh b/tests/screenshot_request_zi_test.sh index bb1c624b5..867dcf4be 100644 --- a/tests/screenshot_request_zi_test.sh +++ b/tests/screenshot_request_zi_test.sh @@ -2,13 +2,13 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/screenshot-request-zi-test source=$root/tests/screenshot_request_behavior.zi mkdir -p "$work/ir" "$work/c" "$bin/zi2zir" --root "$root/tests" --module-path "$root/src" \ --module-path "$root/build/packages/ziran/std" -o "$work/ir" "$source" -"$bin/zi2zx" bundle --root "$root/tests" --module-path "$root/src" \ +"$bin/zi2zx" --root "$root/tests" --module-path "$root/src" \ --module-path "$root/build/packages/ziran/std" \ --entry screenshot_request_behavior:Answer \ -o "$work/request.zx" "$source" diff --git a/tests/settings_cache_zi_test.sh b/tests/settings_cache_zi_test.sh index b2759a75e..6ecf66346 100644 --- a/tests/settings_cache_zi_test.sh +++ b/tests/settings_cache_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${SETTINGS_CACHE_TEST_BUILD_DIR:-"$root/build/settings-cache-test"} source=$root/tests/settings_cache_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -23,7 +23,7 @@ for input in source saved; do fi output=$work/$input mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$app_path" \ --module-path "$root/build/packages/ziran/std" \ --entry settings_cache_behavior:Answer \ diff --git a/tests/settings_mutation_zi_test.sh b/tests/settings_mutation_zi_test.sh index 7444c2c92..12259dbde 100644 --- a/tests/settings_mutation_zi_test.sh +++ b/tests/settings_mutation_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +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"} diff --git a/tests/settings_status_test.py b/tests/settings_status_test.py index 73e2d2dd9..98a34121b 100644 --- a/tests/settings_status_test.py +++ b/tests/settings_status_test.py @@ -7,7 +7,7 @@ import sys import tempfile ROOT = Path(__file__).resolve().parents[1] -BIN = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT / 'build/ziran-toolchain/bin' +BIN = Path(sys.argv[1]) if len(sys.argv) > 1 else ROOT / 'build/packages/ziran/build/bin' ENV = dict(os.environ) for name in ('DISPLAY', 'WAYLAND_DISPLAY', 'XAUTHORITY', 'GDK_DISPLAY'): ENV.pop(name, None) @@ -29,7 +29,7 @@ with tempfile.TemporaryDirectory(prefix='settings-status-', dir=ROOT / 'build') for source, root in ((ROOT / 'tests/settings_status_behavior.zi', ROOT / 'tests'), (ir / 'settings_status_behavior.zir', ir)): bundle = work / ('source.zx' if source.suffix == '.zi' else 'saved.zx') - subprocess.run([BIN / 'zi2zx', 'bundle', '--root', root, + subprocess.run([BIN / 'zi2zx', '--root', root, '--entry', 'settings_status_behavior:main', '-o', bundle, source], env=ENV, check=True) result = subprocess.run([BIN / 'zi2zx', 'run', bundle], env=ENV, diff --git a/tests/settings_telegram_ui_zi_test.sh b/tests/settings_telegram_ui_zi_test.sh index a0ec2bc73..ceb965ecc 100755 --- a/tests/settings_telegram_ui_zi_test.sh +++ b/tests/settings_telegram_ui_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$(mktemp -d "${TMPDIR:-/tmp}/inbe-settings-telegram-ui.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/settings_ui_zi_test.sh b/tests/settings_ui_zi_test.sh index fa72b8bd7..701625618 100644 --- a/tests/settings_ui_zi_test.sh +++ b/tests/settings_ui_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +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"} diff --git a/tests/social_action_queue_zi_test.sh b/tests/social_action_queue_zi_test.sh index 44d81e2f5..8eec1b998 100644 --- a/tests/social_action_queue_zi_test.sh +++ b/tests/social_action_queue_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} work=$root/build/social-action-queue-test source=$root/tests/social_action_queue_behavior.zi @@ -23,7 +23,7 @@ for input in source saved; do fi output=$work/$input mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$app_path" \ --entry social_action_queue_behavior:Answer \ -o "$output/queue.zx" "$file" diff --git a/tests/sql_transaction_zi_test.sh b/tests/sql_transaction_zi_test.sh index 9dd398bc1..e8d5439dd 100644 --- a/tests/sql_transaction_zi_test.sh +++ b/tests/sql_transaction_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/sql-transaction-zi-test mkdir -p "$work/generated" diff --git a/tests/sqlite_text_zi_test.sh b/tests/sqlite_text_zi_test.sh index d26fdaf4a..c2bb892ce 100644 --- a/tests/sqlite_text_zi_test.sh +++ b/tests/sqlite_text_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/sqlite-text-zi-test mkdir -p "$work/generated" diff --git a/tests/statistics_date_zi_test.sh b/tests/statistics_date_zi_test.sh index 6e9de89d3..43b4e0ea9 100755 --- a/tests/statistics_date_zi_test.sh +++ b/tests/statistics_date_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/statistics-date-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM source=$root/tests/statistics_date_behavior.zi diff --git a/tests/storage_crash_zi_test.sh b/tests/storage_crash_zi_test.sh index 42fa6445b..f40de8cc3 100755 --- a/tests/storage_crash_zi_test.sh +++ b/tests/storage_crash_zi_test.sh @@ -7,7 +7,7 @@ set -eu # tests/storage_crash_behavior.zi for what each scenario writes and checks. # STORAGE_CRASH_ROUNDS sets the kills per scenario (default 30). root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} rounds=${STORAGE_CRASH_ROUNDS:-30} work=$root/build/storage-crash-zi-test diff --git a/tests/storage_delegate_zi_test.sh b/tests/storage_delegate_zi_test.sh index d7c8ddcde..04548d506 100644 --- a/tests/storage_delegate_zi_test.sh +++ b/tests/storage_delegate_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$(mktemp -d /tmp/inbe-storage-delegate-build.XXXXXX) trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/storage_habits_zi_test.sh b/tests/storage_habits_zi_test.sh index 3d1f0c70d..0f76320e8 100755 --- a/tests/storage_habits_zi_test.sh +++ b/tests/storage_habits_zi_test.sh @@ -4,7 +4,7 @@ set -eu # Storage import/export and migration behaviour, run against a real # SQLite database in a temporary directory. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$root/build/storage-habits-zi-test include=$root/build/packages/ziran/include diff --git a/tests/storage_import_zi_test.sh b/tests/storage_import_zi_test.sh index fa0d608fb..9b3bef812 100755 --- a/tests/storage_import_zi_test.sh +++ b/tests/storage_import_zi_test.sh @@ -4,7 +4,7 @@ set -eu # Storage import/export and migration behaviour, run against a real # SQLite database in a temporary directory. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$root/build/storage-import-zi-test include=$root/build/packages/ziran/include diff --git a/tests/storage_json_builder_zi_test.sh b/tests/storage_json_builder_zi_test.sh index 33f5b2737..7fec1d7ef 100644 --- a/tests/storage_json_builder_zi_test.sh +++ b/tests/storage_json_builder_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work="$root/build/storage-json-zi-test" source="$root/tests/storage_json_builder_behavior.zi" mkdir -p "$work/c" diff --git a/tests/storage_more_zi_test.sh b/tests/storage_more_zi_test.sh index a9b131219..52bd11322 100755 --- a/tests/storage_more_zi_test.sh +++ b/tests/storage_more_zi_test.sh @@ -4,7 +4,7 @@ set -eu # Storage import/export and migration behaviour, run against a real # SQLite database in a temporary directory. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$root/build/storage-more-zi-test include=$root/build/packages/ziran/include diff --git a/tests/storage_paths_scenarios_zi_test.sh b/tests/storage_paths_scenarios_zi_test.sh index 27bc6f4a7..b249334d8 100755 --- a/tests/storage_paths_scenarios_zi_test.sh +++ b/tests/storage_paths_scenarios_zi_test.sh @@ -5,7 +5,7 @@ set -eu # directory into place, and archiving a conflicting one. data_root() caches # its result, so each scenario is a fresh process with its own environment. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} work=$root/build/storage-paths-scenarios-zi-test include=$root/build/packages/ziran/include diff --git a/tests/storage_paths_zi_test.sh b/tests/storage_paths_zi_test.sh index 39d5e23a3..b249f14d5 100644 --- a/tests/storage_paths_zi_test.sh +++ b/tests/storage_paths_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/storage-paths-zi-test mkdir -p "$work/generated" diff --git a/tests/storage_settings_threads_zi_test.sh b/tests/storage_settings_threads_zi_test.sh index 442965344..4ce22e80e 100755 --- a/tests/storage_settings_threads_zi_test.sh +++ b/tests/storage_settings_threads_zi_test.sh @@ -4,7 +4,7 @@ set -eu # Concurrent settings write batches from several threads, run against a real # SQLite database in a temporary directory. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$root/build/storage-settings-threads-zi-test include=$root/build/packages/ziran/include diff --git a/tests/storage_state_zi_test.sh b/tests/storage_state_zi_test.sh index a69a46e69..0ff6071cd 100644 --- a/tests/storage_state_zi_test.sh +++ b/tests/storage_state_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/storage-state-zi-test mkdir -p "$work/generated" "$bin/zi2c" --no-main --root "$root/src" \ diff --git a/tests/storage_thread_buffer_zi_test.sh b/tests/storage_thread_buffer_zi_test.sh index 9e3cc9d4c..1119147ae 100644 --- a/tests/storage_thread_buffer_zi_test.sh +++ b/tests/storage_thread_buffer_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work="$root/build/storage-thread-buffer-zi-test" source="$root/tests/storage_thread_buffer_behavior.zi" mkdir -p "$work/c" diff --git a/tests/style_apply_zi_test.sh b/tests/style_apply_zi_test.sh index 76f2eb8ad..c9234cff4 100644 --- a/tests/style_apply_zi_test.sh +++ b/tests/style_apply_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/style-apply-zi-test mkdir -p "$work/c" diff --git a/tests/sun_salutation_zi_test.sh b/tests/sun_salutation_zi_test.sh index 608cf5773..5a93498d7 100644 --- a/tests/sun_salutation_zi_test.sh +++ b/tests/sun_salutation_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${SUN_SALUTATION_TEST_BUILD_DIR:-"$root/build/sun-salutation-test"} source=$root/tests/sun_salutation_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -25,7 +25,7 @@ for input in source saved; do rm -rf "$output/c" "$output/go" mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$module_path" \ --entry sun_salutation_behavior:Answer \ -o "$output/sun_salutation.zx" "$file" diff --git a/tests/sync_account_zi_test.sh b/tests/sync_account_zi_test.sh index 8c30f65af..9e0c92c14 100755 --- a/tests/sync_account_zi_test.sh +++ b/tests/sync_account_zi_test.sh @@ -4,7 +4,7 @@ set -eu # Account import/export/migration and storage behavior, run against a real # SQLite database in a temporary directory. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} kryon=${KRYON_DIR:-"$root/build/packages/kryon"} entity=${ENTITY_DIR:-"$root/build/packages/entity"} diff --git a/tests/sync_connection_zi_test.sh b/tests/sync_connection_zi_test.sh index 191cd414f..8fa5693f2 100644 --- a/tests/sync_connection_zi_test.sh +++ b/tests/sync_connection_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$root/build/sync-connection-test exec 9>"$work.lock" diff --git a/tests/sync_retry_zi_test.sh b/tests/sync_retry_zi_test.sh index d196c3ab9..a5f2865f2 100644 --- a/tests/sync_retry_zi_test.sh +++ b/tests/sync_retry_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=${SYNC_RETRY_TEST_BUILD_DIR:-"$root/build/sync-retry-test"} source=$root/tests/sync_retry_behavior.zi include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} @@ -24,7 +24,7 @@ for input in source saved; do output=$work/$input rm -rf "$output/c" "$output/go" mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$module_path" \ --entry sync_retry_behavior:Answer \ -o "$output/sync_retry.zx" "$file" diff --git a/tests/sync_review_zi_test.sh b/tests/sync_review_zi_test.sh index b948c8be4..d0f1f1da5 100755 --- a/tests/sync_review_zi_test.sh +++ b/tests/sync_review_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} work=$root/build/sync-review-zi-test include=$root/build/packages/ziran/include diff --git a/tests/sync_safety_zi_test.sh b/tests/sync_safety_zi_test.sh index 5db23526f..8b5cd62de 100644 --- a/tests/sync_safety_zi_test.sh +++ b/tests/sync_safety_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} work=$root/build/sync-safety-test source=$root/tests/sync_safety_behavior.zi @@ -23,7 +23,7 @@ for input in source saved; do fi output=$work/$input mkdir -p "$output/c" "$output/go" - "$bin/zi2zx" bundle --root "$module_root" \ + "$bin/zi2zx" --root "$module_root" \ --module-path "$app_path" --entry sync_safety_behavior:Answer \ -o "$output/safety.zx" "$file" [ "$(env -u DISPLAY -u WAYLAND_DISPLAY "$bin/zi2zx" run "$output/safety.zx")" = 42 ] diff --git a/tests/sync_server_zi_test.sh b/tests/sync_server_zi_test.sh index d52361c15..02e0499c7 100755 --- a/tests/sync_server_zi_test.sh +++ b/tests/sync_server_zi_test.sh @@ -5,7 +5,7 @@ set -eu # real Daochi server through scripts/sync-server-test.mjs, which needs # DAOCHI_BIN (a built Daochi server) and node. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=${SYNC_SERVER_TEST_WORK:-$root/build/sync-server-zi-test} include=$root/build/packages/ziran/include diff --git a/tests/sync_status_policy_zi_test.sh b/tests/sync_status_policy_zi_test.sh index 2b5d5548c..619fa409d 100644 --- a/tests/sync_status_policy_zi_test.sh +++ b/tests/sync_status_policy_zi_test.sh @@ -2,17 +2,17 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/sync-status-policy-test source=$root/tests/sync_status_policy_behavior.zi mkdir -p "$work/ir" "$work/c" "$bin/zi2zir" --root "$root/tests" --module-path "$root/src" \ -o "$work/ir" "$source" -"$bin/zi2zx" bundle --root "$root/tests" --module-path "$root/src" \ +"$bin/zi2zx" --root "$root/tests" --module-path "$root/src" \ --entry sync_status_policy_behavior:Answer \ -o "$work/source.zx" "$source" -"$bin/zi2zx" bundle --root "$work/ir" --module-path "$work/ir" \ +"$bin/zi2zx" --root "$work/ir" --module-path "$work/ir" \ --entry sync_status_policy_behavior:Answer \ -o "$work/saved.zx" "$work/ir/sync_status_policy_behavior.zir" [ "$(env -u DISPLAY -u WAYLAND_DISPLAY "$bin/zi2zx" run "$work/source.zx")" = 42 ] diff --git a/tests/sync_status_zi_test.sh b/tests/sync_status_zi_test.sh index b12c19cfb..f6eccc95a 100644 --- a/tests/sync_status_zi_test.sh +++ b/tests/sync_status_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} work=$root/build/sync-status-test diff --git a/tests/sync_url_zi_test.sh b/tests/sync_url_zi_test.sh index 106dc66a6..a2634e941 100755 --- a/tests/sync_url_zi_test.sh +++ b/tests/sync_url_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -ziran=${1:-"$root/build/ziran-toolchain/bin/ziran"} +ziran=${1:-"$root/build/packages/ziran/build/bin/ziran"} work=$root/build/sync-url-zi-test mkdir -p "$work" diff --git a/tests/sync_worker_host_zi_test.sh b/tests/sync_worker_host_zi_test.sh index 9ec3c660d..53f89b195 100644 --- a/tests/sync_worker_host_zi_test.sh +++ b/tests/sync_worker_host_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/sync-worker-host-test mkdir -p "$work/generated" diff --git a/tests/tai_chi_zi_test.sh b/tests/tai_chi_zi_test.sh index 73840bcaa..052145b95 100755 --- a/tests/tai_chi_zi_test.sh +++ b/tests/tai_chi_zi_test.sh @@ -4,7 +4,7 @@ set -eu # The Tai Chi course loads, and its motion, solved joints and painted # pieces match the course studio's reference, natively. root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/tai-chi-zi-test include=${ZIRAN_INCLUDE:-"$root/build/packages/ziran/include"} diff --git a/tests/telegram_account_flow_zi_test.sh b/tests/telegram_account_flow_zi_test.sh index 29cc31b17..3d4dbda1c 100755 --- a/tests/telegram_account_flow_zi_test.sh +++ b/tests/telegram_account_flow_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$(mktemp -d /tmp/inbe-telegram-account-flow.XXXXXX) trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/telegram_account_ui_zi_test.sh b/tests/telegram_account_ui_zi_test.sh index da982e7b9..5b351c58d 100755 --- a/tests/telegram_account_ui_zi_test.sh +++ b/tests/telegram_account_ui_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/telegram-account-ui-test mkdir -p "$work/c" "$bin/zi2c" --no-main --define PLATFORM_DESKTOP --root "$root/src" \ diff --git a/tests/telegram_entry_protocol_zi_test.sh b/tests/telegram_entry_protocol_zi_test.sh index 9571fc687..6012631da 100755 --- a/tests/telegram_entry_protocol_zi_test.sh +++ b/tests/telegram_entry_protocol_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -compiler=${1:-"$root/build/ziran-toolchain/bin/ziran"} +compiler=${1:-"$root/build/packages/ziran/build/bin/ziran"} liboqs=${2:-"$root/vendor-builds/linux/x86_64/inbe-liboqs/lib/liboqs.a"} work=$(mktemp -d /tmp/inbe-telegram-entry-protocol.XXXXXX) trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/text_buffers_zi_test.sh b/tests/text_buffers_zi_test.sh index cf7a12505..88e41af4b 100644 --- a/tests/text_buffers_zi_test.sh +++ b/tests/text_buffers_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/text-buffers-zi-test mkdir -p "$work/c" "$bin/zi2zir" --check-only --root "$root/src" \ diff --git a/tests/theme_catalog_zi_test.sh b/tests/theme_catalog_zi_test.sh index 6bca249bd..ebc4e8e61 100644 --- a/tests/theme_catalog_zi_test.sh +++ b/tests/theme_catalog_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/theme-catalog-zi-test mkdir -p "$work/c" diff --git a/tests/update_fetch_host_test.py b/tests/update_fetch_host_test.py index 785467b41..e7ed6814d 100644 --- a/tests/update_fetch_host_test.py +++ b/tests/update_fetch_host_test.py @@ -114,7 +114,7 @@ def main(): assert curl_name is not None, "libcurl is required for this test" library = Path(work) / "update_fetch.so" compiler = (Path(sys.argv[1]) if len(sys.argv) > 1 else - ROOT / "build/ziran-toolchain/bin/zi2c") + ROOT / "build/packages/ziran/build/bin/zi2c") generated = Path(work) / "transport" arch = platform.machine().lower() architecture = ("__aarch64__" if arch in ("aarch64", "arm64") diff --git a/tests/update_flow_zi_test.py b/tests/update_flow_zi_test.py index e877014be..43be33944 100644 --- a/tests/update_flow_zi_test.py +++ b/tests/update_flow_zi_test.py @@ -109,7 +109,7 @@ def build_probe(work, compiler, env): def main(): compiler = (Path(sys.argv[1]) if len(sys.argv) > 1 else - ROOT / "build/ziran-toolchain/bin/zi2c") + ROOT / "build/packages/ziran/build/bin/zi2c") env = os.environ.copy() env.pop("DISPLAY", None) env.pop("WAYLAND_DISPLAY", None) diff --git a/tests/update_policy_zi_test.sh b/tests/update_policy_zi_test.sh index 60389caef..4a94d4ef7 100644 --- a/tests/update_policy_zi_test.sh +++ b/tests/update_policy_zi_test.sh @@ -2,10 +2,10 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$root/build/update-policy-zi-test mkdir -p "$work/c" -"$bin/zi2zx" bundle --root "$root/tests" \ +"$bin/zi2zx" --root "$root/tests" \ --module-path "$root/src" --module-path "$root/build/packages/ziran/std" \ --entry update_policy_behavior:Answer \ -o "$work/update-policy.zx" \ diff --git a/tests/web_bridge_wasm_test.sh b/tests/web_bridge_wasm_test.sh index 0024db27e..999c38c3f 100644 --- a/tests/web_bridge_wasm_test.sh +++ b/tests/web_bridge_wasm_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} emcc=${2:-"$HOME/emsdk/upstream/emscripten/emcc"} work=$(mktemp -d "$root/build/web-bridge-wasm.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/web_storage_bridge_zi_test.sh b/tests/web_storage_bridge_zi_test.sh index aad6128ab..800b249a6 100644 --- a/tests/web_storage_bridge_zi_test.sh +++ b/tests/web_storage_bridge_zi_test.sh @@ -2,7 +2,7 @@ set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/web-storage-bridge-test.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM diff --git a/tests/web_window_zi_test.sh b/tests/web_window_zi_test.sh index fc739d4b2..ef8d7faf4 100644 --- a/tests/web_window_zi_test.sh +++ b/tests/web_window_zi_test.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) -bin=${1:-"$root/build/ziran-toolchain/bin"} +bin=${1:-"$root/build/packages/ziran/build/bin"} work=$(mktemp -d "$root/build/web-window-zi.XXXXXX") trap 'rm -rf "$work"' EXIT HUP INT TERM "$bin/zi2c" --root "$root/tests" --entry web_window_behavior:main \