*** empty log message ***
[csql.git] / test / system / config / test003.ksh
blobb8e9a847af3d83a6b0e625485c38dc58c4597820
1 #!/bin/ksh
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 if [ $VALGRIND = "true" ]
14 then
15 valgrind --tool=memcheck --leak-check=full ${REL_PATH}/connect 2> $0.valgr
16 else
17 ${REL_PATH}/connect 2>${REL_PATH}/tmp.out
19 #cat ${REL_PATH}/tmp.out
20 cat ${REL_PATH}/tmp.out | awk -F: '{ print $8 }'
21 rm ${REL_PATH}/tmp.out ${REL_PATH}/csqltmp.conf