#!/usr/bin/env bash # SPDX-License-Identifier: MIT # Rung 1: trace lockstep against w65c02-python on short programs, every row. # Every row's opcode table against the reference's opcodes_for; then the # workout with no interrupts, and the first 300,000 boundaries of Dormann's # extended test (the row's image), his NMOS functional test and Clark's decimal # test, on W65C02S, R65C02, G65SC02 and Lynx2Cell, every bus access compared by # the reference's first_trace_divergence. Environment: scripts/env.sh. set -euo pipefail source "$(dirname "$0")/env.sh" require_reference nice -n 19 cargo build --release -q --manifest-path "$ROOT/Cargo.toml" "$REFERENCE_PYTHON" "$ROOT/scripts/check_tables.py" "$ROOT/target/release/trace" python3 "$ROOT/scripts/make_scenarios.py" --programs "$DORMANN_BUILT" "$DORMANN_FUNCTIONAL" > /dev/null exec python3 "$ROOT/scripts/lockstep.py" "$ROOT"/conformance/scenarios/tour-*.json \ "$ROOT"/external/scenarios/program-*.json --python "$REFERENCE_PYTHON" --jobs "${JOBS:-4}"