summaryrefslogtreecommitdiff
path: root/ndb/test/run-test/atrt-mysql-test-run
blob: c30a4defc7f5d70a416cbd178c4d03525b71c712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -x
p=`pwd`
cd $MYSQL_BASE_DIR/mysql-test 
./mysql-test-run --with-ndbcluster --ndb-connectstring=$NDB_CONNECTSTRING $* | tee $p/output.txt

f=`grep -c '[ fail ]' $p/output.txt`
o=`grep -c '[ pass ]' $p/output.txt`

if [ $o -gt 0 -a $f -eq 0 ]
then
    echo "NDBT_ProgramExit: OK"
    exit 0
fi

echo "NDBT_ProgramExit: Failed"
exit 1