~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to storage/ndb/test/crund/scripts/mytwsjava.sh

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
 
4
#
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; version 2 of the License.
 
8
#
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this program; if not, write to the Free Software
 
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 
 
18
# usage: no args/options
 
19
 
 
20
touch out.txt
 
21
echo "" >> out.txt 2>&1
 
22
hwprefs -v cpu_count >> out.txt 2>&1
 
23
echo "" >> out.txt 2>&1
 
24
./restart_cluster.sh >> out.txt 2>&1
 
25
echo "" >> out.txt 2>&1
 
26
./load_shema.sh >> out.txt 2>&1
 
27
iostat 5 > iostat5.txt 2>&1 &
 
28
#vmstat 5 > vmstat5.txt 2>&1 &
 
29
pid=$!
 
30
echo "" >> out.txt 2>&1
 
31
( cd ../tws/tws_java/ ; ant run ) >> out.txt 2>&1
 
32
mkdir -p results/xxx
 
33
mv -v [a-z]*.txt results/xxx
 
34
mv -v ../tws/tws_java/log*.txt results/xxx
 
35
cp -v ../tws/tws_java/nbproject/configs/*.properties results/xxx
 
36
cp -v ../tws/tws_java/nbproject/private/*.properties results/xxx
 
37
cp -v ../tws/*.properties results/xxx
 
38
cp -v ../config.ini results/xxx
 
39
cp -v ../my.cnf results/xxx
 
40
mv -v results/xxx  results/xxx_tws_java
 
41
sleep 6
 
42
kill -9 $pid