3
# Copyright (C) 2004, 2005 MySQL AB
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
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.
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,
22
cd $MYSQL_BASE_DIR/mysql-test
23
./mysql-test-run --with-ndbcluster --ndb-connectstring=$NDB_CONNECTSTRING $* | tee $p/output.txt
25
f=`grep -c '\[ fail \]' $p/output.txt`
26
o=`grep -c '\[ pass \]' $p/output.txt`
28
if [ $o -gt 0 -a $f -eq 0 ]
30
echo "NDBT_ProgramExit: OK"
34
echo "NDBT_ProgramExit: Failed"