4 Script to install dashboard automatically.
5 This script should be run under root.
8 bash $(basename "$0") [-h|--help] [-t <test_name>]
11 -h|--help show this help text
12 -p|--project project dashboard
30 echo "unknown option $1 $2"
34 shift # past argument or value
37 if [[ $(whoami) != "root" ]]; then
38 echo "Error: This script must be run as root!"
42 if [ -z ${PROJECT+x} ]; then
43 echo "project must be specified"
47 if [ $PROJECT != "functest" ] && [ $PROJECT != "qtip" ];then
48 echo "unsupported project $PROJECT"
52 cp -f dashboard/$PROJECT/format.py dashboard/mongo2elastic
53 cp -f dashboard/$PROJECT/testcases.yaml etc/
54 python setup.py install