#!/bin/bash # Milestone 5 gate: the passive gate (VDPFIFOTesting, mini sweep, one lockstep replay), # testpico and the Mars Check Program's automatic run, at the commit in at.txt. cd /data/emu/sega32x-python || exit 1 G=reference/m5/gate; B=/data/emu/images/x55/bios; PY=.venv-pypy/bin/python; MD=reference/m3/mdp-44ab15d mkdir -p $G; git rev-parse --short HEAD > $G/at.txt; uptime > $G/load-start.txt run() { name=$1; shift; ( s=$(date +%s); nice "$@" > $G/$name.log 2>&1; echo "EXIT $? $(( $(date +%s) - s )) s" >> $G/$name.log ) & } run testpico $PY scripts/run_32x.py reference/build/testpico/hardware/testpico-30a5783.bin --bios-dir $B --frames 260 --out $G/testpico --save-32x 110,260 --press-reset-at 115 --report-every 10 run lockstep-castlevania $PY -m sega32x_python.harness --megadrive $MD scripts/lockstep_mame.py $MD/tests/mame_traces/genesis-castlevania run vdpfifo-genesis $PY -m sega32x_python.harness --megadrive $MD scripts/run_vdpfifotesting.py --machine genesis --verbose run sweep $PY -m sega32x_python.harness --megadrive $MD scripts/compat_sweep.py --list $MD/tests/mini_sweep.txt --window 12 --jobs 8 --baseline /data/emu/sega32x-python/reference/m1-gate/mini-without.csv --out /data/emu/sega32x-python/$G/mini-with.csv run mars-auto $PY scripts/run_32x.py reference/m3/mars.32x --bios-dir $B --frames 7100 --out $G/mars-auto --on-change 42,194,108,212 --png-every 250 --report-every 50 wait uptime > $G/load-end.txt; echo ALLDONE > $G/done.txt