playreel/backend/tests/run_playreel.sh

24 lines
770 B
Bash
Executable File

#!/usr/bin/env bash
# Playreel 롱컷 — 게이트 ①(fetch_confirm) 직전까지 돌린다.
# 사용: tests/run_playreel.sh <goods_id>
set -euo pipefail
cd "$(dirname "$0")/.."
goods_id="${1:?사용: $0 <goods_id>}"
run() { echo; echo "── $1 ──"; shift; uv run python -m "$@"; }
run "① fetch" tests.playreel.test_fetch_nol "$goods_id"
run "② split" tests.playreel.test_split_detail "$goods_id"
run "②-부속 캐스트" tests.playreel.test_extract_cast "$goods_id"
cat <<EOF
══ 게이트 ① fetch_confirm ══
meta.json 공연명·장소·기간
sections/_sheet.jpg 섹션 태그
cast.json source=failed 면 출연진을 채워야 한다
다음: tests/run_playreel_after_gate1.sh $goods_id
EOF