LaiNES icon indicating copy to clipboard operation
LaiNES copied to clipboard

Add some tests

Open AndreaOrru opened this issue 8 years ago • 5 comments

At least check if it compiles correctly.

AndreaOrru avatar Nov 29 '16 10:11 AndreaOrru

I would be super interested in tiny unit tests for each mapper. They'd have to be 6502, and the unit test suite would load each up. Then they would run their tests, and write the result to a special memory address to let the test suite know.

Does this even make sense?

kraln avatar Nov 29 '16 12:11 kraln

Yes it does. Good stuff.

AndreaOrru avatar Nov 29 '16 14:11 AndreaOrru

I found a fairly exhaustive set of tests called "Holy Diver Batman" It covers SxROM (1), UxROM (2), TxROM (4), AxROM (7), PNROM (9), FxROM (10), INL-ROM Action 53 (28), BNROM (34), NROM/CNROM/GNROM (66), JxROM (69), IF-12 (78.3), TxSROM (118), UxROM (180)

Binaries: http://pineight.com/nes/holydiverbatman-bin-0.01.7z Source: http://pineight.com/nes/holydiverbatman-0.01.zip

kraln avatar Dec 29 '16 19:12 kraln

Note: seems MMC1 and MMC3 fails the holy diver tests

More on testing here: https://wiki.nesdev.com/w/index.php/Emulator_tests

kraln avatar Dec 30 '16 13:12 kraln

Also good targets for testing: http://wiki.nesdev.com/w/index.php/Tricky-to-emulate_games

kraln avatar Dec 30 '16 14:12 kraln