Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Neal Gompa
a3a25acdb2 Drop ExcludeArch for IBM Z to allow building there for COSMIC 2025-12-15 12:13:15 -05:00
Cristian Le
3de4a1f80e Convert STI tests to TMT (rhbz#2382901) 2025-08-21 22:15:54 +02:00
6 changed files with 32 additions and 27 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

View file

@ -7,7 +7,6 @@ Summary: D-Bus service for Fingerprint reader access
License: GPL-2.0-or-later AND GFDL-1.1-or-later
Source0: https://gitlab.freedesktop.org/libfprint/fprintd/-/archive/v%{version}/fprintd-v%{version}.tar.gz
Url: http://www.freedesktop.org/wiki/Software/fprint/fprintd
ExcludeArch: s390 s390x
BuildRequires: meson
BuildRequires: gcc

19
plans.fmf Normal file
View file

@ -0,0 +1,19 @@
summary: Run all tests
discover:
how: fmf
dist-git-source: true
dist-git-merge: true
prepare:
- name: Disable installing everything from srpm
how: install
exclude: ".*"
- name: Install the main package
how: install
package:
- fprintd
- name: "%prep requires git"
how: install
package:
- git
execute:
how: tmt

10
tests/main.fmf Normal file
View file

@ -0,0 +1,10 @@
/fprintd:
summary: Run fprintd.py
test: ./run.sh ./fprintd.py
require:
- python3-gobject-base
- python3-dbus
- python3-cairo
- dbus-daemon
- python3-dbusmock
duration: 10m

View file

@ -10,7 +10,7 @@ if [[ "$ID" = *"rhel"* ]] && [[ "$VERSION_ID" == *"8"* ]]; then
fi
# Switch into the tests directory
cd source/tests || exit 1
cd ../fprintd-*/tests || exit 1
# Run actual test
exec python3 "$@"
exec python3 "$@"

View file

@ -1,24 +0,0 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
required_packages:
- git
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- fprintd
- python3-gobject-base
- python3-dbus
- python3-cairo
- dbus-daemon
- python3-dbusmock
tests:
- fprintd:
dir: .
run: run.sh ./fprintd.py
timeout: 10m