Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / rubbos / rubbos_scripts / 1-1-1 / scripts / MYSQL1_rubbos_install.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 #
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 ##############################################################################
10
11 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
12 source set_bottlenecks_rubbos_env.sh
13
14 echo "INSTALLING RUBBOS/SYSSTAT on $HOSTNAME"
15
16 mkdir -p $RUBBOS_APP
17
18 # install RUBBoS
19 tar xzf $SOFTWARE_HOME/$RUBBOS_TARBALL --directory=$RUBBOS_APP
20 #tar xzf $SOFTWARE_HOME/rubbos_html.tar.gz --directory=$RUBBOS_HOME/Servlet_HTML/
21 cp $SOFTWARE_HOME/flush_cache $RUBBOS_HOME/bench/.
22
23 # install sysstat
24 tar xzf $SOFTWARE_HOME/$SYSSTAT_TARBALL --directory=$RUBBOS_APP
25 cd $SYSSTAT_HOME
26 ./configure --prefix=$SYSSTAT_HOME >/dev/null
27 make >/dev/null 2>&1
28 sudo make install >/dev/null
29
30 # install a script to collect statistics data
31 cp $OUTPUT_HOME/rubbos_conf/cpu_mem.sh $RUBBOS_APP/.
32 chmod 755 $RUBBOS_APP/cpu_mem.sh
33
34 echo "DONE INSTALLING RUBBOS/SYSSTAT on $HOSTNAME"