diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a1bd5e7..d2b6bb5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,12 +37,12 @@ jobs: make ls build - name: test single rom - shell: bash + # shell: bash run: | cd tests - ../bgb/bgb64.exe -set "DebugSrcBrk=1" -hf -stateonexit -screenonexit build/wav_test_load_and_play.bmp build/wav_test_load_and_play.gb + python test.py - name: pytest - shell: bash + # shell: bash run: | cd tests pytest -v -s diff --git a/tests/test.py b/tests/test.py new file mode 100644 index 0000000..ff7973a --- /dev/null +++ b/tests/test.py @@ -0,0 +1,12 @@ +import os + + +os.subprocess.run([ + "../bgb/bgb64.exe", + "-set \"DebugSrcBrk=1\"", + "-autoexit", + "-hf", + "-stateonexit", + "-screenonexit", "build/wav_test_load_and_play.bmp" + "build/wav_test_load_and_play.gb" +])