Rewrite CI tests
This commit is contained in:
parent
049cc00050
commit
0b609daf29
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
6
plans/basic.fmf
Normal file
6
plans/basic.fmf
Normal file
@ -0,0 +1,6 @@
|
||||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
dist-git-source: true
|
||||
execute:
|
||||
how: tmt
|
27
tests/main.fmf
Normal file
27
tests/main.fmf
Normal file
@ -0,0 +1,27 @@
|
||||
test: bash ./make_check.sh ..
|
||||
duration: 50m
|
||||
framework: shell
|
||||
require:
|
||||
- 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
|
||||
- rpm-build
|
@ -9,6 +9,15 @@ check_return_value () {
|
||||
}
|
||||
|
||||
cd $1
|
||||
|
||||
VERSION=`rpmspec -q --srpm --qf "%{version}" ibus-libpinyin.spec 2>/dev/null`
|
||||
|
||||
if test -d ibus-libpinyin-$VERSION-build;
|
||||
then cd ibus-libpinyin-$VERSION-build;
|
||||
fi
|
||||
|
||||
cd ibus-libpinyin-$VERSION
|
||||
|
||||
./configure --prefix=/usr
|
||||
check_return_value $?
|
||||
make check
|
||||
|
@ -1,33 +0,0 @@
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user