4 # check whether authentication is working
6 QUITFILE
=${PWD}/tools
/csql
/quit.sql
10 REL_PATH
=`pwd`/tools
/csql
12 echo "Case 1: With no option:"
13 $CSQL_INSTALL_ROOT/bin
/csql
< ${REL_PATH}/quit.sql
18 echo "Case 2: With ? option:"
19 $CSQL_INSTALL_ROOT/bin
/csql
-?
25 echo "Case 3: With wrong username and wrong password :"
26 $CSQL_INSTALL_ROOT/bin
/csql
-o 4 -u wronguser
-p password
< ${REL_PATH}/quit.sql
>/dev
/null
2>&1
34 echo "Case 4: With wrong username :"
35 $CSQL_INSTALL_ROOT/bin
/csql
-o 4 -u wronguser
-p manager
< ${REL_PATH}/quit.sql
>/dev
/null
2>&1
43 echo "Case 5: With wrong password :"
44 $CSQL_INSTALL_ROOT/bin
/csql
-o 4 -u root
-p password
< ${REL_PATH}/quit.sql
>/dev
/null
2>&1
52 echo "Case 6: With correct user name and password :"
53 $CSQL_INSTALL_ROOT/bin
/csql
-o 4 -u root
-p manager
< ${REL_PATH}/quit.sql