1
[csql.git] / test / dbapi / Threads / test005.ksh
blobd45ed4a18643c4343a356a5da349d83db496107a
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}/hashvarchar 2> $0.valgr
12 else
13 $REL_PATH/hashvarchar >/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