Re:The Infinite Loop That Wasn't
by matheusmoreira on Sunday January 26, 2020 @03:25PM
(#22154520)
These test ROMs are interesting. Since they are designed to run on real hardware that lacks debugging capabilities, the user must be able to operate the test suite and check the results manually. They aren't like modern software test suites.
According to the nesdev wiki, automation consists of playing back controller input, waiting for the tests to run, taking a screen shot of the results screen, hashing it and comparing the result to the hash of the expected results screen. This method also allows testing real games to check for reproducible bugs.
According to the nesdev wiki, automation consists of playing back controller input, waiting for the tests to run, taking a screen shot of the results screen, hashing it and comparing the result to the hash of the expected results screen. This method also allows testing real games to check for reproducible bugs.
https://wiki.nesdev.com/w/index.php/Emulator_tests#Automated...
Pretty nice. I expected the test ROM to write the results to some special location in memory and have the emulator report those results.