SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
.github/actions/sanity_tests.sh
1 #!/bin/sh
2
3 set -e
4
5 ./build/bin/tester/sameboy_tester --jobs 5 \
6 --length 45 .github/actions/cgb_sound.gb \
7 --length 10 .github/actions/cgb-acid2.gbc \
8 --length 10 .github/actions/dmg-acid2.gb \
9 --dmg --length 45 .github/actions/dmg_sound-2.gb \
10 --dmg --length 20 .github/actions/oam_bug-2.gb
11
12 mv .github/actions/dmg-acid2.bmp .github/actions/dmg-mode-acid2.bmp
13
14 ./build/bin/tester/sameboy_tester \
15 --dmg --length 10 .github/actions/dmg-acid2.gb
16
17 set +e
18
19 FAILED_TESTS=`
20 shasum .github/actions/*.bmp | grep -E -v \(\
21 64c3fd9a5fe9aee40fe15f3371029c0d2f20f5bc\ \ .github/actions/cgb-acid2.bmp\|\
22 dbcc438dcea13b5d1b80c5cd06bda2592cc5d9e0\ \ .github/actions/cgb_sound.bmp\|\
23 0caadf9634e40247ae9c15ff71992e8f77bbf89e\ \ .github/actions/dmg-acid2.bmp\|\
24 fbdb5e342bfdd2edda3ea5601d35d0ca60d18034\ \ .github/actions/dmg-mode-acid2.bmp\|\
25 c9e944b7e01078bdeba1819bc2fa9372b111f52d\ \ .github/actions/dmg_sound-2.bmp\|\
26 f0172cc91867d3343fbd113a2bb98100074be0de\ \ .github/actions/oam_bug-2.bmp\
27 \)`
28
29 if [ -n "$FAILED_TESTS" ] ; then
30 echo "Failed the following tests:"
31 echo $FAILED_TESTS | tr " " "\n" | grep -o -E "[^/]+\.bmp" | sed s/.bmp// | sort
32 exit 1
33 fi
34
35 echo Passed all tests
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.