From f19dac3788e3200de1ccf483905e6f943b671207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zachar?= Date: Mon, 29 Jun 2026 17:47:55 +0200 Subject: [PATCH] Convert gating to tmt --- .fmf/version | 1 + plan.fmf | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ tests/tests.yml | 36 --------------------------------- 3 files changed, 55 insertions(+), 36 deletions(-) create mode 100644 .fmf/version create mode 100644 plan.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/plan.fmf b/plan.fmf new file mode 100644 index 0000000..927287e --- /dev/null +++ b/plan.fmf @@ -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 + diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 495e5f8..0000000 --- a/tests/tests.yml +++ /dev/null @@ -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