windows changes
[csql.git] / test / tools / csql / test060.ksh
blob5931f65c356af5ec27c67b22f112183d160628fc
1 #!/bin/ksh
2 #Test case
3 #create table t1(f1 int not null,f2 int,f3 int,primary key(f1));
4 # create index idx1 on t1(f1) unique;
5 #It should be failed saying "Index on this field already exists".
7 QUITFILE=${PWD}/tools/csql/quit.sql
8 REL_PATH=.
9 if [ -s "$QUITFILE" ]
10 then
11 REL_PATH=`pwd`/tools/csql
14 if [ "$VALGRIND" = "true" ]
15 then
16 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/tree15.sql 2> $0.valgr
17 else
18 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/tree15.sql
19 if [ $? -ne 0 ]
20 then
21 exit 1;
25 if [ "$VALGRIND" = "true" ]
26 then
27 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csqldump -T t1 2>> $0.valgr
28 else
29 $CSQL_INSTALL_ROOT/bin/csqldump -T t1
32 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drop.sql
33 if [ $? -ne 0 ]
34 then
35 exit 2;
38 exit 0;