summaryrefslogtreecommitdiffstats
path: root/testsuites/rubbos/run_rubbos.sh
diff options
context:
space:
mode:
authorJun Li <matthew.lijun@huawei.com>2016-04-20 01:38:46 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-04-20 01:38:46 +0000
commit80b9e74060078b1323a8394ab797b6022fa48344 (patch)
tree0fd759a7021d4b706c84cf8b21b6d41c8f2f06a3 /testsuites/rubbos/run_rubbos.sh
parent62066c695d3e27bc2a8d76d59b98d4104fd0c5da (diff)
parent0cbac9410d28625da7b71034e9fa7c612c7c428a (diff)
Merge "Using nova and heat client to create a stack for rubbos test suite"
Diffstat (limited to 'testsuites/rubbos/run_rubbos.sh')
-rwxr-xr-xtestsuites/rubbos/run_rubbos.sh70
1 files changed, 0 insertions, 70 deletions
diff --git a/testsuites/rubbos/run_rubbos.sh b/testsuites/rubbos/run_rubbos.sh
deleted file mode 100755
index b7492adc..00000000
--- a/testsuites/rubbos/run_rubbos.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-###############################################################################
-# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-usage="Script to run the tests in rubbos.
-
-usage:
- bash $(basename "$0") [-h|--help] [-s <test suite>]
-
-where:
- -h|--help show the help text
- -t|--test run specifif test case scenario
- <test case> examples:
- rubbos_1-1-1, rubbos_1-2-1
-
-examples:
- $(basename "$0")
- $(basename "$0") -t rubbos_1-1-1"
-
-while [[ $# > 0 ]]
- do
- key="$1"
- case $key in
- -h|--help)
- echo "$usage"
- exit 0
- shift
- ;;
- -t|--test)
- CASE="$2"
- shift
- ;;
- *)
- echo "unkown option $1 $2"
- exit 1
- ;;
- esac
- shift
-done
-
-BASEDIR=`dirname $0`
-
-#has been checked in upper layer run_tests.sh
-#run tests
-if [ "${CASE}" != "" ]; then
- case_exec=(${CASE//,/})
- for case_exe in "${case_exec[@]}"; do
- client_num=4
- tomcat_num=$(echo "$case_exe"| awk -F '-' '{print $2}')
- mysql_num=$(echo "$case_exe"| awk -F '-' '{print $3')
-
- hosts=(rubbos_control rubbos_benchmark rubbos_httpd)
- for((i=1; i <= client_num; i++)); do
- hosts=(${hosts[*]} client$i)
- done
- for((i=1; i <= tomcat_num; i++)); do
- hosts=(${hosts[*]} tomcat$i)
- done
- for((i=1; i <= mysql_num; i++)); do
- hosts=(${hosts[*]} mysql$i)
- done
- bash $BOTTLENECKS_TOP_DIR/utils/infra_setup/heat_template/rubbos_heat_template/HOT_create_instance.sh
- done
-fi