Skip to content

Commit

Permalink
Testing: Added blargg interrupt_time test
Browse files Browse the repository at this point in the history
This was passing before, but was not documented
  • Loading branch information
Amjad50 committed Aug 11, 2023
1 parent 8e6742c commit 81993e3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
19 changes: 10 additions & 9 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ A documentation of all hardware tests tested on `mizu`.

## [Blargg tests][blargg_tests]

| Test | State |
| ------------ | ----- |
| cpu_instrs | :+1: |
| instr_timing | :+1: |
| halt_bug | :+1: |
| mem_timing-2 | :+1: |
| dmg_sound | :+1: |
| cgb_sound | :+1: |
| oam_bug | :+1: |
| Test | State |
| -------------- | ----- |
| cpu_instrs | :+1: |
| instr_timing | :+1: |
| halt_bug | :+1: |
| mem_timing-2 | :+1: |
| dmg_sound | :+1: |
| cgb_sound | :+1: |
| oam_bug | :+1: |
| interrupt_time | :+1: |

## [Scribble tests][scribbltests]

Expand Down
7 changes: 7 additions & 0 deletions mizu-core/src/tests/blargg_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ gb_tests!(
"blargg-gb-tests/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",
0, // this test is designed for cgb
3220739068587521835;
);

#[test]
Expand Down

0 comments on commit 81993e3

Please sign in to comment.