X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=scripts%2Fval_psensor.sh;h=8f632f7e446d0c7b43af3a6713da57ef1db77364;hp=3848fa8e4dfebdaf4bc3606f191f608530daeb0e;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hpb=d40938d5701d04c33f1c79fee04fc15bf383a872 diff --git a/scripts/val_psensor.sh b/scripts/val_psensor.sh index 3848fa8..8f632f7 100755 --- a/scripts/val_psensor.sh +++ b/scripts/val_psensor.sh @@ -1,8 +1,17 @@ -#/bin/sh +#/bin/bash + +SDIR=`dirname $0` export G_SLICE=always-malloc export G_DEBUG=gc-friendly DUMP_FILE=psensor_`date +"%Y_%m_%d_%H_%M_%S"`.log -valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 --log-file=$DUMP_FILE `dirname $0`/../src/psensor \ No newline at end of file +for i in $SDIR/*supp +do + SUPP="$SUPP --suppressions=$i " +done + +echo starts psensor with options: $* + +valgrind -v $SUPP --tool=memcheck --leak-check=full --track-origins=yes --leak-resolution=high --num-callers=20 --log-file=$DUMP_FILE $SDIR/../src/psensor $* \ No newline at end of file