lock manager and chunk allocation mutex modificationsw
[csql.git] / test / jdbc / Gateway / test001.ksh
blobad860b8feacc6cf7db1c51420aac2e2ec3873b01
1 #!/bin/ksh
2 TESTFILE=${PWD}/jdbc/Gateway/ConnTest01.java
3 REL_PATH=.
4 if [ -s "$TESTFILE" ]
5 then
6 REL_PATH=`pwd`/jdbc/Gateway
7 fi
8 export CLASSPATH=$CLASSPATH:${REL_PATH}
9 cp $CSQL_CONFIG_FILE /tmp/csql.conf
10 export CSQL_CONFIG_FILE=/tmp/csql.conf
11 echo DSN=$DSN >>$CSQL_CONFIG_FILE
12 DS="$DSN $DBUSER $PASSWORD"
13 rm -f /tmp/csql/csqlds.conf
14 touch /tmp/csql/csqlds.conf
15 $CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
16 if [ $? -ne 0 ]
17 then
18 exit 1;
20 java ConnTest01
21 if [ $? -ne 0 ]
22 then
23 exit 1;
25 exit 0;