summaryrefslogtreecommitdiffstats
path: root/utils/test/dashboard/install.sh
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2017-11-21 00:46:35 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-21 00:46:35 +0000
commit174b299271189496bae4c4d6727ea26a7a098756 (patch)
treeb063e18c795988e38e1eb4afa74d4cbf9524f057 /utils/test/dashboard/install.sh
parentfd65ec9e84ae025e6b903c403514405ba0bb0a61 (diff)
parentf11f26d23dabde24b0bcd67ac81b094aa89eb6c9 (diff)
Merge "Remove 'utils/test' Directory and update INFO"
Diffstat (limited to 'utils/test/dashboard/install.sh')
-rwxr-xr-xutils/test/dashboard/install.sh54
1 files changed, 0 insertions, 54 deletions
diff --git a/utils/test/dashboard/install.sh b/utils/test/dashboard/install.sh
deleted file mode 100755
index 9fd60d916..000000000
--- a/utils/test/dashboard/install.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-
-usage="
-Script to install dashboard automatically.
-This script should be run under root.
-
-usage:
- bash $(basename "$0") [-h|--help] [-t <test_name>]
-
-where:
- -h|--help show this help text
- -p|--project project dashboard
- <project_name>"
-
-# Parse parameters
-while [[ $# > 0 ]]
- do
- key="$1"
- case $key in
- -h|--help)
- echo "$usage"
- exit 0
- shift
- ;;
- -p|--project)
- PROJECT="$2"
- shift
- ;;
- *)
- echo "unknown option $1 $2"
- exit 1
- ;;
- esac
- shift # past argument or value
-done
-
-if [[ $(whoami) != "root" ]]; then
- echo "Error: This script must be run as root!"
- exit 1
-fi
-
-if [ -z ${PROJECT+x} ]; then
- echo "project must be specified"
- exit 1
-fi
-
-if [ $PROJECT != "functest" ] && [ $PROJECT != "qtip" ];then
- echo "unsupported project $PROJECT"
- exit 1
-fi
-
-cp -f dashboard/$PROJECT/format.py dashboard/mongo2elastic
-cp -f dashboard/$PROJECT/testcases.yaml etc/
-python setup.py install