summaryrefslogtreecommitdiff
path: root/integration-tests/neutronclient-stable.sh
diff options
context:
space:
mode:
Diffstat (limited to 'integration-tests/neutronclient-stable.sh')
-rwxr-xr-xintegration-tests/neutronclient-stable.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/integration-tests/neutronclient-stable.sh b/integration-tests/neutronclient-stable.sh
new file mode 100755
index 0000000..4e066db
--- /dev/null
+++ b/integration-tests/neutronclient-stable.sh
@@ -0,0 +1,22 @@
+#!/bin/sh -x
+
+set -e
+
+envdir=$1
+
+# Manually download the source from PyPI and build it with the --editable flag.
+# This gives us access to run the tests.
+pip install --pre --no-deps --no-install --no-clean python-neutronclient
+
+# This is where the source will end up after pip is done downloading and building it
+srcdir=$envdir/build/python-neutronclient/
+cd $srcdir
+
+# Install the source safely
+pip install --no-clean -ve .
+
+# Install the test requirements
+pip install --no-clean -r $srcdir/test-requirements.txt
+
+# Run testr
+python setup.py testr