playreel/backend/tests/run_poster_alive.sh

26 lines
968 B
Bash
Executable File

#!/usr/bin/env bash
# 축제 숏폼 — 검수 게이트 직전까지 돌린다.
# 사용: tests/run_poster_alive.sh <포스터경로>
set -euo pipefail
cd "$(dirname "$0")/.."
poster="${1:?사용: $0 <포스터경로>}"
[ -f "$poster" ] || { echo "포스터 없음: $poster" >&2; exit 1; }
run() { echo; echo "── $1 ──"; shift; uv run python -m "$@"; }
run "① detect" tests.poster_alive.test_detect "$poster"
run "② narration_text" tests.poster_alive.test_narration "$poster"
run "③ motion" tests.poster_alive.test_motion "$poster"
cat <<EOF
══ 검수 게이트 ══
.narration.txt 3문장 · 행사명이 슬로건과 바뀌지 않았는지 · metadata
.check.jpg 검출 영역
.motion.txt 움직일 요소. 0종이면 사람이 넣는다
모션 재지정: uv run python -m tests.poster_alive.test_motion "$poster" <모션키,쉼표구분>
다음: tests/run_poster_alive_after_gate.sh "$poster"
EOF