fcd59a8694f0eb6d278dfda22c085825cb5b5c80
[platform/upstream/cryptsetup.git] / tests / valg-api.sh
1 #!/bin/sh
2 SUP="--suppressions=./cryptsetup-valg-supps"
3 CHILD="--trace-children=no --child-silent-after-fork=yes"
4 MALLOC="--malloc-fill=aa"
5 FREE="--free-fill=21"
6 STACK="--max-stackframe=300000"
7 EXTRAS="--read-var-info=yes --show-reachable=yes"
8 LOGFILE="--log-file=./valglog.$(date +%H:%M:%S:%N)_${INFOSTRING}"
9 LEAKCHECK="--leak-check=full --track-origins=yes"
10
11 exec valgrind  $SUP $GETSUP $CHILD $MALLOC $FREE $STACK $EXTRAS $LOGFILE  $LEAKCHECK "$@"