Enable tmt gating plan in libverto dist-git

Resolves: RHELMISC-9585

Signed-off-by: Anuja More <amore@redhat.com>
This commit is contained in:
Anuja More 2025-03-10 19:52:45 +05:30
parent b921856f7a
commit e726fb0f1e
5 changed files with 29 additions and 31 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

4
plan.fmf Normal file
View File

@ -0,0 +1,4 @@
discover:
how: fmf
execute:
how: tmt

19
tests/driver/main.fmf Normal file
View File

@ -0,0 +1,19 @@
summary: Simple smoke test
contact: Anuja More <amore@redhat.com>
component:
- libverto
require:
- libverto
- libverto-devel
- libverto-glib-devel
- libverto-libevent-devel
- make
- rpm-build
- fmf
- wget
- autoconf
- autoconf-archive
test: ./runtest.sh
duration: 25m
enabled: true
extra-summary: tmt convert test

7
tests/driver/runtest.sh Normal file → Executable file
View File

@ -1,7 +1,10 @@
#!/bin/sh -ex
# Weird location, but okay.
cd ../source
dnf -y --nogpgcheck build-dep ../../libverto.spec
wget https://github.com/latchset/libverto/releases/download/0.3.2/libverto-0.3.2.tar.gz
tar -xvzf libverto-0.3.2.tar.gz
cd libverto-0.3.2
# Generate Makefiles, directory layout, ...
autoreconf -fiv

View File

@ -1,29 +0,0 @@
---
- hosts: localhost
tags: classic
tasks:
- name: Copy spec file to remote machine
copy:
src: "{{ playbook_dir }}/../libverto.spec"
dest: /tmp/libverto.spec
- name: Install build deps
shell: dnf -y --nogpgcheck build-dep /tmp/libverto.spec
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- libverto
- libverto-devel
- libverto-glib-devel
- libverto-libevent-devel
- make
- rpm-build
tests:
- driver