*** empty log message ***
[csql.git] / test / adapter / Parameter / test003na.ksh
blob6fafbac3293b247b2e1457aa5eccb6351693527a
1 #!/bin/ksh
3 CSQL_CONF=${PWD}/adapter/Parameter/csql.conf
4 REL_PATH=.
5 if [ -s "$CSQL_CONF" ]
6 then
7 REL_PATH=${PWD}/adapter/Parameter
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 echo DSN=$DSN >>$CSQL_CONFIG_FILE
17 DS="$DSN $DBUSER $PASSWORD"
18 $CSQL_INSTALL_ROOT/bin/csqlsqlserver >/dev/null 2>&1 &
19 pid=$!
20 sleep 5
21 ${REL_PATH}/paratest3na
22 if [ $? -ne 0 ]
23 then
24 kill -9 $pid
25 exit 1;
27 rm -f /tmp/csql.conf
28 kill -9 $pid
29 exit 0;