CI: Drop STI and use tmt instead
Use 'discovery --how shell' for bash completion test as well, even though it contains metadata, to be same as all other migrated plans. Resolves: rhbz#2383041 [skip changelog]
This commit is contained in:
parent
69759f2972
commit
c830f0f9ae
3 changed files with 105 additions and 97 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
104
plan.fmf
Normal file
104
plan.fmf
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
execute:
|
||||
how: tmt
|
||||
|
||||
discover:
|
||||
- name: tests_python
|
||||
how: shell
|
||||
url: https://src.fedoraproject.org/tests/python.git
|
||||
tests:
|
||||
- name: smoke36
|
||||
path: /smoke
|
||||
test: VERSION=3.6 TOX=false ./venv.sh
|
||||
- name: smoke39
|
||||
path: /smoke
|
||||
test: VERSION=3.9 ./venv.sh
|
||||
- name: smoke310
|
||||
path: /smoke
|
||||
test: VERSION=3.10 ./venv.sh
|
||||
- name: smoke311
|
||||
path: /smoke
|
||||
test: VERSION=3.11 ./venv.sh
|
||||
- name: smoke312
|
||||
path: /smoke
|
||||
test: VERSION=3.12 ./venv.sh
|
||||
- name: smoke313
|
||||
path: /smoke
|
||||
test: VERSION=3.13 ./venv.sh
|
||||
- name: smoke314
|
||||
path: /smoke
|
||||
test: VERSION=3.14 ./venv.sh
|
||||
- name: smoke39_virtualenv
|
||||
path: /smoke
|
||||
test: VERSION=3.9 METHOD=virtualenv ./venv.sh
|
||||
- name: smoke310_virtualenv
|
||||
path: /smoke
|
||||
test: VERSION=3.10 METHOD=virtualenv ./venv.sh
|
||||
- name: smoke311_virtualenv
|
||||
path: /smoke
|
||||
test: VERSION=3.11 METHOD=virtualenv ./venv.sh
|
||||
- name: smoke312_virtualenv
|
||||
path: /smoke
|
||||
test: VERSION=3.12 METHOD=virtualenv ./venv.sh
|
||||
- name: smoke313_virtualenv
|
||||
path: /smoke
|
||||
test: VERSION=3.13 METHOD=virtualenv ./venv.sh
|
||||
- name: smoke314_virtualenv
|
||||
path: /smoke
|
||||
test: VERSION=3.14 METHOD=virtualenv ./venv.sh
|
||||
- name: rpms_pyproject-rpm-macros
|
||||
how: shell
|
||||
url: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git
|
||||
tests:
|
||||
- name: pyproject_pytest
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-pytest
|
||||
- name: pyproject_entrypoints
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-entrypoints
|
||||
- name: pyproject_pluggy
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-pluggy
|
||||
- name: pyproject_clikit
|
||||
path: /tests
|
||||
test: ./mocktest.sh python-clikit
|
||||
- name: same_repo
|
||||
how: shell
|
||||
dist-git-source: true
|
||||
dist-git-download-only: true
|
||||
tests:
|
||||
- name: mock_bootstrap_build
|
||||
test: |
|
||||
cd $TMT_SOURCE_DIR &&
|
||||
$TMT_TREE/../discover/rpms_pyproject-rpm-macros/tests/tests/mocktest.sh python-pip --without tests --without man
|
||||
- name: pip_install_upgrade
|
||||
path: /tests/pip_install_upgrade/
|
||||
test: ./runtest.sh
|
||||
- name: bash_completion
|
||||
path: /tests/bash_completion
|
||||
test: ./pip_completion_full_test.sh
|
||||
prepare:
|
||||
- name: Install dependencies
|
||||
how: install
|
||||
package:
|
||||
- gcc
|
||||
- virtualenv
|
||||
- python3.6
|
||||
- python3.9
|
||||
- python3.10-devel
|
||||
- python3.11-devel
|
||||
- python3.12-devel
|
||||
- python3.13-devel
|
||||
- python3.14-devel
|
||||
- python3-devel
|
||||
- python3-tox
|
||||
- mock
|
||||
- rpmdevtools
|
||||
- rpm-build
|
||||
- grep
|
||||
- util-linux
|
||||
- shadow-utils
|
||||
- expect
|
||||
- dnf
|
||||
- name: Update packages
|
||||
how: shell
|
||||
script: dnf upgrade -y
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
pre_tasks:
|
||||
- import_role:
|
||||
name: standard-test-source
|
||||
vars:
|
||||
fetch_only: True
|
||||
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
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:
|
||||
- smoke36:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.6 TOX=false ./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
|
||||
- smoke312:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.12 ./venv.sh
|
||||
- smoke313:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.13 ./venv.sh
|
||||
- smoke314:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.14 ./venv.sh
|
||||
- smoke39_virtualenv:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.9 METHOD=virtualenv ./venv.sh
|
||||
- smoke310_virtualenv:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.10 METHOD=virtualenv ./venv.sh
|
||||
- smoke311_virtualenv:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.11 METHOD=virtualenv ./venv.sh
|
||||
- smoke312_virtualenv:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.12 METHOD=virtualenv ./venv.sh
|
||||
- smoke313_virtualenv:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.13 METHOD=virtualenv ./venv.sh
|
||||
- smoke314_virtualenv:
|
||||
dir: python/smoke
|
||||
run: VERSION=3.14 METHOD=virtualenv ./venv.sh
|
||||
- mock_bootstrap_build:
|
||||
dir: .
|
||||
run: pyproject-rpm-macros/tests/mocktest.sh python-pip --without tests --without man
|
||||
- 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
|
||||
- pip_install_upgrade
|
||||
- bash_completion:
|
||||
dir: tests/bash_completion
|
||||
run: ./pip_completion_full_test.sh
|
||||
required_packages:
|
||||
- gcc
|
||||
- virtualenv
|
||||
- python3.6
|
||||
- python3.9
|
||||
- python3.10-devel
|
||||
- python3.11-devel
|
||||
- python3.12-devel
|
||||
- python3.13-devel
|
||||
- python3.14-devel
|
||||
- python3-devel
|
||||
- python3-tox
|
||||
- mock
|
||||
- rpmdevtools
|
||||
- rpm-build
|
||||
- grep
|
||||
- util-linux
|
||||
- shadow-utils
|
||||
- expect
|
||||
Loading…
Add table
Add a link
Reference in a new issue