Add gating
This commit is contained in:
parent
5fd0263339
commit
6387509186
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
@ -1,7 +1,6 @@
|
|||||||
--- !Policy
|
--- !Policy
|
||||||
product_versions:
|
product_versions:
|
||||||
- fedora-*
|
- rhel-*
|
||||||
decision_context: bodhi_update_push_stable
|
decision_context: osci_compose_gate
|
||||||
subject_type: koji_build
|
|
||||||
rules:
|
rules:
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||||
|
|||||||
18
plan.fmf
Normal file
18
plan.fmf
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
||||||
|
discover:
|
||||||
|
how: shell
|
||||||
|
dist-git-source: true
|
||||||
|
tests:
|
||||||
|
- name: smoke
|
||||||
|
test: tests/smoke/runtest.sh
|
||||||
|
- name: unittests
|
||||||
|
test: |
|
||||||
|
cd $(dirname $TMT_SOURCE_DIR/packaging*/tests)
|
||||||
|
pip3.14 show pretend || pip3.14 install pretend
|
||||||
|
pytest-3.14 tests/
|
||||||
|
require:
|
||||||
|
- python3.14-packaging
|
||||||
|
- python3.14-pytest
|
||||||
|
- python3.14-pip
|
||||||
14
tests/smoke/runtest.sh
Normal file → Executable file
14
tests/smoke/runtest.sh
Normal file → Executable file
@ -4,10 +4,10 @@ set -eux
|
|||||||
# Currently there is no easy way to see the versions of installed packages.
|
# Currently there is no easy way to see the versions of installed packages.
|
||||||
# Let's list them to make sure we're testing against the correct package set.
|
# Let's list them to make sure we're testing against the correct package set.
|
||||||
rpm -qa | sort
|
rpm -qa | sort
|
||||||
python3 -c 'import packaging'
|
python3.14 -c 'import packaging'
|
||||||
python3 -c 'from packaging import version; version.Version("2.5.1rc2")'
|
python3.14 -c 'from packaging import version; version.Version("2.5.1rc2")'
|
||||||
python3 -c 'from packaging import specifiers; specifiers.SpecifierSet("~=1.0")'
|
python3.14 -c 'from packaging import specifiers; specifiers.SpecifierSet("~=1.0")'
|
||||||
python3 -c 'from packaging import markers; markers.Marker("python_version>'"'"'2'"'"'")'
|
python3.14 -c 'from packaging import markers; markers.Marker("python_version>'"'"'2'"'"'")'
|
||||||
python3 -c 'from packaging import requirements; requirements.Requirement('"'"'name[foo]>=2,<3; python_version>"2.0"'"'"')'
|
python3.14 -c 'from packaging import requirements; requirements.Requirement('"'"'name[foo]>=2,<3; python_version>"2.0"'"'"')'
|
||||||
python3 -c 'from packaging import tags; tags.Tag("py39", "none", "any")'
|
python3.14 -c 'from packaging import tags; tags.Tag("py39", "none", "any")'
|
||||||
python3 -c 'from packaging.utils import canonicalize_name; canonicalize_name("Django_foobar")'
|
python3.14 -c 'from packaging.utils import canonicalize_name; canonicalize_name("Django_foobar")'
|
||||||
|
|||||||
@ -1,40 +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
|
|
||||||
- smoke:
|
|
||||||
dir: .
|
|
||||||
run: ./smoke/runtest.sh
|
|
||||||
required_packages:
|
|
||||||
- fedpkg-minimal
|
|
||||||
- mock
|
|
||||||
- python3-pip
|
|
||||||
- python3-pytest
|
|
||||||
- python3-pyyaml
|
|
||||||
- python3-setuptools
|
|
||||||
- python3-wheel
|
|
||||||
- rpmdevtools
|
|
||||||
- rpm-build
|
|
||||||
Loading…
Reference in New Issue
Block a user