From f6c72f31dc684e6c2b69586e6cf584a1e45a19f6 Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Sep 14 2022 09:31:22 +0000 Subject: [PATCH 1/2] Example plan for the shared virtualenv tests --- 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/plans/venv.fmf b/plans/venv.fmf new file mode 100644 index 0000000..08b0c29 --- /dev/null +++ b/plans/venv.fmf @@ -0,0 +1,8 @@ +summary: Test virtual environments +discover: + how: fmf + url: https://src.fedoraproject.org/forks/psss/tests/python.git + ref: tmt + filter: component:python-tox +execute: + how: tmt From 1bdcdc64c8a479bc0f2686f21d28294a6d527ab8 Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Sep 14 2022 09:32:03 +0000 Subject: [PATCH 2/2] Remove STI config in order to enable tmt tests --- diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 74d78f5..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,94 +0,0 @@ ---- -- hosts: localhost - tags: - - classic - tasks: - - dnf: - name: "*" - state: latest - -- hosts: localhost - tags: - - classic - pre_tasks: - - import_role: - name: standard-test-source - vars: - fetch_only: True - - roles: - - role: standard-test-basic - repositories: - - repo: "https://src.fedoraproject.org/tests/python.git" - dest: "python" - - repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git" - dest: "pyproject-rpm-macros" - tests: - - mock_with_tests: - dir: . - run: pyproject-rpm-macros/tests/mocktest.sh python-tox --enable-network --with tests - - all_supplementing_pythons: - dir: tests - run: ./all_supplementing_pythons.py - - smoke27: - dir: python/smoke - run: VERSION=2.7 METHOD=virtualenv ./venv.sh - - smoke35_optional: - dir: python/smoke - run: VERSION=3.5 INSTALL_OR_SKIP=true ./venv.sh - - smoke36: - dir: python/smoke - run: VERSION=3.6 ./venv.sh - - smoke37: - dir: python/smoke - run: VERSION=3.7 ./venv.sh - - smoke38: - dir: python/smoke - run: VERSION=3.8 ./venv.sh - - smoke39: - dir: python/smoke - run: VERSION=3.9 ./venv.sh - - smoke310: - dir: python/smoke - run: VERSION=3.10 ./venv.sh - - smoke311: - dir: python/smoke - run: VERSION=3.11 ./venv.sh - - smoke_pypy37: - dir: python/smoke - run: PYTHON=pypy3.7 VERSION=3.7 ./venv.sh - - smoke_pypy38: - dir: python/smoke - run: PYTHON=pypy3.8 VERSION=3.8 ./venv.sh - - smoke_pypy39: - dir: python/smoke - run: PYTHON=pypy3.9 VERSION=3.9 ./venv.sh - - pyproject_pytest: - dir: pyproject-rpm-macros/tests - run: ./mocktest.sh python-pytest - - pyproject_pluggy: - dir: pyproject-rpm-macros/tests - run: ./mocktest.sh python-pluggy - - pyproject_openqa_client: - dir: pyproject-rpm-macros/tests - run: ./mocktest.sh python-openqa_client - required_packages: - - gcc - - virtualenv - - python2.7 - - python3.6 - - python3.7 - - python3.8 - - python3.9 - - python3.10-devel - - python3.11-devel - - python2-devel - - pypy3.7-devel - - pypy3.8-devel - - pypy3.9-devel - - python3-tox - - dnf - - mock - - rpmdevtools - - rpm-build - - python3-pyyaml