#!/bin/sh # SPDX-License-Identifier: MIT # Milestone 3: Atari800 frame comparison for a list of smoke titles (No-Intro names). # usage: scripts/smoke_compare.sh FRAME OUTFILE "Title 1" "Title 2" ... # Runs one comparison at a time (the machine is shared); PNGs go to tests/detector_runs/smoke/. set -u frame=$1 out=$2 shift 2 : "${NO_INTRO_DIR:?set NO_INTRO_DIR to the No-Intro root (its 'Atari - Atari 5200' folder is read)}" dir="$NO_INTRO_DIR/Atari - Atari 5200" root=$(dirname "$0")/.. for title in "$@"; do nice -n 19 "$root/.venv-pypy/bin/python" "$root/scripts/compare_atari800.py" \ "$dir/$title.zip" --frame "$frame" --png-dir "$root/tests/detector_runs/smoke" >>"$out" 2>&1 \ || echo "$title: comparison failed" >>"$out" done echo done >>"$out"