chore: automatically run regression tests on pull request
This commit is contained in:
committed by
GitHub
parent
0c5995bd72
commit
d76551ce39
21
.github/workflows/tests.yml
vendored
Normal file
21
.github/workflows/tests.yml
vendored
Normal 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
|
||||||
@@ -11,7 +11,7 @@ ISODIR=/var/tmp/regtest
|
|||||||
if ! test -d $ISODIR; then
|
if ! test -d $ISODIR; then
|
||||||
echo "$ISODIR does not exist."
|
echo "$ISODIR does not exist."
|
||||||
echo "Please create it manually, or edit common.bash"
|
echo "Please create it manually, or edit common.bash"
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LOGDIR="/dev/shm"
|
LOGDIR="/dev/shm"
|
||||||
@@ -45,7 +45,7 @@ fi
|
|||||||
|
|
||||||
if test "$1" == "--help" || test "$1" == "-h"; then
|
if test "$1" == "--help" || test "$1" == "-h"; then
|
||||||
echo "Usage: $0 [gui] [all|cont <test case>]"
|
echo "Usage: $0 [gui] [all|cont <test case>]"
|
||||||
exit 0;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
doall="no"
|
doall="no"
|
||||||
@@ -78,7 +78,7 @@ if test -x $NEWVER; then
|
|||||||
echo "OK"
|
echo "OK"
|
||||||
else
|
else
|
||||||
echo "missing."
|
echo "missing."
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Helper functions
|
### Helper functions
|
||||||
|
|||||||
Reference in New Issue
Block a user