Rewrite CI tests

This commit is contained in:
Peng Wu 2024-05-31 13:31:27 +08:00
parent 6368423dee
commit 397c22ac34
5 changed files with 38 additions and 31 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
plans/basic.fmf Normal file
View File

@ -0,0 +1,6 @@
summary: Basic smoke test
discover:
how: fmf
dist-git-source: true
execute:
how: tmt

22
tests/main.fmf Normal file
View File

@ -0,0 +1,22 @@
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++
- intltool
- gettext-devel
- libpinyin-devel
- libpinyin-tools
- python3-devel
- rpm-build

View File

@ -9,6 +9,15 @@ check_return_value () {
}
cd $1
VERSION=`rpmspec -q --srpm --qf "%{version}" ibus-libzhuyin.spec 2>/dev/null`
if test -d ibus-libzhuyin-$VERSION-build;
then cd ibus-libzhuyin-$VERSION-build;
fi
cd ibus-libzhuyin-$VERSION
./configure --prefix=/usr
check_return_value $?
make check

View File

@ -1,31 +0,0 @@
- 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
- libappstream-glib
- desktop-file-utils
- python3-gobject
- python3-gobject-base
- glib2
- gtk3
- dconf
- dbus-x11
- ibus
- ibus-devel
- gcc-c++
- intltool
- gettext-devel
- libpinyin-devel
- libpinyin-tools
- python3-devel
tests:
- make-check:
dir: ./
run: bash ./make_check.sh ./source