NAME
step-test-Z80 - run single-step tests on the Z80 emulator
SYNOPSIS
step-test-Z80 [options] JSON-file...
DESCRIPTION
step-test-Z80 reads single-step test files in JSON format and runs each test on the Z80 emulator, comparing the resulting CPU state, memory, bus activity and I/O traffic against the values recorded in the file. It is the reference consumer of the test corpus produced by z80-single-step-tests(1) and by the SingleStepTests/z80 project.
Each JSON file contains an array of tests, one per instruction. A file name of - reads the tests from standard input instead.
OPTIONS
- -V, --version
- Print version and copyright information and exit.
- -h, --help
- Print a help message and exit.
- -m, --model model
- Select the CPU model to emulate. See CPU MODELS.
- -p, --pins
- Additionally compare the state of the address bus, data bus and control pins recorded in the cycles field.
- -r, --run
- Use z80_run instead of z80_execute to run the emulator. This option is available only when the Z80 library has been built with the z80_execute function.
- -s, --spec spec
- Select the test format specification. The valid values are v1 and v2 (the default).
- -t, --test-format
- Check that each JSON file is well-formed and follows the expected format, then exit without running the tests.
- -v, --verbosity level
- Set the verbosity level, from 0 (quiet) to 2 (most verbose; default: 2).
CPU MODELS
- zilog-nmos
- Zilog Z80 NMOS (the default).
- zilog-cmos
- Zilog Z80 CMOS.
- nec-nmos
- NEC NMOS.
EXIT STATUS
0 if all tests passed, 1 if any test failed or an error occurred.
AUTHOR
Manuel Sainz de Baranda y Goñi <manuel@zxe.io>.
SEE ALSO
test-Z80(1), z80-single-step-tests(1).