devstack/lib/tempest
Jeremy Stanley 9a352daf89 Install Tempest's dependencies along with it.
* lib/tempest(install_tempest): Directly install Tempest's
tools/pip-requires list after cloning the repo.

Change-Id: I5c508faab8756d5cdfec53193e08e3440fda1b2c
2012-11-28 18:22:33 +00:00

61 lines
1.2 KiB
Plaintext

# lib/tempest
# Dependencies:
# ``functions`` file
# ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined
# <list other global vars that are assumed to be defined>
# ``stack.sh`` calls the entry points in this order:
#
# install_XXXX
# configure_XXXX
# init_XXXX
# start_XXXX
# stop_XXXX
# cleanup_XXXX
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set +o xtrace
# Defaults
# --------
# <define global variables here that belong to this project>
# Set up default directories
TEMPEST_DIR=$DEST/tempest
TEMPEST_CONF_DIR=$DEST/tempest/etc
# Entry Points
# ------------
# configure_tempest() - Set config files, create data dirs, etc
function configure_tempest() {
# sudo python setup.py deploy
# iniset $tempest_CONF ...
# This function intentionally left blank
#
# TODO(sdague) actually move the guts of configure tempest
# into this function
cd tools
./configure_tempest.sh
cd ..
}
# install_tempest() - Collect source and prepare
function install_tempest() {
git_clone $TEMPEST_REPO $TEMPEST_DIR $TEMPEST_BRANCH
# Tempest doesn't satisfy its dependencies on its own, so
# install them here instead.
sudo pip install -r $TEMPEST_DIR/tools/pip-requires
}
# Restore xtrace
$XTRACE