*** empty log message ***
[csql.git] / test / adapter / Connect / test003na.ksh
blobfb9e2ca9265dc48a701609b1b9ff4dd44e068b3e
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=6003 >>/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}/conntest3na
31 if [ $? -ne 0 ]
32 then
33 kill -9 $pid
34 exit 1;
37 kill -9 $pid
38 exit 0;