2024-01-05 06:23:58 +00:00
|
|
|
echo "Running Test Roms..."
|
|
|
|
|
|
|
|
if ! cargo build -p meowgb-tests --release ; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
TEST_TOTAL=0
|
|
|
|
TEST_SUCCESS=0
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/blargg/serial-roms/cpu_instrs.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/blargg/serial-roms/cpu_instrs.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/blargg/cpu_instrs.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/blargg/serial-roms/instr_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/blargg/serial-roms/instr_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/blargg/instr_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/blargg/serial-roms/mem_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/blargg/serial-roms/mem_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/blargg/mem_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/add_sp_e_timing.gb"
|
2024-01-13 00:20:56 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/add_sp_e_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/add_sp_e_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/boot_hwio-dmgABCmgb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/boot_hwio-dmgABCmgb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/boot_hwio-dmgABCmgb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/boot_regs-dmgABC.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/boot_regs-dmgABC.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/boot_regs-dmgABC.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/call_cc_timing.gb"
|
2024-01-13 00:20:56 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/call_cc_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/call_cc_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-13 00:20:56 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/call_cc_timing2.gb"
|
2024-01-13 00:20:56 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/call_cc_timing2.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/call_cc_timing2.bin 2>&1 > /dev/null) ; then
|
2024-01-13 00:20:56 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/call_timing.gb"
|
2024-01-13 00:20:56 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/call_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/call_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-13 00:20:56 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/call_timing2.gb"
|
2024-01-13 00:20:56 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/call_timing2.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/call_timing2.bin 2>&1 > /dev/null) ; then
|
2024-01-13 00:20:56 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/di_timing-GS.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/di_timing-GS.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/di_timing-GS.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/div_timing.gb"
|
2024-01-12 19:19:45 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/div_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/div_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-12 19:19:45 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ei_sequence.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ei_sequence.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ei_sequence.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ei_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ei_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ei_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/halt_ime0_ei.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/halt_ime0_ei.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/halt_ime0_ei.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/halt_ime0_nointr_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/halt_ime0_nointr_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/halt_ime0_nointr_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/halt_ime1_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/halt_ime1_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/halt_ime1_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/halt_ime1_timing2-GS.gb"
|
2024-01-12 19:19:45 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/halt_ime1_timing2-GS.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/halt_ime1_timing2-GS.bin 2>&1 > /dev/null) ; then
|
2024-01-12 19:19:45 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/if_ie_registers.gb"
|
2024-01-12 19:19:45 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/if_ie_registers.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/if_ie_registers.bin 2>&1 > /dev/null) ; then
|
2024-01-12 19:19:45 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/intr_timing.gb"
|
2024-01-12 19:19:45 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/intr_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/intr_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-12 19:19:45 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/jp_cc_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/jp_cc_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/jp_cc_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/jp_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/jp_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/jp_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ld_hl_sp_e_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ld_hl_sp_e_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ld_hl_sp_e_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/oam_dma_restart.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/oam_dma_restart.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/oam_dma_restart.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/oam_dma_start.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/oam_dma_start.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/oam_dma_start.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/oam_dma_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/oam_dma_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/oam_dma_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/pop_timing.gb"
|
2024-01-12 19:19:45 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/pop_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/pop_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-12 19:19:45 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/push_timing.gb"
|
2024-01-12 19:19:45 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/push_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/push_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-12 19:19:45 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/rapid_di_ei.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/rapid_di_ei.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/rapid_di_ei.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ret_cc_timing.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ret_cc_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ret_cc_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ret_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ret_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ret_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/reti_intr_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/reti_intr_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/reti_intr_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/reti_timing.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/reti_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/reti_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
2024-01-12 19:19:45 +00:00
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/rst_timing.gb"
|
2024-01-12 19:19:45 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/rst_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/rst_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-12 19:19:45 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
2024-01-05 06:23:58 +00:00
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/bits_bank1.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/bits_bank1.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/bits_bank1.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/bits_bank2.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/bits_bank2.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/bits_bank2.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/bits_mode.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/bits_mode.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/bits_mode.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/bits_ramg.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/bits_ramg.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/bits_ramg.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/multicart_rom_8Mb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/multicart_rom_8Mb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/multicart_rom_8Mb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/ram_256kb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/ram_256kb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/ram_256kb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/ram_64kb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/ram_64kb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/ram_64kb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/rom_16Mb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/rom_16Mb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/rom_16Mb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/rom_1Mb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/rom_1Mb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/rom_1Mb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/rom_2Mb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/rom_2Mb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/rom_2Mb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/rom_4Mb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/rom_4Mb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/rom_4Mb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/rom_512kb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/rom_512kb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/rom_512kb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/MBC1/rom_8Mb.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/MBC1/rom_8Mb.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/MBC1/rom_8Mb.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/bits/mem_oam.gb"
|
2024-01-05 06:23:58 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/bits/mem_oam.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/bits/mem_oam.bin 2>&1 > /dev/null) ; then
|
2024-01-05 06:23:58 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/bits/reg_f.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/bits/reg_f.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/bits/reg_f.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/bits/unused_hwio-GS.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/bits/unused_hwio-GS.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/bits/unused_hwio-GS.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/instr/daa.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/instr/daa.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/instr/daa.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/oam_dma/basic.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/oam_dma/basic.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/oam_dma/basic.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/oam_dma/reg_read.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/oam_dma/reg_read.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/oam_dma/reg_read.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ppu/intr_1_2_timing-GS.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ppu/intr_1_2_timing-GS.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ppu/intr_1_2_timing-GS.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ppu/intr_2_0_timing.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ppu/intr_2_0_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ppu/intr_2_0_timing.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-25 17:41:36 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ppu/intr_2_mode0_timing.gb"
|
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ppu/intr_2_mode0_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ppu/intr_2_mode0_timing.bin 2>&1 > /dev/null) ; then
|
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ppu/intr_2_mode3_timing.gb"
|
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ppu/intr_2_mode3_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ppu/intr_2_mode3_timing.bin 2>&1 > /dev/null) ; then
|
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ppu/intr_2_oam_ok_timing.gb"
|
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ppu/intr_2_oam_ok_timing.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ppu/intr_2_oam_ok_timing.bin 2>&1 > /dev/null) ; then
|
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ppu/stat_irq_blocking.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ppu/stat_irq_blocking.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ppu/stat_irq_blocking.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ppu/stat_lyc_onoff.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ppu/stat_lyc_onoff.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ppu/stat_lyc_onoff.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/ppu/vblank_stat_intr-GS.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/ppu/vblank_stat_intr-GS.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/ppu/vblank_stat_intr-GS.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/div_write.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/div_write.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/div_write.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/rapid_toggle.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/rapid_toggle.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/rapid_toggle.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tim00.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tim00.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tim00.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tim00_div_trigger.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tim00_div_trigger.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tim00_div_trigger.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tim01.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tim01.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tim01.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tim01_div_trigger.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tim01_div_trigger.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tim01_div_trigger.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tim10.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tim10.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tim10.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tim10_div_trigger.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tim10_div_trigger.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tim10_div_trigger.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tim11.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tim11.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tim11.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tim11_div_trigger.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tim11_div_trigger.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tim11_div_trigger.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tima_reload.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tima_reload.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tima_reload.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tima_write_reloading.gb"
|
2024-01-15 16:34:47 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tima_write_reloading.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tima_write_reloading.bin 2>&1 > /dev/null) ; then
|
2024-01-15 16:34:47 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
echo "Running test ROM ./test-roms/mooneye-test-suite/serial-roms/timer/tma_write_reloading.gb"
|
2024-01-07 00:24:29 +00:00
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
2024-01-19 18:44:51 +00:00
|
|
|
if res=$(./target/release/meowgb-tests test-roms/mooneye-test-suite/serial-roms/timer/tma_write_reloading.gb test-serial -m 100000000 -s meowgb-tests/expected_output/serial/mooneye-test-suite/timer/tma_write_reloading.bin 2>&1 > /dev/null) ; then
|
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Running test ROM ./test-roms/hacktix/framebuffer-roms/bully.gb"
|
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
|
|
|
if res=$(./target/release/meowgb-tests test-roms/hacktix/framebuffer-roms/bully.gb test-framebuffer -m 100000000 -s meowgb-tests/expected_output/framebuffer/hacktix/bully.bin 2>&1 > /dev/null) ; then
|
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Running test ROM ./test-roms/hacktix/framebuffer-roms/strikethrough.gb"
|
|
|
|
|
|
|
|
TEST_TOTAL=$((TEST_TOTAL + 1))
|
|
|
|
|
|
|
|
if res=$(./target/release/meowgb-tests test-roms/hacktix/framebuffer-roms/strikethrough.gb test-framebuffer -m 100000000 -s meowgb-tests/expected_output/framebuffer/hacktix/strikethrough.bin 2>&1 > /dev/null) ; then
|
2024-01-07 00:24:29 +00:00
|
|
|
TEST_SUCCESS=$((TEST_SUCCESS + 1))
|
|
|
|
else
|
|
|
|
echo "Failed: $res"
|
|
|
|
fi
|
|
|
|
|
2024-01-05 06:23:58 +00:00
|
|
|
echo "Succeeded in running $TEST_SUCCESS/$TEST_TOTAL"
|