windows porting build fix for linux
[csql.git] / test / cache / CacheVerify / test001.ksh
blobb4beee36df4698d6f3735fbca3fc70f4dbed64f2
1 #!/bin/ksh
2 # Test Case
3 # 1. Check for help message: $ cacheverify -?
5 cp $CSQL_CONFIG_FILE /tmp/csql.conf
6 export CSQL_CONFIG_FILE=/tmp/csql.conf
7 DS="$DSN $DBUSER $PASSWORD"
8 echo DSN=$DSN >>$CSQL_CONFIG_FILE
9 rm -f /tmp/csql/csqlds.conf
10 touch /tmp/csql/csqlds.conf
11 $CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
12 if [ $? -ne 0 ]
13 then
14 exit 1;
16 $CSQL_INSTALL_ROOT/bin/cacheverify ?
17 if [ $? -ne 0 ]
18 then
19 exit 1;
21 exit 0;