#!/bin/sh # Relay-only checks. Recording/archive tests were removed: app.record() does not exist. set -e ROOT=$(CDPATH= cd -- "$(dirname "$0")" && pwd) cd "$ROOT" export PASSWORD="${PASSWORD:-admin}" export DATA_DIR="${DATA_DIR:-$(mktemp -d)}" export FFMPEG_PATH="${FFMPEG_PATH:-$(command -v ffmpeg || true)}" python3 - <<'PY' import pathlib, sys root = pathlib.Path('.').resolve() text = (root/'app.py').read_text() + (root/'relay.py').read_text() + (root/'youtube_manager.py').read_text() assert 'def record(' not in text, 'record() leaked into executable path' assert 'class FLVWriter' not in text assert '/api/download' not in (root/'app.py').read_text() print('PASS no recorder / no video download API') PY python3 test_concurrency.py "$ROOT" python3 test_completion.py "$ROOT" # Optional heavy tests when ffmpeg exists if command -v ffmpeg >/dev/null 2>&1; then python3 test_watchdog.py "$ROOT" python3 test_lifecycle.py "$ROOT" fi echo "verify.sh done"