3 # check options -D chunk with empty database
4 #create table t1 (f1,f2) check with -D chunk
5 #drop t1 check with -D chunk
7 CSQL_CONF
=${PWD}/tools
/catalog
/csql.conf
8 input
=${PWD}/tools
/catalog
/create.sql
10 if [ -s "$input" -a -s "$CSQL_CONF" ]
12 REL_PATH
=${PWD}/tools
/catalog
14 export CSQL_CONFIG_FILE
=$REL_PATH/csql.conf
16 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
19 echo "Case 1: With -D chunk option with empty database"
20 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-D chunk
26 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/create.sql
32 echo "Case 2: With -D chunk option after table creation:"
33 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-D chunk
39 $CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s ${REL_PATH}/dropt1.sql
45 echo "t1 table droped "
47 echo "Case 3: With -D chunk option after drop t1 :"
48 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-D chunk