Add a tox job to run stress tests.

This adds a tox job that will run the stress tests. It first runs the
server create destroy test for an hour followed by running the volume
create destroy test for another hour.

Change-Id: I75dae72baa3f1e0bac90fb96ba293fd7c76679b3
This commit is contained in:
Matthew Treinish
2013-07-02 17:50:41 -04:00
parent 091e73f8c4
commit cee11778c9

View File

@@ -61,6 +61,14 @@ commands =
nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli
python -m tools/tempest_coverage -c report --html {posargs}
[testenv:stress]
sitepackages = True
setenv = VIRTUAL_ENV={envdir}
commands =
python -m tempest/stress/run_stress tempest/stress/etc/sample-test.json -d 60
python -m tempest/stress/run_stress tempest/stress/etc/volume-create-delete-test.json -d 60
[testenv:venv]
commands = {posargs}
deps = -r{toxinidir}/requirements.txt