7.5 Beyond screenshots¶
Screenshots are the general-purpose check, but they are not the only one.
--magic-portturns a chosen I/O port into a debug channel: your program writes to it, JNEXT prints to stderr. With--magic-port-mode lineit buffers until a CR/LF, which makes it aprintfyour test can grep. JNEXT uses exactly this intest/00regression/scripts/magic-port-func.sh.--magic-breakpointlets a program halt the emulator from inside itself (see chapter 6).--delayed-snapshotsaves machine state rather than a picture, at a frame you choose — useful when what you want to assert is memory, not pixels.--delayed-pok-frameswith--pok-trainersapplies cheats from a.pokfile at a frame you choose, so a run can be taken from "infinite lives" to a snapshot or a picture (see 5.11).--wav-recordcaptures the mixed audio, including headless, so a sound change can be regression-tested too.- RZX (
--rzx-record/--rzx-play) replays a whole recorded session input-for-input. --esxdos-stub-rootgives a directly loaded NEX a real host directory to read its data files from, so a test fixture does not have to be copied into the SD-card image first (see 5.8; note NextZXOS itself cannot see that directory).
The full option list is in jnext(1).