#!/usr/bin/env bash
# Unit-test baseline for Opus/Speex negotiation and stream protection (task 3).
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
echo "== Opus/Speex + stream protection unit tests =="
./gradlew :app:testDebugUnitTest \
  --tests 'com.foxx.androidcast.network.transport.StreamProtectionNegotiatorTest' \
  --tests 'com.foxx.androidcast.media.AudioNegotiatorTest' \
  --tests 'com.foxx.androidcast.media.codec.*' \
  "$@"
echo "== OK =="
