*** empty log message ***
[csql.git] / test / tools / csql / test098.ksh
blob5e44b820e98a8a0e898394e30fe6481ee3539ded
1 #!/bin/ksh
2 # Test Case
3 # Testing on fixing bucket size in sql statement
5 QUITFILE=${PWD}/tools/csql/quit.sql
6 REL_PATH=.
7 if [ -s "$QUITFILE" ]
8 then
9 REL_PATH=`pwd`/tools/csql
12 if [ "$VALGRIND" = "true" ]
13 then
14 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/bucketsize.sql 2> $0.valgr
15 else
16 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/bucketsize.sql
17 if [ $? -ne 0 ]
18 then
19 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drt1.sql
20 exit 1;
24 if [ "$VALGRIND" = "true" ]
25 then
26 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csqldump 2>> $0.valgr
27 else
28 $CSQL_INSTALL_ROOT/bin/csqldump
29 if [ $? -ne 0 ]
30 then
31 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drt1.sql
32 exit 1;
36 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drt1.sql
37 if [ $? -ne 0 ]
38 then
39 exit 2;