summaryrefslogtreecommitdiff
path: root/tests/valg.sh
blob: f3d4032bc087f3ec9b2a28b648269fab83442e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
SUP="--suppressions=./cryptsetup-valg-supps"
CHILD="--trace-children=yes --child-silent-after-fork=yes"
MALLOC="--malloc-fill=aa"
FREE="--free-fill=21"
STACK="--max-stackframe=2000000"
EXTRAS="--read-var-info=yes --show-reachable=yes"
LOGFILE="--log-file=./valglog.$(date +%j:%H:%M:%S:%N)_${INFOSTRING}"
LEAKCHECK="--leak-check=full --track-origins=yes"

exec valgrind  $SUP $GETSUP $CHILD $MALLOC $FREE $STACK $EXTRAS $LOGFILE  $LEAKCHECK "$@"