Adding tests for config module.
[csql.git] / test / system / config / test020.ksh
blobd572d69d3324e05e68d241941b5bfead2d4df1bd
1 #!/bin/sh
2 #MAP_ADDRESS should not be >2GB
5 #Run this test only under csql/test or on this directory.
6 #Otherwise, it may fail as CSQL_CONFIG_FILE may not be able to read
7 CSQL_CONF=${PWD}/system/config/csql.conf
8 REL_PATH=.
9 if [ -s "$CSQL_CONF" ]
10 then
11 REL_PATH=`pwd`/system/config
13 cp ${REL_PATH}/csql.conf ${REL_PATH}/csqltmp.conf
14 export CSQL_CONFIG_FILE=${REL_PATH}/csqltmp.conf
15 echo "MAP_ADDRESS=3000000000" >>${REL_PATH}/csqltmp.conf
16 ${REL_PATH}/connect >${REL_PATH}/tmp.out
17 cat ${REL_PATH}/tmp.out | gawk -F: '{ print $5 }'
18 rm ${REL_PATH}/tmp.out ${REL_PATH}/csqltmp.conf