*** empty log message ***
[csql.git] / test / system / config / test007.ksh
blob6e74df1bc4e49b7558eca29103fb1e16e7b5ff8c
1 #!/bin/sh
2 #MAX_THREADs should not accept value >64
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 mkdir -p /tmp/log
14 cp ${REL_PATH}/csql.conf ${REL_PATH}/csqltmp.conf
15 export CSQL_CONFIG_FILE=${REL_PATH}/csqltmp.conf
16 echo "MAX_THREADS=100" >>${REL_PATH}/csqltmp.conf
17 ${REL_PATH}/connect 2>${REL_PATH}/tmp.out
18 cat ${REL_PATH}/tmp.out | gawk -F: '{ print $5 }'
19 rm ${REL_PATH}/tmp.out ${REL_PATH}/csqltmp.conf