adding test scripts
[csql.git] / test / tools / csql / test041.ksh
blob206f782f0543c066c1ea1a16be3beceac08860fe
1 #!/bin/ksh
2 # Test Case
3 # check binary data type table t1 field f1 int ,f2 binary(4),primary key(f2)
5 QUITFILE=${PWD}/tools/csql/quit.sql
6 REL_PATH=.
7 if [ -s "$QUITFILE" ]
8 then
9 REL_PATH=`pwd`/tools/csql
12 if [ "$VALGRIND" = "true" ]
13 then
14 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/datatype11.sq 2> $0.valgr
15 else
16 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/datatype11.sql
17 if [ $? -ne 0 ]
18 then
19 exit 1;
23 exit 0;