mirror of
https://gitlab.com/veilid/veilid.git
synced 2026-10-13 01:42:13 -05:00
22 lines
767 B
Bash
Executable File
22 lines
767 B
Bash
Executable File
#!/bin/bash
|
|
pushd example 2>/dev/null
|
|
|
|
# Deadlock detection (debug-locks) is opt-in: VEILID_DEBUG_LOCKS=1 enables it.
|
|
# Off by default because its per-lock-acquire overhead inflates latency on these
|
|
# throughput-heavy tests. macos_build.sh / ios_build.sh forward
|
|
# VEILID_CARGO_EXTRA_OPTIONS through to cargo.
|
|
if [ "${VEILID_DEBUG_LOCKS:-}" = "1" ]; then
|
|
export VEILID_CARGO_EXTRA_OPTIONS="--features=veilid-flutter/debug-locks ${VEILID_CARGO_EXTRA_OPTIONS:-}"
|
|
fi
|
|
|
|
# Default to the #common=debug log tag group unless the caller overrides LOG_DIRECTIVES
|
|
case "$*" in
|
|
*LOG_DIRECTIVES*) ;;
|
|
*) set -- --dart-define=LOG_DIRECTIVES='#common=debug' "$@" ;;
|
|
esac
|
|
|
|
flutter test -r github integration_test/app_test.dart "$@"
|
|
status=$?
|
|
popd 2>/dev/null
|
|
exit $status
|