summaryrefslogtreecommitdiffstats
path: root/testapi/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/install.sh')
-rwxr-xr-xtestapi/install.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/testapi/install.sh b/testapi/install.sh
new file mode 100755
index 0000000..43229ea
--- /dev/null
+++ b/testapi/install.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+usage="
+Script to install opnfv_tesgtapi automatically.
+This script should be run under root.
+
+usage:
+ bash $(basename "$0") [-h|--help] [-t <test_name>]
+
+where:
+ -h|--help show this help text"
+
+if [[ $(whoami) != "root" ]]; then
+ echo "Error: This script must be run as root!"
+ exit 1
+fi
+
+cp -fr 3rd_party/static opnfv_testapi/tornado_swagger
+python setup.py install
+rm -fr opnfv_testapi/tornado_swagger/static