From 69684b71e6c3fc0307dded29cfdb4541f3a2a683 Mon Sep 17 00:00:00 2001 From: Tim Stirrat Date: Sun, 28 Jul 2024 16:07:52 +0200 Subject: [PATCH] try inside python --- .github/workflows/test.yml | 6 +++--- tests/test.py | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 tests/test.py 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" +])