#!/bin/bash # Runs an original and its port through compare.sh with the drive's screenshots and service walk # on, and gathers the pictures side by side under screenshots/ports// in the repository: # original-shot-.png beside port-shot-.png for the attract loop, the service # screen, a level just after a shot, the continue, and the board (FORGE.md section 14.15). # # testScripts/ports/shots.sh [frames] # # The comparison's own verdict (the traces agreeing, service walk included) is printed as well. set -u family=${1:?usage: shots.sh [frames]} game=${2:?usage: shots.sh [frames]} frames=${3:-8000} repo=$(cd "$(dirname "$0")/../.." && pwd) name=${game##*/} name=${name%.singe} out=$repo/screenshots/ports/$name rm -rf "$out" SINGE_SHOTS=$out PORT_SHOTS=1 PORT_SERVICE=1 PORT_FRAMES=$frames "$repo/testScripts/ports/compare.sh" "$family" "$game" status=$? ls "$out" 2>/dev/null | sed "s|^|$out/|" exit $status