Add option to run stress tests.

This commit adds a new environmental variable to enable running the
tempest stress tests. If DEVSTACK_GATE_TEMPEST_STRESS is set to 1
then the stress tests will be run.

Change-Id: I93a99e587eeb5b6624256696c0109293f835b474
This commit is contained in:
Matthew Treinish
2013-07-02 17:57:16 -04:00
parent af1013a613
commit d15f3accdc
2 changed files with 6 additions and 0 deletions

View File

@@ -341,6 +341,9 @@ export DEVSTACK_GATE_ZEROMQ=${DEVSTACK_GATE_ZEROMQ:-0}
# Set to 1 to run nova coverage with Tempest
export DEVSTACK_GATE_TEMPEST_COVERAGE=${DEVSTACK_GATE_TEMPEST_COVERAGE:-0}
# Set to 1 to run tempest stress tests
export DEVSTACK_GATE_TEMPEST_STRESS=${DEVSTACK_GATE_TEMPEST_STRESS:-0}
export DEVSTACK_GATE_CINDER=${DEVSTACK_GATE_CINDER:-0}
# Set to 1 to enable Cinder secure delete.

View File

@@ -241,6 +241,9 @@ if [ "$DEVSTACK_GATE_TEMPEST" -eq "1" ]; then
elif [[ "$DEVSTACK_GATE_TEMPEST_COVERAGE" -eq "1" ]] ; then
echo "Generating coverage report"
sudo -H -u stack tox -ecoverage -- -o $BASE/new/tempest/coverage-report
elif [[ "$DEVSTACK_GATE_TEMPEST_STRESS" -eq "1" ]] ; then
echo "Running stress tests"
sudo -H -u stack tox -estress
else
echo "Running tempest smoke tests"
sudo -H -u stack tox -esmoke