adding test scripts
[csql.git] / test / jdbc / Gateway / test046.ksh
blob2463c54dd7e6b195bb2309eb16eeadb2325c150e
1 #!/bin/ksh
2 # Donot Start CSQL Server
3 # Open through "jdbc:gateway", close and then again open through "jdbc:gateway". It should pass.
5 # GwTest6.java
7 TESTFILE=${PWD}/jdbc/Gateway/GwTest1.java
8 REL_PATH=.
9 if [ -s "$TESTFILE" ]
10 then
11 REL_PATH=`pwd`/jdbc/Gateway
13 export CLASSPATH=$CLASSPATH:${REL_PATH}
14 rm -f /tmp/csql.conf
15 cp $CSQL_CONFIG_FILE /tmp/csql.conf
16 export CSQL_CONFIG_FILE=/tmp/csql.conf
17 #export CSQL_CONFIG_FILE=$REL_PATH/csql.conf
18 echo "CACHE_TABLE=true" >>$CSQL_CONFIG_FILE
19 echo DSN=$DSN >>$CSQL_CONFIG_FILE
20 DS="$DSN $DBUSER $PASSWORD"
21 rm -f /tmp/csql/csqlds.conf
22 touch /tmp/csql/csqlds.conf
23 $CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
24 if [ $? -ne 0 ]
25 then
26 exit 1;
29 java GwTest6
30 if [ $? -ne 0 ]
31 then
32 exit 1;
36 exit 0;