Migrate to tmt test

Migrate to tmt test

Resolves: RHEL-118277
Signed-off-by: Kate Hsuan <hpa@redhat.com>
This commit is contained in:
Kate Hsuan 2025-10-24 12:54:42 +08:00
parent 7f3f90fa5b
commit 8d7cc496da
4 changed files with 25 additions and 24 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -38,11 +38,19 @@ authorized as soon as they are connected. A command line tool, called
boltctl, can be used to control the daemon and perform all the above
mentioned tasks.
%package tests
Summary: Test files for bolt
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tests
Test files for bolt
%prep
%autosetup -p1
%build
%meson -Ddb-name=boltd
sed -i "s/WatchdogSec=3min/#WatchdogSec=3min/g" data/bolt.service.in
%meson -Ddb-name=boltd -Dinstall-tests=true
%meson_build
%check
@ -76,6 +84,9 @@ mentioned tasks.
%{_mandir}/man8/boltd.8*
%ghost %dir %{_localstatedir}/lib/boltd
%files tests
%{_libexecdir}/installed-tests/bolt
%changelog
* Tue Mar 26 2024 Kate Hsuan <hpa@redhat.com> - 0.9.7-1
- Update to upstream release 0.9.7

12
tests/main.fmf Normal file
View File

@ -0,0 +1,12 @@
summary:
Test for bolt
prepare:
how: install
package:
- bolt-tests
- python3-gobject-base
- python3-dbus
- python3-dbusmock
- umockdev-devel
execute:
script: tests/run-it.sh /usr/libexec/installed-tests/bolt/test-integration

View File

@ -1,23 +0,0 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- bolt
- pygobject3-devel
- python3-dbus
- python3-dbusmock
- umockdev-devel
tests:
- smoke:
dir: smoke
run: boltctl --version
- integration:
dir: .
run: ./run-it.sh source/tests/test-integration