trie index changes
[csql.git] / test / adapter / Connect / test010na.ksh
blob5a261ea63e09451b7852ca315c16feaebf9c0a9c
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=6010 >>/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}/conntest10na
31 if [ $? -ne 0 ]
32 then
33 # kill -9 $pid
34 exit 1;
37 #kill -9 $pid
38 exit 0;