7 test "x$OBJ" = "x" && OBJ=$PWD
9 # This mostly replicates the logic in test-exec.sh for running the
10 # regress tests under valgrind.
11 VG_TEST=`basename $UNIT_BINARY`
12 VG_LOG="$OBJ/valgrind-out/${VG_TEST}.%p"
13 VG_OPTS="--track-origins=yes --leak-check=full --log-file=${VG_LOG}"
14 VG_OPTS="$VG_OPTS --trace-children=yes"
16 if [ "x$VALGRIND_PATH" != "x" ]; then
17 VG_PATH="$VALGRIND_PATH"
20 exec $VG_PATH $VG_OPTS $UNIT_BINARY $UNIT_ARGS