3 #Run this test only under csql/test or on this directory.
4 #Otherwise, it may fail
5 CSQL_CONF
=${PWD}/tools
/csqldump
/csql.conf
6 executable
=${PWD}/tools
/csqldump
/insert
8 if [ -s "$executable" -a -s "$CSQL_CONF" ]
10 REL_PATH
=${PWD}/tools
/csqldump
13 export CSQL_CONFIG_FILE
=$REL_PATH/csql.conf
14 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
17 $REL_PATH/insert
>/dev
/null
2>&1
23 if [ "$VALGRIND" = "true" ]
25 valgrind
--tool=memcheck
--leak-check=full
$CSQL_INSTALL_ROOT/bin
/csqldump
2> $0.valgr
27 $CSQL_INSTALL_ROOT/bin
/csqldump
>tmp.out
38 if [ "$VALGRIND" = "true" ]
40 valgrind
--tool=memcheck
--leak-check=full
$CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s $REL_PATH/drop.sql
2>> $0.valgr
42 $CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s $REL_PATH/drop.sql
> /dev
/null
2>&1
49 kill -9 $pid > /dev
/null
2>&1