*** empty log message ***
[csql.git] / test / adapter / Parameter / test004na.ksh
blobd86231f5e1cf6b7f6e8dd24203976b381e0cee7f
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
15 echo DSN=$DSN >>$CSQL_CONFIG_FILE
16 DS="$DSN $DBUSER $PASSWORD"
18 $CSQL_INSTALL_ROOT/bin/csqlsqlserver >/dev/null 2>&1 &
19 pid=$!
20 sleep 5
21 ${REL_PATH}/paratest4na
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;