Migrate to TMT

Signed-off-by: Julien Rische <jrische@redhat.com>
This commit is contained in:
Julien Rische 2025-11-21 16:42:56 +01:00
parent a7ef5c69cc
commit 21f0a03fe9
4 changed files with 23 additions and 27 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

9
plans/tests.fmf Normal file
View File

@ -0,0 +1,9 @@
summary: Tests
discover:
how: fmf
dist-git-source: true
prepare:
how: feature
crb: enabled
execute:
how: tmt

View File

@ -1,27 +0,0 @@
---
- hosts: localhost
tags:
- classic
pre_tasks:
- name: Enable CRB for python3-pytest on 1minutetip
ini_file:
path: /etc/yum.repos.d/rhel.repo
section: rhel-CRB
option: enabled
value: "1"
create: no
ignore_errors: yes
roles:
- role: standard-test-source
required_packages:
- git
- role: standard-test-basic
required_packages:
- python3-kdcproxy
- python3-pytest
tests:
- unittests:
dir: "source"
run: >-
rm -rf kdcproxy* &&
python3 -m pytest

13
tests/unittests/main.fmf Normal file
View File

@ -0,0 +1,13 @@
summary: Unit tests
component:
- python-kdcproxy
require:
- python3-kdcproxy
- python3-pytest
test: |
setuppy_path="$(find "$TMT_SOURCE_DIR" -type f -name setup.py)"
src_path="$(dirname "$setuppy_path")"
pushd "$src_path"
python3 -m pytest
duration: 15m
enabled: true