Add CI tests

Resolves: #1973518
This commit is contained in:
Peng Wu 2021-06-18 13:52:39 +08:00
parent 5b87e8f9b6
commit bf8a483ee3
2 changed files with 38 additions and 0 deletions

18
tests/make_check.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -x
check_return_value () {
if [ $1 != 0 ] ; then
exit $1
fi
}
cd $1
autoreconf -f -i -v
./configure --prefix=/usr
check_return_value $?
make
check_return_value $?
make check
exit $?

20
tests/tests.yml Normal file
View File

@ -0,0 +1,20 @@
- hosts: localhost
vars:
- artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}"
tags:
- classic
remote_user: root
roles:
- role: standard-test-source # to get the source tar ball to do “make check”
- role: standard-test-basic
required_packages:
- make
- gcc
- autoconf
- automake
- libtool
- doxygen
tests:
- make-check:
dir: ./
run: bash ./make_check.sh ./source