From 7c561e2e113186d8977b262d7c203316bbd1d57f Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Sep 18 2018 10:17:36 +0000 Subject: [PATCH 1/4] Initial example of the Flexible Metadata Format --- 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/main.fmf b/main.fmf new file mode 100644 index 0000000..f448dea --- /dev/null +++ b/main.fmf @@ -0,0 +1,2 @@ +contact: Petr Šplíchal +component: [python] diff --git a/smoke/venv.fmf b/smoke/venv.fmf new file mode 100644 index 0000000..0547dd5 --- /dev/null +++ b/smoke/venv.fmf @@ -0,0 +1,37 @@ +summary: Basic smoke test for virtualenv +description: | + Check basic functionality of the virtualenv module. The + test supports different python versions & implementations + including pypy and jython. + + The following steps are performed: + + * Create virtual environment + * Activate virtual environment + * Install pip and Cython in it + * Create and test a simple module + * Check we can do extension modules + * Ensure we can test with the tox tool + + Use the following environment variables to adjust what + should be tested (default values listed first): + + * VERSION ... python version (3.7, 3.6, 2.7, 2.6) + * PYTHON ... implementation (python3.7, pypy, jython) + * METHOD ... virtualenv implementation (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 +duration: 10m +component+: + - pypy + - jython From 3903c0b861324f73ecce95972909e2659664c967 Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Sep 19 2018 08:21:05 +0000 Subject: [PATCH 2/4] Incorporate pull request feedback --- diff --git a/main.fmf b/main.fmf index f448dea..5d4352f 100644 --- a/main.fmf +++ b/main.fmf @@ -1,2 +1,4 @@ -contact: Petr Šplíchal +contact: + - Petr Šplíchal + - Miro Hrončok component: [python] diff --git a/smoke/venv.fmf b/smoke/venv.fmf index 0547dd5..9e6f5ee 100644 --- a/smoke/venv.fmf +++ b/smoke/venv.fmf @@ -1,14 +1,14 @@ summary: Basic smoke test for virtualenv description: | - Check basic functionality of the virtualenv module. The - test supports different python versions & implementations - including pypy and jython. + Check basic functionality of Python virtual environments (venv + or virtualenv based). The test supports different python + versions & implementations including pypy and jython. The following steps are performed: * Create virtual environment * Activate virtual environment - * Install pip and Cython in it + * Install pip, pytest and Cython * Create and test a simple module * Check we can do extension modules * Ensure we can test with the tox tool @@ -17,8 +17,8 @@ description: | should be tested (default values listed first): * VERSION ... python version (3.7, 3.6, 2.7, 2.6) - * PYTHON ... implementation (python3.7, pypy, jython) - * METHOD ... virtualenv implementation (venv, virtualenv) + * PYTHON ... implementation (python${VERSION}, pypy, pypy3, jython) + * METHOD ... virtual environment creation method (venv, virtualenv) * TOX ... enable or disable the tox test (true, false) path: smoke From b3c9a16a9deabbae582a9e0ce9e163199dc886ce Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Sep 19 2018 08:33:46 +0000 Subject: [PATCH 3/4] Update the list of components --- diff --git a/smoke/venv.fmf b/smoke/venv.fmf index 9e6f5ee..3595bc1 100644 --- a/smoke/venv.fmf +++ b/smoke/venv.fmf @@ -33,5 +33,16 @@ environment: TOX: true duration: 10m component+: + - python2 + - python26 + - python3 + - python34 + - python35 + - python36 - pypy + - pypy3 - jython + - python-pip + - python-wheel + - python-setuptools + - python-virtualenv From 9358fa66bcf5e30caad52caf17513f15cc257809 Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Sep 19 2018 11:57:20 +0000 Subject: [PATCH 4/4] Add python-tox to the list of relevant components --- diff --git a/smoke/venv.fmf b/smoke/venv.fmf index 3595bc1..91fee9d 100644 --- a/smoke/venv.fmf +++ b/smoke/venv.fmf @@ -46,3 +46,4 @@ component+: - python-wheel - python-setuptools - python-virtualenv + - python-tox