2014-09-19 02:42:55 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This is a script that kicks off a series of functional tests against an
|
|
|
|
# OpenStack cloud. It will attempt to create an instance if one is not
|
|
|
|
# available. Do not run this script unless you know what you're doing.
|
|
|
|
# For more information refer to:
|
|
|
|
# http://docs.openstack.org/developer/python-openstackclient/
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
OPENSTACKCLIENT_DIR=$(cd $(dirname "$0") && pwd)
|
|
|
|
|
|
|
|
echo "Running openstackclient functional test suite"
|
2015-04-16 12:56:40 -06:00
|
|
|
sudo -H -u stack -i <<!
|
2015-10-08 02:10:39 -04:00
|
|
|
source ~stack/devstack/openrc admin admin
|
2015-04-16 12:56:40 -06:00
|
|
|
echo 'Running tests with:'
|
|
|
|
env | grep OS_
|
|
|
|
cd ${OPENSTACKCLIENT_DIR}
|
|
|
|
tox -e functional
|
|
|
|
!
|