2 ###############################################################################
3 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 usage="Script to run the tests in rubbos.
14 bash $(basename "$0") [-h|--help] [-s <test suite>]
17 -h|--help show the help text
18 -t|--test run specifif test case scenario
20 rubbos_1-1-1, rubbos_1-2-1
24 $(basename "$0") -t rubbos_1-1-1"
40 echo "unkown option $1 $2"
49 #has been checked in upper layer run_tests.sh
51 if [ "${CASE}" != "" ]; then
52 case_exec=(${CASE//,/})
53 for case_exe in "${case_exec[@]}"; do
55 tomcat_num=$(echo "$case_exe"| awk -F '-' '{print $2}')
56 mysql_num=$(echo "$case_exe"| awk -F '-' '{print $3')
58 hosts=(rubbos_control rubbos_benchmark rubbos_httpd)
59 for((i=1; i <= client_num; i++)); do
60 hosts=(${hosts[*]} client$i)
62 for((i=1; i <= tomcat_num; i++)); do
63 hosts=(${hosts[*]} tomcat$i)
65 for((i=1; i <= mysql_num; i++)); do
66 hosts=(${hosts[*]} mysql$i)
68 bash $BOTTLENECKS_TOP_DIR/utils/infra_setup/heat_template/rubbos_heat_template/HOT_create_instance.sh