#!/bin/bash # Final-commit runs of Chaotix and Spider-Man, with PRI logged and the Mega Drive's frame. cd /data/emu/sega32x-python || exit 1 F=reference/m4/final; R=reference/m4 P=""; for p in $(seq 300 300 2700); do P="$P --press $p:start:6"; done run() { name=$1; frames=$2; ( s=$(date +%s); nice .venv-pypy/bin/python scripts/run_32x.py $R/$name.32x --bios-dir /data/emu/images/x55/bios --frames $frames --out $F/$name --png-every 50 --report-every 50 $P > $F/$name.log 2>&1; echo "EXIT $? $(( $(date +%s) - s )) s at $(git rev-parse --short HEAD)" >> $F/$name.log ) & } run chaotix 1810 run spider 2300 wait