chore: automatically run regression tests on pull request

This commit is contained in:
Stéphane Lesimple
2020-08-26 09:35:35 +02:00
committed by GitHub
parent 0c5995bd72
commit d76551ce39
2 changed files with 24 additions and 3 deletions

21
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: C/C++ CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install prerequisites
run: sudo apt update && sudo apt install -y libgtk2.0-dev libglib2.0-dev
- name: configure
run: ./configure
- name: make
run: make
- name: check executability
run: ./dvdisaster --version
- name: regression tests
run: mkdir /var/tmp/regtest && ./regtest/runtests.sh

View File

@@ -11,7 +11,7 @@ ISODIR=/var/tmp/regtest
if ! test -d $ISODIR; then
echo "$ISODIR does not exist."
echo "Please create it manually, or edit common.bash"
exit 0
exit 1
fi
LOGDIR="/dev/shm"
@@ -45,7 +45,7 @@ fi
if test "$1" == "--help" || test "$1" == "-h"; then
echo "Usage: $0 [gui] [all|cont <test case>]"
exit 0;
exit 1;
fi
doall="no"
@@ -78,7 +78,7 @@ if test -x $NEWVER; then
echo "OK"
else
echo "missing."
exit 0
exit 1
fi
### Helper functions