playreel/backend/tests/run_playreel_after_gate4.sh

32 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# Playreel 롱컷 — 게이트 ④ 승인 뒤, 게이트 ⑤(final_confirm) 직전까지.
# 사용: tests/run_playreel_after_gate4.sh <goods_id> [variant]
set -euo pipefail
cd "$(dirname "$0")/.."
goods_id="${1:?사용: $0 <goods_id> [variant]}"
variant="${2:-v1}"
config="tests/test_result/playreel/nol_${goods_id}/layer_config.json"
run() { echo; echo "── $1 ──"; shift; uv run python -m "$@"; }
if [ ! -f "$config" ]; then
run "⑩ config 생성" tests.playreel.test_build_layer_config "$goods_id"
fi
run "⑩ hybrid" tests.playreel.test_hybrid_poster "$goods_id" "$config"
run "⑪ compose" tests.playreel.test_compose_long "$goods_id" "$variant"
cat <<EOF
══ 게이트 ⑤ final_confirm — 마지막 확인 ══
longcut_${variant}.mp4 를 보고 여섯 가지를 본다
첫 프레임이 포스터 원본인가
제목이 온전한가
상세페이지가 풀프레임으로 스크롤되는가
캐스팅 스케줄이 들어갔는가
엔드밴드에 로고·CTA·QR이 있는가
나레이션이 BGM에 묻히지 않는가
다시 만들 때는 variant 를 바꾼다 — 덮어쓰기는 막혀 있다.
EOF