41 lines
2.8 KiB
Bash
Executable File
41 lines
2.8 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# ATLAS's controlled playback test (Paul, 24 November 2026), on one TV with build 77 or later. Each case plays one episode
|
|
# through Orbit's own player under ATLAS's rule (or, for the control, under the ordinary rule), from a point with dialogue,
|
|
# for about 75 s: the log says which sound and subtitle tracks were chosen and what the subtitles drew, and two screenshots
|
|
# show it on screen. Books nothing and changes no setting; each run ends by itself and Orbit comes back as it was.
|
|
# tools/atlas-playtest.sh <adb-device>
|
|
set -uo pipefail
|
|
A=${ADB:-/opt/android-sdk/platform-tools/adb}; D=$1
|
|
OUT=/home/pauljd/Documents/OrbitTV/audits/atlas-playtest-$(date +%Y%m%d-%H%M); mkdir -p "$OUT"
|
|
# item | Orbit-style title (empty = ordinary rule, the control) | start (ms) | what it checks
|
|
CASES=(
|
|
"3180382|Squid Game / S1 E1|600000|Korean; German default and an English dub to skip"
|
|
"3180382||600000|control: the same episode on any other channel, unchanged"
|
|
"3442900|The 8 Show / S1 E1|600000|Korean; English only as SDH, ASS subtitles"
|
|
"3208818|Alice in Borderland / S1 E1|600000|Japanese"
|
|
"4278883|Gannibal / S1 E1|600000|Japanese"
|
|
"5421272|Cable Girls / S1 E1|600000|Spanish; Portuguese default to skip"
|
|
"4487128|Who Killed Sara? / S1 E1|600000|Spanish"
|
|
"3864946|Sacred Games / S1 E1|600000|Hindi"
|
|
"4253940|Delhi Crime / S1 E1|600000|Hindi"
|
|
"5290328|Money Heist / S1 E2|600000|Spanish; image-based (PGS) subtitles"
|
|
"4299241|The Killing / S1 E1|600000|Danish; image-based (PGS) subtitles"
|
|
"3282140|Shōgun / S1 E1|600000|multilingual: English-labelled mix with English subtitles"
|
|
"3338857|Signal / S1 E6|600000|control: no English subtitles, so it must be refused"
|
|
)
|
|
for c in "${CASES[@]}"; do
|
|
IFS='|' read -r item title start what <<<"$c"
|
|
[ -n "${ONLY:-}" ] && [[ ",$ONLY," != *",$item-$( [ -n "$title" ] && echo atlas || echo control ),"* ]] && continue
|
|
n=$(printf '%02d' $((${#OUT}%1))); tag="$item-$( [ -n "$title" ] && echo atlas || echo control )"
|
|
$A -s $D logcat -c
|
|
if [ -n "$title" ]; then $A -s $D shell "am start -S -n tv.orbit.classic/.MainActivity --es orbit_play_test $item --es orbit_play_test_atlas '$title' --el orbit_play_test_offset $start" >/dev/null
|
|
else $A -s $D shell "am start -S -n tv.orbit.classic/.MainActivity --es orbit_play_test $item --el orbit_play_test_offset $start" >/dev/null; fi
|
|
sleep 45; $A -s $D exec-out screencap -p > "$OUT/$tag-a.png"
|
|
sleep 30; $A -s $D exec-out screencap -p > "$OUT/$tag-b.png"
|
|
$A -s $D shell input keyevent KEYCODE_BACK; sleep 4; $A -s $D shell input keyevent KEYCODE_HOME; sleep 4
|
|
$A -s $D logcat -d -s OrbitPlayTest OrbitAtlas > "$OUT/$tag.log"
|
|
echo "== $what ($tag)" | tee -a "$OUT/summary.txt"
|
|
grep -E "OrbitAtlas|playtest tracks|playtest cue|playtest result" "$OUT/$tag.log" | sed 's/^.*: //' | tail -6 | tee -a "$OUT/summary.txt"
|
|
done
|
|
echo "Results: $OUT"
|