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 index 282e16b..d74bf08 100644 --- a/gating.yaml +++ b/gating.yaml @@ -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} + diff --git a/plan.fmf b/plan.fmf new file mode 100644 index 0000000..e8d6993 --- /dev/null +++ b/plan.fmf @@ -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/ + diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index c89a956..0000000 --- a/tests/tests.yml +++ /dev/null @@ -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