*** empty log message ***
[csql.git] / test / adapter / Connect / test001na.ksh
blob22fb44eb5aa2a18324114ec89ac0b029f826985c
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= >>/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"
26 $CSQL_INSTALL_ROOT/bin/csqlsqlserver >/dev/null 2>&1 &
27 pid=$!
28 sleep 3
29 ${REL_PATH}/conntest1na
30 if [ $? -ne 0 ]
31 then
32 kill -9 $pid
33 exit 1;
35 rm -f /tmp/csql.conf
36 kill -9 $pid
37 exit 0;