From 4369d464630403b62a8240ff64e497bb7b957da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pl=C3=ADchal?= Date: Wed, 22 Jun 2022 15:22:21 +0200 Subject: [PATCH] Enable a simple python-3.11 plan Demonstrates how the `environment` key can be used for setting a common environment variable for the whole plan. --- main.fmf | 10 ++++ plans/python-3.11.fmf | 16 +++++++ selftest/main.fmf | 2 + smoke/{venv.fmf => main.fmf} | 39 +++++++--------- tests.yml | 91 ------------------------------------ 5 files changed, 45 insertions(+), 113 deletions(-) create mode 100644 plans/python-3.11.fmf create mode 100644 selftest/main.fmf rename smoke/{venv.fmf => main.fmf} (76%) delete mode 100644 tests.yml diff --git a/main.fmf b/main.fmf index 69f4373..1211603 100644 --- a/main.fmf +++ b/main.fmf @@ -2,3 +2,13 @@ contact: - Petr Šplíchal - Miro Hrončok component: [python] +require: + - gcc # for extension building in venv and selftest + - gcc-c++ # for test_cppext + - gdb # for test_gdb + - python3.11 # the test subject + - tox # for venv tests + - virtualenv # for virtualenv tests + - glibc-all-langpacks # for locale tests + - marshalparser # for testing compatibility (magic numbers) with marshalparser + - rpm # for debugging diff --git a/plans/python-3.11.fmf b/plans/python-3.11.fmf new file mode 100644 index 0000000..ca9ad7f --- /dev/null +++ b/plans/python-3.11.fmf @@ -0,0 +1,16 @@ +discover: + how: fmf + filter: component:python311 +provision: + how: container + image: fedora:36 +prepare: + how: install + package: + - python3.11 + - python3.11-test + - python3.11-tkinter +environment: + VERSION: "3.11" +execute: + how: tmt diff --git a/selftest/main.fmf b/selftest/main.fmf new file mode 100644 index 0000000..bcdbe76 --- /dev/null +++ b/selftest/main.fmf @@ -0,0 +1,2 @@ +summary: Run the selftest +test: ./parallel.sh diff --git a/smoke/venv.fmf b/smoke/main.fmf similarity index 76% rename from smoke/venv.fmf rename to smoke/main.fmf index 91fee9d..be6835c 100644 --- a/smoke/venv.fmf +++ b/smoke/main.fmf @@ -21,29 +21,24 @@ description: | * METHOD ... virtual environment creation method (venv, virtualenv) * TOX ... enable or disable the tox test (true, false) -path: smoke test: ./venv.sh - -tier: 1 -tags: [venv] - environment: - VERSION: 3.7 - METHOD: venv - TOX: true + CYTHON: "false" + duration: 10m +tier: 1 +tag: + - venv + component+: - - python2 - - python26 - - python3 - - python34 - - python35 - - python36 - - pypy - - pypy3 - - jython - - python-pip - - python-wheel - - python-setuptools - - python-virtualenv - - python-tox + - python3 + - python310 + - python311 + - pypy + - pypy3 + - jython + - python-pip + - python-wheel + - python-setuptools + - python-virtualenv + - python-tox diff --git a/tests.yml b/tests.yml deleted file mode 100644 index da26cbd..0000000 --- a/tests.yml +++ /dev/null @@ -1,91 +0,0 @@ ---- -- hosts: localhost - tags: - - classic - tasks: - - dnf: - name: "*" - state: latest - - ansible.builtin.user: - name: testuser - -- hosts: localhost - roles: - - role: standard-test-basic - tags: - - classic - tests: - - smoke_default: - dir: smoke - run: runuser testuser -c './venv.sh' - - smoke27: - dir: smoke - run: runuser testuser -c 'VERSION=2.7 METHOD=virtualenv ./venv.sh' - - smoke27_seeder_pip: - dir: smoke - run: runuser testuser -c 'VERSION=2.7 METHOD=virtualenv-seeder-pip ./venv.sh' - - smoke35: - dir: smoke - run: runuser testuser -c 'VERSION=3.5 METHOD=virtualenv-no-download INSTALL_OR_SKIP=true ./venv.sh' - - smoke36: - dir: smoke - run: runuser testuser -c 'VERSION=3.6 METHOD=venv TOX=false ./venv.sh' - - smoke37: - dir: smoke - run: runuser testuser -c 'VERSION=3.7 METHOD=venv ./venv.sh' - - smoke38: - dir: smoke - run: runuser testuser -c 'VERSION=3.8 METHOD=venv ./venv.sh' - - smoke39: - dir: smoke - run: runuser testuser -c 'VERSION=3.9 METHOD=venv ./venv.sh' - - smoke311: - dir: smoke - run: runuser testuser -c 'VERSION=3.11 METHOD=venv CYTHON=false ./venv.sh' - - smoke39_seeder_pip: - dir: smoke - run: runuser testuser -c 'VERSION=3.9 METHOD=virtualenv-seeder-pip ./venv.sh' - - smoke34_optional: - dir: smoke - run: runuser testuser -c 'VERSION=3.4 METHOD=venv INSTALL_OR_SKIP=true ./venv.sh' - - smokepypy: - dir: smoke - run: runuser testuser -c 'VERSION=2.7 METHOD=virtualenv PYTHON=pypy ./venv.sh' - - smokepypy38: - dir: smoke - run: runuser testuser -c 'VERSION=3.8 METHOD=venv PYTHON=pypy3.8 ./venv.sh' - - selftest37: - dir: selftest - run: runuser testuser -c 'VERSION=3.7 X="-x test_socket -x test_asyncgen -x test_asyncio -x test_compile -x test_concurrent_futures -x test_itertools -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_shutil -x test_time -x test_multiprocessing_spawn -x test_threading -x test_wsgiref" ./parallel.sh' - - debugtest38: - dir: selftest - run: runuser testuser -c 'VERSION=3.8 PYTHON="python3-debug" X="test_ssl" ./parallel.sh' - - debugflags: - dir: flags - run: runuser testuser -c 'python3-debug ./assertflags.py -O0' - - marshalparser_compatibility: - dir: marshalparser - run: runuser testuser -c 'SAMPLE=10 test_marshalparser_compatibility.sh' - required_packages: - - util-linux # for runuser - - dnf - - gcc - - gcc-c++ - - virtualenv - - python2.7 - - python3.6 - - python3.7 - - python3.8 - - python3.9 - - python3.11 - - pypy - - pypy3.8-devel - - python2-devel - - python3-devel - - pypy-devel - - python3-tox - - python3-tkinter - - python3-test - - python3-debug - - python3-rpm-macros - - marshalparser