Add gating configuration

This commit is contained in:
Tomáš Hrnčiar 2024-01-10 15:53:18 +01:00
parent fb72fbe567
commit b6a539f602
4 changed files with 25 additions and 41 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -1,7 +1,8 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

19
plan.fmf Normal file
View File

@ -0,0 +1,19 @@
execute:
how: tmt
prepare:
how: shell
script: pip-3.12 install pretend==1.0.9
order: 90
discover:
how: shell
dist-git-source: true
tests:
- name: bundled tests
require:
- python3.12-pytest
- python3.12-pip
test: |
cd $(dirname $TMT_SOURCE_DIR/packaging-*/tests) &&
rm -rf packaging &&
pytest-3.12 tests/

View File

@ -1,37 +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"
- repo: "https://src.fedoraproject.org/rpms/python-rpm-generators.git"
dest: "python-rpm-generators"
tests:
- pyproject_pytest:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-pytest
- pyproject_entrypoints:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-entrypoints
- pyproject_pluggy:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-pluggy
- pyproject_clikit:
dir: pyproject-rpm-macros/tests
run: ./mocktest.sh python-clikit
- rpm_generators_unit_tests:
dir: python-rpm-generators
run: ./tests/download_data_and_run_pytest.sh
required_packages:
- fedpkg-minimal
- mock
- python3-pip
- python3-pytest
- python3-pyyaml
- python3-setuptools
- python3-wheel
- rpmdevtools
- rpm-build