Rewrite CI tests
This commit is contained in:
parent
579c9db88a
commit
74f2a2a1f3
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
|
13
tests/main.fmf
Normal file
13
tests/main.fmf
Normal file
@ -0,0 +1,13 @@
|
||||
test: bash ./make_check.sh ..
|
||||
duration: 50m
|
||||
framework: shell
|
||||
require:
|
||||
- make
|
||||
- gcc-c++
|
||||
- autoconf
|
||||
- automake
|
||||
- libtool
|
||||
- zlib-devel
|
||||
- lzo-devel
|
||||
- xz-devel
|
||||
- rpm-build
|
@ -9,6 +9,15 @@ check_return_value () {
|
||||
}
|
||||
|
||||
cd $1
|
||||
|
||||
VERSION=`rpmspec -q --srpm --qf "%{version}" kyotocabinet.spec 2>/dev/null`
|
||||
|
||||
if test -d kyotocabinet-$VERSION-build;
|
||||
then cd kyotocabinet-$VERSION-build;
|
||||
fi
|
||||
|
||||
cd kyotocabinet-$VERSION
|
||||
|
||||
./configure --prefix=/usr --disable-opt --enable-lzo --enable-lzma
|
||||
check_return_value $?
|
||||
make
|
||||
|
@ -1,22 +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-c++
|
||||
- autoconf
|
||||
- automake
|
||||
- libtool
|
||||
- zlib-devel
|
||||
- lzo-devel
|
||||
- xz-devel
|
||||
tests:
|
||||
- make-check:
|
||||
dir: ./
|
||||
run: bash ./make_check.sh ./source
|
Loading…
Reference in New Issue
Block a user