Skip to content

Commit

Permalink
Merge pull request #14 from Amjad50/new_tests
Browse files Browse the repository at this point in the history
Testing: added new tests and improvements
  • Loading branch information
Amjad50 authored Mar 13, 2024
2 parents d2924db + f4a88e0 commit 5ce71f0
Show file tree
Hide file tree
Showing 12 changed files with 1,210 additions and 69 deletions.
536 changes: 534 additions & 2 deletions TESTING.md

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions mizu-core/src/tests/acid2_test.rs

This file was deleted.

21 changes: 13 additions & 8 deletions mizu-core/src/tests/blargg_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,44 @@ gb_tests!(
// FIXME: the test passes but the screen is not correct
// the label for test 11 does not show "OK"
blargg_cpu_instrs,
"blargg-gb-tests/cpu_instrs/cpu_instrs.gb",
"blargg/cpu_instrs/cpu_instrs.gb",
16599394073517471602,
3892107528677358037;

blargg_instr_timing,
"blargg-gb-tests/instr_timing/instr_timing.gb",
"blargg/instr_timing/instr_timing.gb",
14586804626949338345,
14586804626949338345;

blargg_halt_bug,
"blargg-gb-tests/halt_bug.gb",
"blargg/halt_bug.gb",
3778129031474618196,
3778129031474618196;

blargg_mem_timing,
"blargg/mem_timing/mem_timing.gb",
12641521912361914783,
12641521912361914783;

blargg_mem_timing_2,
"blargg-gb-tests/mem_timing-2/mem_timing.gb",
"blargg/mem_timing-2/mem_timing.gb",
12164226896603567743,
12164226896603567743;

blargg_dmg_sound_all for dmg,
"blargg-gb-tests/dmg_sound/dmg_sound.gb",
"blargg/dmg_sound/dmg_sound.gb",
9608420910100250529,
0; // cannot test on CGB as it goes into `STOP` for some reason

blargg_cgb_sound_all,
"blargg-gb-tests/cgb_sound/cgb_sound.gb",
"blargg/cgb_sound/cgb_sound.gb",
18396380547272095665, // some tests only should fail in DMG (check which are failing)
4141669196667164762;

// FIXME: the test passes but the screen is not correct
// it shows the numbers, but doesn't print "Passed"
blargg_interrupt_time for cgb,
"blargg-gb-tests/interrupt_time/interrupt_time.gb",
"blargg/interrupt_time/interrupt_time.gb",
0, // this test is designed for cgb
3220739068587521835;
);
Expand All @@ -48,7 +53,7 @@ fn blargg_oam_bug_all() {
(false, 2687058989347279874), // cgb should fail, but with this screen
] {
let mut gb = crate::tests::TestingGameBoy::new(
"../test_roms/blargg-gb-tests/oam_bug/oam_bug.gb",
"../test_roms/game-boy-test-roms/blargg/oam_bug/oam_bug.gb",
is_dmg,
)
.unwrap();
Expand Down
Loading

0 comments on commit 5ce71f0

Please sign in to comment.