diff --git a/scripts/run_book01_test.sh b/scripts/run_book01_test.sh new file mode 100755 index 0000000..e29f252 --- /dev/null +++ b/scripts/run_book01_test.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Fetches the current book01 cast and compares it against the manual baseline. +# Run this once the re-cast has finished (Studio shows the cast complete). +set -e +CD=/home/sparky/Docker/tts-voice-creator-clone-and-design-2 +B1=ffa33211681d46f1827663bb0aa76390 +curl -s "http://localhost:7890/api/reader/docs/$B1/scripts/cast" -o /tmp/book01_AFTER.json +python3 "$CD/scripts/compare_casts.py" /tmp/book01_BEFORE.json /tmp/book01_AFTER.json