#!/usr/bin/env bash # SPDX-License-Identifier: MIT # Rung 3: the reference's 15 CPU test ROMs (its rungs 2 and 3: jsmolka arm and thumb, # alyosha-tas arm, blx, cpy, Coprocessor_14, Push_no_regs and the eight LDM^ tests) in the # minimal harness through this crate's CLI: each must pass (R12 = 0), with the printed line, # the exit status and the JSON Lines trace of every bus cycle identical to the reference CLI's. set -euo pipefail source "$(dirname "$0")/env.sh" require_reference nice -n 19 cargo build --release -q --manifest-path "$ROOT/Cargo.toml" python3 "$ROOT/scripts/rom_cli.py" --reference-cache "$REFCACHE/roms" | tail -1