From 8d7cc496da547347a717e67a584907fdd6bd4e1d Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Fri, 24 Oct 2025 12:54:42 +0800 Subject: [PATCH] Migrate to tmt test Migrate to tmt test Resolves: RHEL-118277 Signed-off-by: Kate Hsuan --- .fmf/version | 1 + bolt.spec | 13 ++++++++++++- tests/main.fmf | 12 ++++++++++++ tests/tests.yml | 23 ----------------------- 4 files changed, 25 insertions(+), 24 deletions(-) create mode 100644 .fmf/version create mode 100644 tests/main.fmf delete mode 100644 tests/tests.yml diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/bolt.spec b/bolt.spec index c02ae59..b4fdffa 100644 --- a/bolt.spec +++ b/bolt.spec @@ -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 - 0.9.7-1 - Update to upstream release 0.9.7 diff --git a/tests/main.fmf b/tests/main.fmf new file mode 100644 index 0000000..9ebcc14 --- /dev/null +++ b/tests/main.fmf @@ -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 \ No newline at end of file diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index c3c996b..0000000 --- a/tests/tests.yml +++ /dev/null @@ -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