File Removed
[csql.git] / test / system / config / test003.ksh
blob71d1a1ae851adc3367a9079eb30afd960b2f640d
1 #!/bin/sh
2 #Run this test only under csql/test or on this directory.
3 #Otherwise, it may fail as CSQL_CONFIG_FILE may not be able to read
4 CSQL_CONF=${PWD}/system/config/csql.conf
5 REL_PATH=.
6 if [ -s "$CSQL_CONF" ]
7 then
8 REL_PATH=`pwd`/system/config
9 fi
10 cp ${REL_PATH}/csql.conf ${REL_PATH}/csqltmp.conf
11 export CSQL_CONFIG_FILE=${REL_PATH}/csqltmp.conf
12 echo "PAGE_SIZE= 512" >>${REL_PATH}/csqltmp.conf
13 ${REL_PATH}/connect 2>${REL_PATH}/tmp.out
14 #cat ${REL_PATH}/tmp.out
15 cat ${REL_PATH}/tmp.out | gawk -F: '{ print $5 }'
16 rm ${REL_PATH}/tmp.out ${REL_PATH}/csqltmp.conf