From 915959d2e703750660f06a25a657aea77cf76648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zachar?= Date: Mon, 13 Oct 2025 11:45:33 +0200 Subject: [PATCH] Add gating --- .fmf/version | 1 + gating.yaml | 6 ++++++ plan.fmf | 19 +++++++++++++++++++ tests/tests.yml | 16 ---------------- 4 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 .fmf/version create mode 100644 gating.yaml 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/gating.yaml b/gating.yaml new file mode 100644 index 0000000..2c7ed80 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-* +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plan.fmf b/plan.fmf new file mode 100644 index 0000000..1cd4cd7 --- /dev/null +++ b/plan.fmf @@ -0,0 +1,19 @@ +execute: + how: tmt + +discover: + how: shell + dist-git-source: true + dist-git-require: + - cargo + - rust-toolset + tests: + - name: unit + require: + - python3.14-pytest + - python3.14-setuptools-rust + test: | + cd $(dirname $TMT_SOURCE_DIR/setuptools*/tests) + # Drop crates.io replacement + sed '/source.crates-io/,$d' -i .cargo/config.toml + pytest-3.14 tests/ setuptools_rust/ --import-mode importlib diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index fea4f0e..0000000 --- a/tests/tests.yml +++ /dev/null @@ -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