Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = pep8 |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 3 | minversion = 1.6 |
| 4 | skipsdist = True |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 5 | |
| 6 | [testenv] |
Sean Dague | c81568f | 2014-01-04 23:25:42 -0500 | [diff] [blame] | 7 | sitepackages = True |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 8 | setenv = VIRTUAL_ENV={envdir} |
Matthew Treinish | 87f772c | 2013-12-16 20:07:42 +0000 | [diff] [blame] | 9 | OS_TEST_PATH=./tempest/test_discover |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 10 | usedevelop = True |
Sean Dague | c81568f | 2014-01-04 23:25:42 -0500 | [diff] [blame] | 11 | install_command = pip install {opts} {packages} |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 12 | |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 13 | [testenv:py26] |
Matthew Treinish | bf47061 | 2013-12-13 15:46:44 +0000 | [diff] [blame] | 14 | setenv = OS_TEST_PATH=./tempest/tests |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 15 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 16 | |
| 17 | [testenv:py33] |
Matthew Treinish | bf47061 | 2013-12-13 15:46:44 +0000 | [diff] [blame] | 18 | setenv = OS_TEST_PATH=./tempest/tests |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 19 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 20 | |
| 21 | [testenv:py27] |
Matthew Treinish | bf47061 | 2013-12-13 15:46:44 +0000 | [diff] [blame] | 22 | setenv = OS_TEST_PATH=./tempest/tests |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 23 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 24 | |
Matthew Treinish | b2f5cad | 2014-01-07 21:54:55 +0000 | [diff] [blame] | 25 | [testenv:cover] |
| 26 | setenv = OS_TEST_PATH=./tempest/tests |
| 27 | commands = python setup.py testr --coverage --testr-arg='tempest\.tests {posargs}' |
| 28 | |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 29 | [testenv:all] |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 30 | setenv = VIRTUAL_ENV={envdir} |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 31 | commands = |
Matthew Treinish | eda037c | 2013-08-09 16:57:28 -0400 | [diff] [blame] | 32 | python setup.py testr --slowest --testr-args='{posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 33 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 34 | [testenv:full] |
Matthew Treinish | 59eb0b2 | 2013-08-07 15:48:21 -0400 | [diff] [blame] | 35 | # The regex below is used to select which tests to run and exclude the slow tag: |
| 36 | # See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610 |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 37 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 38 | bash tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 39 | |
Matthew Treinish | 99288cd | 2014-02-10 09:21:51 -0500 | [diff] [blame] | 40 | [testenv:full-serial] |
| 41 | # The regex below is used to select which tests to run and exclude the slow tag: |
| 42 | # See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610 |
| 43 | commands = |
| 44 | bash tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
| 45 | |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 46 | [testenv:testr-full] |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 47 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 48 | bash tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 49 | |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 50 | [testenv:heat-slow] |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 51 | setenv = OS_TEST_TIMEOUT=1200 |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 52 | # The regex below is used to select heat api/scenario tests tagged as slow. |
| 53 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 54 | bash tools/pretty_tox_serial.sh '(?=.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)\.orchestration) {posargs}' |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 55 | |
Joe Gordon | 4002815 | 2013-08-26 17:53:29 -0400 | [diff] [blame] | 56 | [testenv:large-ops] |
Joe Gordon | 4002815 | 2013-08-26 17:53:29 -0400 | [diff] [blame] | 57 | commands = |
| 58 | python setup.py testr --slowest --testr-args='tempest.scenario.test_large_ops {posargs}' |
| 59 | |
| 60 | |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 61 | [testenv:py26-full] |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 62 | setenv = VIRTUAL_ENV={envdir} |
| 63 | NOSE_WITH_OPENSTACK=1 |
| 64 | NOSE_OPENSTACK_COLOR=1 |
| 65 | NOSE_OPENSTACK_RED=15 |
| 66 | NOSE_OPENSTACK_YELLOW=3 |
| 67 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 68 | NOSE_OPENSTACK_STDOUT=1 |
Attila Fazekas | ea88d9f | 2013-10-03 12:51:44 +0200 | [diff] [blame] | 69 | TEMPEST_PY26_NOSE_COMPAT=1 |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 70 | commands = |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 71 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --xunit-file=nosetests-full.xml tempest/api tempest/scenario tempest/thirdparty tempest/cli {posargs} |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 72 | |
| 73 | [testenv:py26-smoke] |
| 74 | setenv = VIRTUAL_ENV={envdir} |
| 75 | NOSE_WITH_OPENSTACK=1 |
| 76 | NOSE_OPENSTACK_COLOR=1 |
| 77 | NOSE_OPENSTACK_RED=15 |
| 78 | NOSE_OPENSTACK_YELLOW=3 |
| 79 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 80 | NOSE_OPENSTACK_STDOUT=1 |
Attila Fazekas | ea88d9f | 2013-10-03 12:51:44 +0200 | [diff] [blame] | 81 | TEMPEST_PY26_NOSE_COMPAT=1 |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 82 | commands = |
| 83 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest {posargs} |
| 84 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 85 | [testenv:smoke] |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 86 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 87 | bash tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])((smoke)|(^tempest\.scenario)) {posargs}' |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 88 | |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 89 | [testenv:smoke-serial] |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 90 | # This is still serial because neutron doesn't work with parallel. See: |
| 91 | # https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke |
| 92 | # job would fail if we moved it to parallel. |
| 93 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 94 | bash tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])((smoke)|(^tempest\.scenario)) {posargs}' |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 95 | |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 96 | [testenv:stress] |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 97 | commands = |
Marc Koderer | 8f940ab | 2013-09-25 17:31:50 +0200 | [diff] [blame] | 98 | python -m tempest/stress/run_stress -a -d 3600 -S |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 99 | |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 100 | [testenv:venv] |
| 101 | commands = {posargs} |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 102 | deps = -r{toxinidir}/requirements.txt |
| 103 | -r{toxinidir}/test-requirements.txt |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 104 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 105 | [testenv:pep8] |
Matthew Treinish | 3d46811 | 2013-10-24 21:49:14 +0000 | [diff] [blame] | 106 | setenv = MODULEPATH=tempest.common.generate_sample_tempest |
| 107 | commands = |
| 108 | flake8 {posargs} |
| 109 | {toxinidir}/tools/config/check_uptodate.sh |
| 110 | |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 111 | deps = -r{toxinidir}/requirements.txt |
| 112 | -r{toxinidir}/test-requirements.txt |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 113 | |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 114 | [hacking] |
Giampaolo Lauria | d50c27d | 2013-05-23 15:23:12 -0400 | [diff] [blame] | 115 | local-check-factory = tempest.hacking.checks.factory |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 116 | |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 117 | [flake8] |
Joe Gordon | dca03dd | 2013-07-18 14:10:19 -0700 | [diff] [blame] | 118 | # E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.openstack.org/#/c/36788/ |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 119 | ignore = E125,H302,H404 |
| 120 | show-source = True |
| 121 | exclude = .git,.venv,.tox,dist,doc,openstack,*egg |