*** empty log message ***
[csql.git] / test / tools / csqldump / test003.ksh
blobbd711e7cd8a7019ac54bc5e45bf663139d5f26a1
1 #!/bin/sh
3 #Run this test only under csql/test or on this directory.
4 #Otherwise, it may fail
5 input=${PWD}/tools/csqldump/inputtest003.sql
6 REL_PATH=.
7 if [ -s "$input" ]
8 then
9 REL_PATH=${PWD}/tools/csqldump
12 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s $REL_PATH/inputtest003.sql > /dev/null 2>&1
14 if [ $? -ne 0 ]
15 then
16 exit 1;
19 $CSQL_INSTALL_ROOT/bin/csqldump -n 20
20 if [ $? -ne 0 ]
21 then
22 exit 2;
25 cnt=`$CSQL_INSTALL_ROOT/bin/csqldump | grep VALUES | wc -l`
27 if [ $? -ne 0 -a $cnt -ne 100 ]
28 then
29 exit 3;
32 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s $REL_PATH/drop.sql > /dev/null 2>&1
34 if [ $? -ne 0 ]
35 then
36 exit 4;
39 exit 0;