Skip to content

Commit

Permalink
try inside python
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat committed Jul 28, 2024
1 parent c29e9c3 commit 69684b7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
@@ -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"
])

0 comments on commit 69684b7

Please sign in to comment.