2012-07-24 19:40:29 -04:00
|
|
|
[tox]
|
2015-05-11 22:18:00 -04:00
|
|
|
envlist = pep8,py27,py34
|
2013-10-03 14:58:54 +00:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2012-07-24 19:40:29 -04:00
|
|
|
|
2014-09-23 17:39:38 -04:00
|
|
|
[tempestenv]
|
2015-01-28 11:23:43 -08:00
|
|
|
sitepackages = False
|
2012-07-24 19:40:29 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2013-12-16 20:07:42 +00:00
|
|
|
OS_TEST_PATH=./tempest/test_discover
|
2014-12-29 19:21:42 +00:00
|
|
|
deps = setuptools
|
|
|
|
-r{toxinidir}/requirements.txt
|
2014-09-23 17:39:38 -04:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
OS_TEST_PATH=./tempest/tests
|
2015-06-12 14:41:41 +08:00
|
|
|
passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH TEMPEST_CONFIG TEMPEST_CONFIG_DIR http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
2013-10-03 14:58:54 +00:00
|
|
|
usedevelop = True
|
2014-02-20 18:50:41 -05:00
|
|
|
install_command = pip install -U {opts} {packages}
|
2014-09-23 17:39:38 -04:00
|
|
|
whitelist_externals = *
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-11-25 08:18:23 -05:00
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox.sh '{posargs}'
|
2013-10-03 15:20:09 +00:00
|
|
|
|
2014-08-05 18:11:29 +00:00
|
|
|
[testenv:genconfig]
|
|
|
|
commands = oslo-config-generator --config-file tools/config/config-generator.tempest.conf
|
|
|
|
|
2014-01-07 21:54:55 +00:00
|
|
|
[testenv:cover]
|
|
|
|
setenv = OS_TEST_PATH=./tempest/tests
|
|
|
|
commands = python setup.py testr --coverage --testr-arg='tempest\.tests {posargs}'
|
|
|
|
|
2013-06-07 14:59:19 -04:00
|
|
|
[testenv:all]
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
2014-10-27 11:43:52 -04:00
|
|
|
# 'all' includes slow tests
|
2014-09-23 17:39:38 -04:00
|
|
|
setenv = {[tempestenv]setenv}
|
2014-10-27 11:43:52 -04:00
|
|
|
OS_TEST_TIMEOUT=1200
|
2014-09-23 17:39:38 -04:00
|
|
|
deps = {[tempestenv]deps}
|
2013-06-07 14:59:19 -04:00
|
|
|
commands =
|
2014-11-25 08:18:23 -05:00
|
|
|
find . -type f -name "*.pyc" -delete
|
2014-02-20 07:09:07 +01:00
|
|
|
bash tools/pretty_tox.sh '{posargs}'
|
2013-06-17 15:29:10 -04:00
|
|
|
|
2015-07-27 15:19:08 +02:00
|
|
|
[testenv:all-plugin]
|
|
|
|
sitepackages = True
|
|
|
|
# 'all' includes slow tests
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
OS_TEST_TIMEOUT=1200
|
|
|
|
deps = {[tempestenv]deps}
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox.sh '{posargs}'
|
|
|
|
|
2013-05-02 14:33:18 -04:00
|
|
|
[testenv:full]
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-08-07 15:48:21 -04:00
|
|
|
# The regex below is used to select which tests to run and exclude the slow tag:
|
|
|
|
# See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610
|
2013-07-30 16:37:32 -04:00
|
|
|
commands =
|
2014-11-25 08:18:23 -05:00
|
|
|
find . -type f -name "*.pyc" -delete
|
2015-04-29 12:23:01 -04:00
|
|
|
bash tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty)) {posargs}'
|
2013-07-30 16:37:32 -04:00
|
|
|
|
2014-02-10 09:21:51 -05:00
|
|
|
[testenv:full-serial]
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2014-02-10 09:21:51 -05:00
|
|
|
# The regex below is used to select which tests to run and exclude the slow tag:
|
|
|
|
# See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610
|
|
|
|
commands =
|
2014-11-25 08:18:23 -05:00
|
|
|
find . -type f -name "*.pyc" -delete
|
2015-04-29 12:23:01 -04:00
|
|
|
bash tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty)) {posargs}'
|
2014-02-10 09:21:51 -05:00
|
|
|
|
2013-08-26 17:53:29 -04:00
|
|
|
[testenv:large-ops]
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-08-26 17:53:29 -04:00
|
|
|
commands =
|
2014-11-25 08:18:23 -05:00
|
|
|
find . -type f -name "*.pyc" -delete
|
2013-08-26 17:53:29 -04:00
|
|
|
python setup.py testr --slowest --testr-args='tempest.scenario.test_large_ops {posargs}'
|
|
|
|
|
2013-05-02 14:33:18 -04:00
|
|
|
[testenv:smoke]
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-11-14 12:55:55 -08:00
|
|
|
commands =
|
2014-11-25 08:18:23 -05:00
|
|
|
find . -type f -name "*.pyc" -delete
|
2015-04-27 12:09:19 -04:00
|
|
|
bash tools/pretty_tox.sh '\[.*\bsmoke\b.*\] {posargs}'
|
2013-11-14 12:55:55 -08:00
|
|
|
|
|
|
|
[testenv:smoke-serial]
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-11-14 12:55:55 -08:00
|
|
|
# This is still serial because neutron doesn't work with parallel. See:
|
|
|
|
# https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke
|
|
|
|
# job would fail if we moved it to parallel.
|
2013-05-02 14:33:18 -04:00
|
|
|
commands =
|
2014-11-25 08:18:23 -05:00
|
|
|
find . -type f -name "*.pyc" -delete
|
2015-04-27 12:09:19 -04:00
|
|
|
bash tools/pretty_tox_serial.sh '\[.*\bsmoke\b.*\] {posargs}'
|
2013-05-02 14:33:18 -04:00
|
|
|
|
2013-07-02 17:50:41 -04:00
|
|
|
[testenv:stress]
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-07-02 17:50:41 -04:00
|
|
|
commands =
|
2014-11-11 15:29:00 -05:00
|
|
|
run-tempest-stress {posargs}
|
2013-07-02 17:50:41 -04:00
|
|
|
|
2013-05-21 17:57:41 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2014-06-18 21:58:32 -04:00
|
|
|
[testenv:docs]
|
2015-07-30 20:24:08 +00:00
|
|
|
# The sample config file we generate is included in the sphinxdoc, so build that first.
|
|
|
|
commands =
|
|
|
|
oslo-config-generator --config-file tools/config/config-generator.tempest.conf --output-file doc/source/_static/tempest.conf
|
|
|
|
python setup.py build_sphinx {posargs}
|
2014-06-18 21:58:32 -04:00
|
|
|
|
2012-07-24 19:40:29 -04:00
|
|
|
[testenv:pep8]
|
2013-10-24 21:49:14 +00:00
|
|
|
commands =
|
|
|
|
flake8 {posargs}
|
2015-02-26 14:12:15 -08:00
|
|
|
python tools/check_uuid.py
|
2013-10-24 21:49:14 +00:00
|
|
|
|
2015-02-26 14:12:15 -08:00
|
|
|
[testenv:uuidgen]
|
|
|
|
commands =
|
|
|
|
python tools/check_uuid.py --fix
|
2015-02-19 00:29:49 -06:00
|
|
|
|
2013-05-01 11:22:07 -04:00
|
|
|
[hacking]
|
2013-05-23 15:23:12 -04:00
|
|
|
local-check-factory = tempest.hacking.checks.factory
|
2014-05-17 10:42:36 -04:00
|
|
|
import_exceptions = tempest.services
|
2013-05-01 11:22:07 -04:00
|
|
|
|
2013-04-28 18:00:21 -07:00
|
|
|
[flake8]
|
2013-07-18 14:10:19 -07:00
|
|
|
# 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/
|
2014-06-09 18:37:19 -04:00
|
|
|
# E123 skipped because it is ignored by default in the default pep8
|
2014-06-17 20:25:40 -04:00
|
|
|
# E129 skipped because it is too limiting when combined with other rules
|
2015-02-25 12:42:37 -08:00
|
|
|
# Skipped because of new hacking 0.9: H405
|
2015-02-25 12:51:46 -08:00
|
|
|
ignore = E125,E123,E129,H404,H405
|
2013-04-28 18:00:21 -07:00
|
|
|
show-source = True
|
|
|
|
exclude = .git,.venv,.tox,dist,doc,openstack,*egg
|