Rewrite CI tests

This commit is contained in:
Peng Wu 2024-05-31 11:51:36 +08:00
parent 4485aec703
commit 1afb870393
5 changed files with 29 additions and 21 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

13
tests/main.fmf Normal file
View File

@ -0,0 +1,13 @@
test: bash ./make_check.sh ..
duration: 50m
framework: shell
require:
- make
- gcc
- autoconf
- autoconf-archive
- automake
- libtool
- doxygen
- libdatrie-devel
- rpm-build

View File

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

View File

@ -1,21 +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
- gcc
- autoconf
- automake
- libtool
- doxygen
- libdatrie-devel
tests:
- make-check:
dir: ./
run: bash ./make_check.sh ./source