Sanity test against a few test ROMs
This commit is contained in:
parent
8e702f1452
commit
bf67811392
25
.github/actions/LICENSE
vendored
Normal file
25
.github/actions/LICENSE
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
Blargg's Test ROMs by Shay Green <gblargg@gmail.com>
|
||||
|
||||
Acid2 tests by Matt Currie under MIT:
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Matt Currie
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
BIN
.github/actions/cgb-acid2.gbc
vendored
Normal file
BIN
.github/actions/cgb-acid2.gbc
vendored
Normal file
Binary file not shown.
BIN
.github/actions/cgb_sound.gb
vendored
Normal file
BIN
.github/actions/cgb_sound.gb
vendored
Normal file
Binary file not shown.
BIN
.github/actions/dmg-acid2.gb
vendored
Normal file
BIN
.github/actions/dmg-acid2.gb
vendored
Normal file
Binary file not shown.
BIN
.github/actions/dmg_sound-2.gb
vendored
Executable file
BIN
.github/actions/dmg_sound-2.gb
vendored
Executable file
Binary file not shown.
BIN
.github/actions/oam_bug-2.gb
vendored
Executable file
BIN
.github/actions/oam_bug-2.gb
vendored
Executable file
Binary file not shown.
29
.github/actions/sanity_tests.sh
vendored
Executable file
29
.github/actions/sanity_tests.sh
vendored
Executable file
@ -0,0 +1,29 @@
|
||||
./build/bin/tester/sameboy_tester --jobs 5 \
|
||||
--length 40 .github/actions/cgb_sound.gb \
|
||||
--length 10 .github/actions/cgb-acid2.gbc \
|
||||
--length 10 .github/actions/dmg-acid2.gb \
|
||||
--dmg --length 40 .github/actions/dmg_sound-2.gb \
|
||||
--dmg --length 20 .github/actions/oam_bug-2.gb
|
||||
|
||||
mv .github/actions/dmg{,-mode}-acid2.bmp
|
||||
|
||||
./build/bin/tester/sameboy_tester \
|
||||
--dmg --length 10 .github/actions/dmg-acid2.gb
|
||||
|
||||
FAILED_TESTS=`
|
||||
shasum .github/actions/*.bmp | grep -E -v \(\
|
||||
44ce0c7d49254df0637849c9155080ac7dc3ef3d\ \ .github/actions/cgb-acid2.bmp\|\
|
||||
dbcc438dcea13b5d1b80c5cd06bda2592cc5d9e0\ \ .github/actions/cgb_sound.bmp\|\
|
||||
0caadf9634e40247ae9c15ff71992e8f77bbf89e\ \ .github/actions/dmg-acid2.bmp\|\
|
||||
c50daed36c57a8170ff362042694786676350997\ \ .github/actions/dmg-mode-acid2.bmp\|\
|
||||
c9e944b7e01078bdeba1819bc2fa9372b111f52d\ \ .github/actions/dmg_sound-2.bmp\|\
|
||||
f0172cc91867d3343fbd113a2bb98100074be0de\ \ .github/actions/oam_bug-2.bmp\
|
||||
\)`
|
||||
|
||||
if [ -n "$FAILED_TESTS" ] ; then
|
||||
echo "Failed the following tests:"
|
||||
echo $FAILED_TESTS | tr " " "\n" | grep -o -E "[^/]+\.bmp" | sed s/.bmp// | sort
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo Passed all tests
|
@ -1,4 +1,4 @@
|
||||
name: "Bulidability"
|
||||
name: "Bulidability and Sanity"
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
@ -23,7 +23,11 @@ jobs:
|
||||
./.github/actions/install_deps.sh ${{ matrix.os }}
|
||||
- name: Build
|
||||
run: |
|
||||
${{ matrix.cc }} -v; make sdl libretro ${{ matrix.extra_target }} -j CONF=release CC=${{ matrix.cc }}
|
||||
${{ matrix.cc }} -v; make sdl tester libretro ${{ matrix.extra_target }} -j CONF=release CC=${{ matrix.cc }}
|
||||
- name: Sanity tests
|
||||
shell: bash
|
||||
run: |
|
||||
./.github/actions/sanity_tests.sh
|
||||
- name: Upload binaries
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
Loading…
Reference in New Issue
Block a user