#!/usr/bin/env bash # SPDX-License-Identifier: MIT # The gate's judges of behaviour, without the lints and tests: the die traces, the timer ROMs, # the frame hashes and the per-slice lockstep, plain and saved half way (about two minutes). # For iterating on a change; scripts/ladder.sh is the whole gate, run before a change is kept. # # scripts/quickgate.sh env: JOBS (default 2, leaving a CPU for scripts/ab.sh) set -euo pipefail cd "$(dirname "$0")/.." export A2600_PYTHON_ROOT="${A2600_PYTHON_ROOT:-$(cd .. && pwd)/a2600-python}" export MAME_HASHPATH="${MAME_HASHPATH:-$A2600_PYTHON_ROOT/reference/src/mame/hash}" JOBS=${JOBS:-2} timeout 1800 nice -n 19 cargo build --release -q -j "$JOBS" --bins timeout 1800 nice -n 19 target/release/a2600-gates die | tail -1 timeout 1800 nice -n 19 target/release/a2600-gates timers | tail -1 timeout 1800 nice -n 19 target/release/a2600-gates hashes | tail -1 timeout 3600 python3 scripts/lockstep.py --reference-cache external/refcache --jobs "$JOBS" | tail -1 timeout 3600 python3 scripts/lockstep.py --reference-cache external/refcache --jobs "$JOBS" --save-at-half | tail -1