adding test scripts
[csql.git] / test / tools / csql / testnw018.ksh
blob837ab25e4e13b924ab6bafbf83c68be4ac311b75
1 #!/bin/ksh
2 # Test Case
3 # check INSERT and SELECT, applying composite primary key on table
5 QUITFILE=${PWD}/tools/csql/quit.sql
6 REL_PATH=.
7 if [ -s "$QUITFILE" ]
8 then
9 REL_PATH=`pwd`/tools/csql
12 $CSQL_INSTALL_ROOT/bin/csql -o 4 -u root -p manager -s ${REL_PATH}/comp1.sql
13 if [ $? -ne 0 ]
14 then
15 exit 1;
17 $CSQL_INSTALL_ROOT/bin/csqldump -T t1
18 $CSQL_INSTALL_ROOT/bin/csql -o 4 -u root -p manager -s ${REL_PATH}/drop.sql
19 if [ $? -ne 0 ]
20 then
21 exit 2;
23 exit 0;