separating database engine and cache tests
[csql.git] / test / cache / CacheTable / test003.ksh
blob6d948fcd02564379390635af28aa5c05e8b9f26b
1 #!/bin/sh
2 # Test Case
4 # 3.create table, load with no definition option. should succeed and csqldump should display the records.
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
18 if [ $? -ne 0 ]
19 then
20 exit 1;
23 rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db
24 touch /tmp/csql/csqltable.conf /tmp/csql/csql.db
26 $CSQL_INSTALL_ROOT/bin/cachetable -t t1 -s > /dev/null 2>&1
27 if [ $? -ne 0 ]
28 then
29 exit 2;
32 rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db
33 touch /tmp/csql/csqltable.conf /tmp/csql/csql.db
35 $CSQL_INSTALL_ROOT/bin/csqldump
36 if [ $? -ne 0 ]
37 then
38 exit 3;
40 $CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/drop.sql > /dev/null 2>&1
41 isql $DSN < ${REL_PATH}/drop.sql >/dev/null 2>&1
42 rm -f /tmp/csql/csqltable.conf /tmp/csql/csql.db
43 touch /tmp/csql/csqltable.conf /tmp/csql/csql.db
45 exit 0;