Files
meow/scripts/ffi-test.sh
T
2026-11-20 23:48:30 +01:00

11 lines
457 B
Bash
Executable File

#!/usr/bin/env bash
# Regenerate the Dart bindings, build the native library and the server, and run the
# Dart tests of the bindings in the Flutter app (../bastet).
set -euo pipefail
export PATH="$HOME/.cargo/bin:$PATH"
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
APP="$ROOT/../bastet"
(cd "$APP" && flutter_rust_bridge_codegen generate)
(cd "$ROOT" && cargo build -p meow-ffi && cargo build --bin meowsrv)
(cd "$APP" && flutter test test/meow_ffi_test.dart)