# # TestRunner Startup Script # # 07.03.2007, M. Spiekermann export SECONDO_PARAM_RTFlags="DEBUG:DemangleStackTrace,CMSG:Color,SMI:NoTransactions,CTLG:SkipExamples,SI:PrintCmdTimes,SI:ShowCommandTime,SI:NoCommandEcho" # adjust the defaults if you have more # memory available export SECONDO_PARAM_NodeMem=32000 export SECONDO_PARAM_StringMem=8000 export SECONDO_PARAM_TextMem=8000 VALGRIND_STD_OPTIONS=" --num-callers=25 --suppressions=vgs.txt --error-limit=no --smc-check=all --track-origins=yes" if [ "$1" == "--valgrind" ]; then shift runner="valgrind $VALGRIND_STD_OPTIONS $(which SecondoBDB)" else if [ "$1" == "--valgrindlc" ]; then shift runner="valgrind $VALGRIND_STD_OPTIONS --leak-check=full $(which SecondoBDB)" else if [ "$1" == "--profile" ]; then shift runner="valgrind --tool=callgrind --dump-instr=yes --trace-jump=yes $(which SecondoBDB)" else runner="$(which SecondoBDB)" fi fi fi # check if nice command is present $runner $* rc=$? exit $rc