Run the test harnesses on the Ziran 0.6 toolchain
Point every harness's default toolchain at build/packages/ziran/build, drop the removed `zi2zx bundle` form, link the generated C each harness actually gets (whole generated folders where the test has no stubs, and Kryon's package-prefixed frame pacing module), and stop listing the header-only type module in the modal rules test. Twenty-two more test targets pass from a clean export; plans/2026-11-17-test-harnesses.md lists the 54 that still fail and why.
This commit is contained in:
1 parent
26c1522717
commit
458f4fb5eb
148 files changed
+245
-213
No files matched your search
@@ -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.
|
||||
@@ -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<hash>_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.
|
||||
@@ -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)
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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"
|
||||
@@ -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"}
|
||||
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
@@ -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"}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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 <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
+12
-12
@@ -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'
|
||||
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" \
|
||||
|
||||
@@ -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"}
|
||||
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 ]
|
||||
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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" \
|
||||
|
||||
Loaded 100 of 148 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user