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

18 lines
879 B
Bash

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
bin=${1:-"$root/build/packages/ziran/build/bin"}
work=$(mktemp -d "$root/build/settings-mutation-test.XXXXXX")
trap 'rm -rf "$work"' EXIT HUP INT TERM
cd "$root"
sh "$root/scripts/run-ziran.sh" "$bin/ziran" build --project --offline ${PACKAGE_FLAGS:-} \
--target=c --no-main --root "$root" \
-o "$work/c" "$root/tests/settings_mutation_behavior.zi"
find "$work/c" -name '*.c' -type f -exec sh -c 'exec "$@" -lm' sh \
"${CC:-cc}" -std=c11 -ffunction-sections -fdata-sections \
-Wl,--gc-sections -Wl,--wrap=save_settings -Wl,--wrap=LocaleText \
-I"$root/build/packages/ziran/include" -I"$work/c" -I"$work/c/tests" \
-o "$work/test" {} +
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY "$work/test"
echo "Settings reminder edits/addition and break timer mutations passed"