Add tmt gating plan

Cherry-picked from python3.11-setuptools-rust ebe6e7980d83dded29eaade152cee9ce62f5ddd6
ebe6e7980d

Remove the Fedora test, we don't need to mockbuild cryptography.
This commit is contained in:
Lukas Zachar 2024-01-16 13:01:25 +01:00 committed by Miro Hrončok
parent 30a96f7afa
commit 8e4efdcf4e
4 changed files with 21 additions and 16 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

13
plan.fmf Normal file
View File

@ -0,0 +1,13 @@
execute:
how: tmt
discover:
how: shell
dist-git-source: true
tests:
- name: bundled tests
require:
- python3.12-pytest
- python3.12-setuptools-rust
test: |
cd $(dirname $TMT_SOURCE_DIR/setuptools-rust-*/tests) &&
pytest-3.12 tests

View File

@ -1,16 +0,0 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git"
dest: "pyproject-rpm-macros"
tests:
- mockbuild_cryptography:
dir: pyproject-rpm-macros/tests
run: fedpkg clone -a python-cryptography && cd python-cryptography && (git switch f$(rpm -q --qf '%{VERSION}' fedora-release-common) || :) && fedpkg sources && ../mocktest.sh python-cryptography
required_packages:
- fedpkg
- mock