keystone/tools/with_venv.sh
Dolph Mathews 25f5e3a855 Gets Keystone a bit more inline with the way that
other OpenStack projects run tests. Basically, adds the standard
run_tests.sh script, modifies the run_tests.py script to do the
following:

a) Correctly create a test configuration file that is passed
   to keystone-manage and keystone. This allows you to test
   keystone on a server that already has keystone running on it
b) Some DRY cleanup around the removal of database files that
   get created in the course of testing
c) Creates a virtualenv automatically with the -V (-f) flag,
   which reads the tools/pip-requires file and constructs a virtualenv
   with all dependencies installed

Change-Id: I8defa5956a7f23258936d04a11655d36a71226ec
2011-08-05 22:45:26 -05:00

5 lines
93 B
Bash
Executable File

#!/bin/bash
TOOLS=`dirname $0`
VENV=$TOOLS/../.keystone-venv
source $VENV/bin/activate && $@