#!/usr/bin/env bash
set -euo pipefail

cd /home/xsl/product
PY="/home/xsl/miniconda3/envs/MuseTalk/bin/python"

echo "[1/6] service status"
bash scripts/service.sh status || true

echo "[2/6] quick pipeline qa"
"$PY" scripts/qa_check.py --base-url "https://127.0.0.1:8080" --rounds 5

echo "[3/6] llm fallback"
"$PY" scripts/llm_fallback_check.py

echo "[4/6] vad check"
"$PY" scripts/vad_check.py

echo "[5/6] tts stress"
"$PY" scripts/tts_stress.py

echo "[6/6] smoke media output"
"$PY" scripts/smoke_test.py --text "全链路验收测试，请简短回复"

echo "all checks finished."
