Automated Testing of Emulator

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Automated Testing of Emulator
by on (#211901)
Hey Guys,

Just wondering if anyone has set up any sort of automated testing using the Test ROMs from Blargg and the Mooneye emulator?

When a test finishes it seems to just loop forever and I was going to just put some loop detection in to terminate things but it seems like a lot of work just to figure out if a test finished, and that doesn't help me find out if it succeeded or not.

I haven't found much info anywhere but there must be a way to detect the ROM is finished and what the state of the test was?
Re: Automated Testing of Emulator
by on (#211902)
What do Blargg's tests write to $6000-$7FFF?
Re: Automated Testing of Emulator
by on (#211995)
I know there is a specific address used for writing output to a console or similar are you referring to that?
Re: Automated Testing of Emulator
by on (#211997)
So i do remember reading somewhere that I could at least for ROMs that I can already pass create a hash of the success screen rendered at the end of the test, plus how long it took and then use that to compare test/failure cases. But that only helps me ensure I have no regression.

It doesn't help me just run through a bunch of tests for the first time and figure out how many I'm passing/failing