43 lines
962 B
Plaintext
43 lines
962 B
Plaintext
#
|
|
# TestRunner Startup Script
|
|
#
|
|
# 31.01.2006, M. Spiekermann
|
|
|
|
if [ "$1" == "--valgrind" ]; then
|
|
shift
|
|
runner="valgrind --num-callers=25 --suppressions=vgs.txt --error-limit=no $(which SecondoBDB) -test"
|
|
else
|
|
if [ "$1" == "--valgrindlc" ]; then
|
|
shift
|
|
runner="valgrind --num-callers=25 --leak-check=full --suppressions=vgs.txt --error-limit=no $(which SecondoBDB) -test"
|
|
else
|
|
runner="$(which SecondoBDB) -test"
|
|
fi
|
|
fi
|
|
|
|
if [ "$1" != "--no-tmp" ]; then
|
|
|
|
dateStr=$(date +%Y_%m%d_%H%M%S)
|
|
tempDir="/tmp/$USER/TestRunner_$dateStr"
|
|
mkdir -p $tempDir
|
|
export SECONDO_PARAM_SecondoHome="$tempDir"
|
|
|
|
else
|
|
shift
|
|
fi
|
|
|
|
# On linux the variable below will use a less efficient
|
|
# malloc implementation which does error detection and aborts
|
|
# the process as soon as an error is recognized.
|
|
export MALLOC_CHECK_=2
|
|
|
|
export SECONDO_PARAM_RTFlags="DEBUG:DemangleStackTrace,CMSG:Color,CTLG:SkipExamples,Server:BinaryTransfer"
|
|
|
|
$runner $*
|
|
|
|
rc=$?
|
|
|
|
rm -rf $tempDir
|
|
|
|
exit $rc
|