10 lines
457 B
Bash
10 lines
457 B
Bash
#!/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)
|