*** empty log message ***
[csql.git] / test / dbapi / Threads / test001.ksh
blob88c08286360a9f480e04cf4506bf0ec4ce38619c
1 #!/bin/ksh
2 FILE=${PWD}/dbapi/Threads/noindex
3 REL_PATH=.
4 if [ -s "$FILE" ]
5 then
6 REL_PATH=`pwd`/dbapi/Threads
7 fi
8 sleep 1
9 if [ $VALGRIND = "true" ]
10 then
11 valgrind --tool=memcheck --leak-check=full ${REL_PATH}/noindex 2> $0.valgr
12 else
13 $REL_PATH/noindex >/tmp/out
15 sleep 1
16 NO=`grep "Total rows :25000" /tmp/out |wc -l`
17 if [ $NO -ne 15 ]
18 then
19 echo failed with $NO
20 rm /tmp/out
21 exit 2
23 rm /tmp/out
24 exit 0