Files
breeze/tests/storage_json_builder_zi_test.sh
T
waoziandClaude Opus 5.5 94b3bd5f9d Fetch dependencies as Ziran packages instead of submodules
ziran.toml and ziran.lock pin the Ziran toolchain, Kryon, Game2D, the Daochi
client, and the C libraries (as source packages) at the commits the vendor
submodules used. scripts/packages.sh bootstraps the locked toolchain, runs
ziran fetch, and links each checkout under build/packages/; make, Gradle, and
CI run it before building. make package-check replaces no-vendor-edits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-27 16:44:19 -03:00

23 lines
873 B
Bash

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
bin=${1:-"$root/build/ziran-toolchain/bin"}
work="$root/build/storage-json-zi-test"
source="$root/tests/storage_json_builder_behavior.zi"
mkdir -p "$work/c"
"$bin/zi2zir" --check-only --root "$root/tests" \
--module-path "$root/src" --module-path "$root/build/packages/ziran/std" \
"$source"
"$bin/zi2c" --entry storage_json_builder_behavior:main \
--root "$root/tests" --module-path "$root/src" \
--module-path "$root/build/packages/ziran/std" \
-o "$work/c" "$source"
"${CC:-cc}" -std=c11 -O2 -Wall -Wextra \
-Wno-unused-function -Wno-unused-variable \
-I"$root/build/packages/ziran/include" -iquote "$work/c" \
"$work/c"/*.c -o "$work/test"
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
"$work/test"
echo "Inbe Ziran JSON builder test passed"