Migrate to tmt test
Migrate to tmt test Resolves: RHEL-118277 Signed-off-by: Kate Hsuan <hpa@redhat.com>
This commit is contained in:
parent
7f3f90fa5b
commit
8d7cc496da
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
13
bolt.spec
13
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 <hpa@redhat.com> - 0.9.7-1
|
||||
- Update to upstream release 0.9.7
|
||||
|
||||
12
tests/main.fmf
Normal file
12
tests/main.fmf
Normal 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
|
||||
@ -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
|
||||
Loading…
Reference in New Issue
Block a user