~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -x
 
4
p=`pwd`
 
5
cd $MYSQL_BASE_DIR/mysql-test 
 
6
./mysql-test-run --with-ndbcluster --ndb-connectstring=$NDB_CONNECTSTRING $* | tee $p/output.txt
 
7
 
 
8
f=`grep -c '\[ fail \]' $p/output.txt`
 
9
o=`grep -c '\[ pass \]' $p/output.txt`
 
10
 
 
11
if [ $o -gt 0 -a $f -eq 0 ]
 
12
then
 
13
    echo "NDBT_ProgramExit: OK"
 
14
    exit 0
 
15
fi
 
16
 
 
17
echo "NDBT_ProgramExit: Failed"
 
18
exit 1