From a63a91de2297efc2ad83b6d38b9bae51d363c7d6 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 29 Jun 2021 13:10:06 +0800 Subject: [PATCH] Add CI tests Resolves: #1976767 --- tests/make_check.sh | 15 +++++++++++++++ tests/tests.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 tests/make_check.sh create mode 100644 tests/tests.yml diff --git a/tests/make_check.sh b/tests/make_check.sh new file mode 100644 index 0000000..7e5a313 --- /dev/null +++ b/tests/make_check.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -x + +check_return_value () { + if [ $1 != 0 ] ; then + exit $1 + fi +} + +cd $1 +./configure --prefix=/usr +check_return_value $? +make check +exit $? diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..49eab3b --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,33 @@ + - hosts: localhost + tags: + - classic + roles: + - role: standard-test-source # to get the source tar ball to do “make check” + - role: standard-test-basic + required_packages: + - make + - libappstream-glib + - desktop-file-utils + - python3-gobject + - python3-gobject-base + - glib2 + - gtk3 + - dconf + - dbus-x11 + - ibus + - ibus-devel + - gcc-c++ + - gettext-devel + - gcc + - intltool + - libtool + - pkgconfig + - sqlite-devel + - libuuid-devel + - lua-devel + - python3-devel + - libpinyin-devel + tests: + - make-check: + dir: . + run: bash ./make_check.sh ./source