rename result_collection_api to testapi
[releng.git] / utils / test / testapi / install.sh
1 #!/bin/bash
2
3 usage="
4 Script to install opnfv_tesgtapi automatically.
5 This script should be run under root.
6
7 usage:
8     bash $(basename "$0") [-h|--help] [-t <test_name>]
9
10 where:
11     -h|--help         show this help text"
12
13 if [[ $(whoami) != "root" ]]; then
14     echo "Error: This script must be run as root!"
15     exit 1
16 fi
17
18 cp -fr 3rd_party/static opnfv_testapi/tornado_swagger
19 python setup.py install
20 rm -fr opnfv_testapi/tornado_swagger/static