separating database engine and cache tests
[csql.git] / test / cache / CacheTable / test005.ksh
blob6898301a2e0ae33733899a37ec1ae75b7c1dee81
1 #!/bin/sh
2 # Test Case
4 # 5.create table, load with definition option. should fail.
6 #Run this test only under csql/test or on this directory.
7 #Otherwise, it may fail
9 input=${PWD}/cache/CacheTable/inputtest4.sql
10 REL_PATH=.
11 if [ -s "$input" ]
12 then
13 REL_PATH=${PWD}/cache/CacheTable
16 isql $DSN < ${REL_PATH}/inputtest4.sql >/dev/null 2>&1
17 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/csqlinput.sql > /dev/null 2>&1
19 rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db
20 touch /tmp/csql/csqltable.conf /tmp/csql/csql.db
21 ret =0
22 $CSQL_INSTALL_ROOT/bin/cachetable -t t1 > /dev/null 2>&1
23 if [ $? -eq 0 ]
24 then
25 ret=1;
28 rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db
29 touch /tmp/csql/csqltable.conf /tmp/csql/csql.db
31 isql $DSN < ${REL_PATH}/drop.sql >/dev/null 2>&1
32 $CSQL_INSTALL_ROOT/bin/csql -s $REL_PATH/drop.sql > /dev/null 2>&1
34 exit $ret;