Spaces:
Running
Running
Download verify.sh from Reoo88/Prayer-Time-Bot: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/spaces/Reoo88/Prayer-Time-Bot/resolve/main/verify.sh
- Command line
-
hf download hf://spaces/Reoo88/Prayer-Time-Bot/verify.sh
-
curl -L -o verify.sh https://huggingface.co/spaces/Reoo88/Prayer-Time-Bot/resolve/main/verify.sh
1.53 kB
| # 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" | |