File size: 1,527 Bytes
17fefbc
2328497
17fefbc
2328497
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ce0ef24
 
 
 
 
 
 
 
 
 
 
 
7ea6aba
ce0ef24
2328497
ce0ef24
 
2328497
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/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_channel_switch.py "$ROOT"
if command -v node >/dev/null 2>&1; then
  node test_dashboard.js "$ROOT"
else
  echo "SKIP dashboard JavaScript regressions (Node.js not installed)"
fi
python3 test_regressions.py "$ROOT"
python3 test_relay.py "$ROOT"
python3 test_source_reconnect.py "$ROOT"
python3 test_ingest_routes.py "$ROOT"
python3 test_transition_ingest.py "$ROOT"
python3 test_flv_bridge.py "$ROOT"
python3 test_source_probe.py "$ROOT"
python3 test_adaptive_format.py "$ROOT"
python3 test_completion.py "$ROOT"
python3 test_telemetry.py "$ROOT"
python3 test_smart_mode.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"