Convert gating to tmt

This commit is contained in:
Lukáš Zachar 2026-06-29 17:47:55 +02:00
parent 422fdc45f4
commit f19dac3788
3 changed files with 55 additions and 36 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

54
plan.fmf Normal file
View File

@ -0,0 +1,54 @@
execute:
how: tmt
discover:
- name: same_repo
how: shell
tests:
- name: import_test
test: python3 -c "import setuptools"
require:
- python3-setuptools
- name: python
how: shell
url: https://gitlab.com/redhat/centos-stream/tests/python.git
tests:
- name: smoke312
path: /smoke
test: VERSION=3.12 ./venv.sh
- name: smoke312_virtualenv
path: /smoke
test: VERSION=3.12 METHOD=virtualenv ./venv.sh
- name: pyproject-rpm-macros
how: shell
url: https://gitlab.com/redhat/centos-stream/rpms/pyproject-rpm-macros.git
tests:
- name: pyproject_pytest
path: /tests
test: ./mocktest.sh python-pytest
- name: pyproject_pluggy
path: /tests
test: ./mocktest.sh python-pluggy
prepare:
- name: enable epel
how: feature
epel: enabled
- name: install packages
how: install
package:
- gcc
- virtualenv
- python3.12
- python3-devel
- tox
- mock
- rpmdevtools
- rpm-build

View File

@ -1,36 +0,0 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://gitlab.com/redhat/centos-stream/tests/python.git"
dest: "python"
- repo: "https://gitlab.com/redhat/centos-stream/rpms/pyproject-rpm-macros.git"
dest: "pyproject-rpm-macros"
tests:
- smoke312:
dir: python/smoke
run: VERSION=3.12 ./venv.sh
- smoke312_virtualenv:
dir: python/smoke
run: VERSION=3.12 METHOD=virtualenv ./venv.sh
- pyproject_pytest:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-pytest
- pyproject_pluggy:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-pluggy
- import_test:
run: python3 -c "import setuptools"
required_packages:
- https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
- gcc
- virtualenv
- python3.12
- python3-devel
- tox
- mock
- rpmdevtools
- rpm-build