6 program
="$GIT_VALGRIND/../../t/helper/$base"
9 program
="$GIT_VALGRIND/../../$base"
13 TOOL_OPTIONS
='--leak-check=no'
15 test -z "$GIT_VALGRIND_ENABLED" &&
18 case "$GIT_VALGRIND_MODE" in
22 VALGRIND_VERSION
=$
(valgrind
--version)
23 VALGRIND_MAJOR
=$
(expr "$VALGRIND_VERSION" : '[^0-9]*\([0-9]*\)')
24 VALGRIND_MINOR
=$
(expr "$VALGRIND_VERSION" : '[^0-9]*[0-9]*\.\([0-9]*\)')
25 test 3 -gt "$VALGRIND_MAJOR" ||
26 test 3 -eq "$VALGRIND_MAJOR" -a 4 -gt "$VALGRIND_MINOR" ||
27 TOOL_OPTIONS
="$TOOL_OPTIONS --track-origins=yes"
30 TOOL_OPTIONS
="--tool=$GIT_VALGRIND_MODE"
33 exec valgrind
-q --error-exitcode=126 \
34 --gen-suppressions=all \
35 --suppressions="$GIT_VALGRIND/default.supp" \
39 $GIT_VALGRIND_OPTIONS \