summaryrefslogtreecommitdiff
path: root/t/valgrind
diff options
context:
space:
mode:
authorThomas Rast <trast@inf.ethz.ch>2013-06-23 18:12:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-23 19:24:06 (GMT)
commit5dfc368f5ec4c448cf3c76908b4c0e77cb4b902a (patch)
treed00694edc2d230ecd0a1a980a6cab196d49b83fa /t/valgrind
parentff09af3fb8f5bede0de523723bbd00d6ef2ab71e (diff)
downloadgit-5dfc368f5ec4c448cf3c76908b4c0e77cb4b902a.zip
git-5dfc368f5ec4c448cf3c76908b4c0e77cb4b902a.tar.gz
git-5dfc368f5ec4c448cf3c76908b4c0e77cb4b902a.tar.bz2
test-lib: valgrind for only tests matching a pattern
With the new --valgrind-only=<pattern> option, one can enable --valgrind at a per-test granularity, exactly analogous to --verbose-only from the previous commit. The options are wired such that --valgrind implies --verbose (as before), but --valgrind-only=<pattern> implies --verbose-only=<pattern> unless --verbose is also in effect. Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/valgrind')
-rwxr-xr-xt/valgrind/valgrind.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/valgrind/valgrind.sh b/t/valgrind/valgrind.sh
index 6b87c91..4215303 100755
--- a/t/valgrind/valgrind.sh
+++ b/t/valgrind/valgrind.sh
@@ -4,6 +4,9 @@ base=$(basename "$0")
TOOL_OPTIONS='--leak-check=no'
+test -z "$GIT_VALGRIND_ENABLED" &&
+exec "$GIT_VALGRIND"/../../"$base" "$@"
+
case "$GIT_VALGRIND_MODE" in
memcheck-fast)
;;