From 2ce40657e97734b09281284766a9bcecc8617e07 Mon Sep 17 00:00:00 2001 From: Daniel Price Date: Mon, 2 Dec 2024 13:36:35 +1100 Subject: [PATCH] (testsuite) added automated run of test programs to github actions workflow --- .github/workflows/build.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8c90df4..7fe6fbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,21 @@ jobs: - name: compile and install giza run: | - ./configure - make - sudo make install + ./configure + make + sudo make install + + # Set up Xvfb for graphical tests + - name: Set up and start Xvfb + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y xvfb + Xvfb :99 -screen 0 1920x1080x24 & + export DISPLAY=:99 + + # Run tests + - name: Run test programs, pressing enter to all prompts + if: matrix.os == 'ubuntu-latest' + run: | + yes "" | make check \ No newline at end of file