*** empty log message ***
[csql.git] / test / adapter / Connect / test011na.ksh
blobfeb65ac0a709175f435a9d447f8f43a873e115d8
1 #!/bin/ksh
3 CSQL_CONF=${PWD}/adapter/Connect/csql.conf
4 REL_PATH=.
5 if [ -s "$CSQL_CONF" ]
6 then
7 REL_PATH=${PWD}/adapter/Connect
8 fi
10 rm -f /tmp/csql.conf
11 cp $REL_PATH/csql.conf /tmp/csql.conf
12 echo CSQL_SQL_SERVER=true >>/tmp/csql.conf
13 #echo PORT=6011 >>/tmp/csql.conf
14 export CSQL_CONFIG_FILE=/tmp/csql.conf
16 if [ -z "$DBUSER" ]
17 then
18 echo DSN=$DSN >>$CSQL_CONFIG_FILE
19 DS=$DSN
20 else
21 echo DSN=$DSN >>$CSQL_CONFIG_FILE
22 echo DBUSER=$DBUSER >>$CSQL_CONFIG_FILE
23 echo PASSWORD=$PASSWORD >>$CSQL_CONFIG_FILE
24 DS="$DSN $DBUSER $PASSWORD"
27 $CSQL_INSTALL_ROOT/bin/csqlsqlserver >/dev/null 2>&1 &
28 pid=$!
29 sleep 3
30 ${REL_PATH}/conntest11na
31 if [ $? -ne 0 ]
32 then
33 # kill -9 $pid
34 # kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'`
35 exit 1;
37 rm -f /tmp/csql.conf
38 #kill -9 $pid
39 #ipcrm -M 2266 -M 3366
40 #kill `ps -el | grep csqlsqlserver | gawk -F" " '{ print $4 }'`
41 exit 0;