~vadim-tk/percona-server/percona-5.5.15-galera

« back to all changes in this revision

Viewing changes to storage/ndb/test/run-test/atrt-mysql-test-run

  • Committer: root
  • Date: 2011-09-10 16:37:18 UTC
  • Revision ID: root@r815.office.percona.com-20110910163718-ydh4zj8hcdgoyavb
Porting Galera to 5.5.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Copyright (C) 2004, 2005 MySQL AB
 
4
#
 
5
# This program is free software; you can redistribute it and/or
 
6
# modify it under the terms of the GNU Library General Public
 
7
# License as published by the Free Software Foundation; version 2
 
8
# of the License.
 
9
#
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
# Library General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU Library General Public
 
16
# License along with this library; if not, write to the Free
 
17
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 
18
# MA 02111-1307, USA
 
19
 
 
20
set -x
 
21
p=`pwd`
 
22
cd $MYSQL_BASE_DIR/mysql-test 
 
23
./mysql-test-run --with-ndbcluster --ndb-connectstring=$NDB_CONNECTSTRING $* | tee $p/output.txt
 
24
 
 
25
f=`grep -c '\[ fail \]' $p/output.txt`
 
26
o=`grep -c '\[ pass \]' $p/output.txt`
 
27
 
 
28
if [ $o -gt 0 -a $f -eq 0 ]
 
29
then
 
30
    echo "NDBT_ProgramExit: OK"
 
31
    exit 0
 
32
fi
 
33
 
 
34
echo "NDBT_ProgramExit: Failed"
 
35
exit 1