adding test scripts
[csql.git] / test / tools / csqldump / test009.ksh
blob63c28a4a3d42d63b6a297293bd4b018c72762e62
1 #!/bin/ksh
3 #Run this test only under csql/test or on this directory.
4 #Otherwise, it may fail
6 # dump the data of not existing table, should say table does not exist
8 REL_PATH=.
9 if [ -s "$input" ]
10 then
11 REL_PATH=${PWD}/tools/csqldump
14 if [ "$VALGRIND" = "true" ]
15 then
16 valgrind --tool=memcheck --leak-check=full CSQL_INSTALL_ROOT/bin/csqldump -T t1 2> $0.valgr
17 else
18 $CSQL_INSTALL_ROOT/bin/csqldump -T t1
19 if [ $? -ne 0 ]
20 then
21 exit 0;
25 exit 1;