Skip to content

Commit

Permalink
Run app tests with xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
subalterngames committed Aug 18, 2024
1 parent 9b4fe6b commit b5a11fe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,13 @@ jobs:
- name: Test
run: cargo test --all -- --nocapture
if: ${{ !contains(matrix.os, 'ubuntu') }}

- name: Test events
env:
SOUNDFONTS_DIRECTORY: $HOME/Documents/cacophony/soundfonts
run: |
mkdir -p ${{ env.SOUNDFONTS_DIRECTORY }}
cp -r test_files/soundfonts/* ${{ env.SOUNDFONTS_DIRECTORY }}
sudo apt install xvfb -y
for f in test_files/events/*.txt ; do echo "Quit\nQuitPanelYes" >> f && xvfb-run cargo run -- --events $f
if: matrix.os == 'ubuntu-24.04'
11 changes: 11 additions & 0 deletions test_files/events/export_keygen.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
NextPanel
AddTrack
EnableSoundFontPanel
SelectFile
NextPanel
Arm
A
NotesOff
ExportFile
a
SelectFile
Binary file not shown.

0 comments on commit b5a11fe

Please sign in to comment.