*** empty log message ***
[csql.git] / test / jdbc / Adapter / test001.ksh
blob6dd1d390b876ad3dc8036df68fd1b0fe705709ab
1 #!/bin/ksh
2 TESTFILE=${PWD}/jdbc/Adapter/ConTest01.java
3 REL_PATH=.
4 if [ -s "$TESTFILE" ]
5 then
6 REL_PATH=`pwd`/jdbc/Adapter
7 fi
8 export CLASSPATH=$CLASSPATH:${REL_PATH}
10 rm -f /tmp/csql.conf
11 cp $CSQL_CONFIG_FILE /tmp/csql.conf
12 export CSQL_CONFIG_FILE=/tmp/csql.conf
13 echo DSN=$DSN >>$CSQL_CONFIG_FILE
14 DS="$DSN $DBUSER $PASSWORD"
15 rm -f /tmp/csql/csqlds.conf
16 touch /tmp/csql/csqlds.conf
17 $CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
18 if [ $? -ne 0 ]
19 then
20 exit 1;
23 java ConTest01
24 if [ $? -ne 0 ]
25 then
26 exit 1;
28 exit 0;