*** empty log message ***
[csql.git] / test / system / config / test032.ksh
blobf6c72f07ea3da3365aa5bb387e5ff1e99e6f46e0
1 #!/bin/ksh
2 #LOCK_TIMEOUT_RETRY should not be >100
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 "LOCK_TIMEOUT_RETRY=200" >>${REL_PATH}/csqltmp.conf
16 if [ $VALGRIND = "true" ]
17 then
18 valgrind --tool=memcheck --leak-check=full ${REL_PATH}/connect 2> $0.valgr
19 else
20 ${REL_PATH}/connect 2>${REL_PATH}/tmp.out
22 cat ${REL_PATH}/tmp.out | awk -F: '{ print $8 }'
23 rm ${REL_PATH}/tmp.out ${REL_PATH}/csqltmp.conf