python-openstackclient/post_test_hook.sh
TerryHowe aa7e58cefb Functional tests run in many environments
Have the functional tests running with less customization and
less shell.  This change will allow the functional tests to be
run against any cloud set up in the environment.

Change-Id: I24f621fbace62273e5a0be24e7af9078c0fc8550
2015-04-25 08:42:06 -06:00

21 lines
590 B
Bash
Executable File

#!/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"
sudo -H -u stack -i <<!
source ~stack/devstack/accrc/admin/admin
echo 'Running tests with:'
env | grep OS_
cd ${OPENSTACKCLIENT_DIR}
tox -e functional
!