From 5dfc368f5ec4c448cf3c76908b4c0e77cb4b902a Mon Sep 17 00:00:00 2001 From: Thomas Rast Date: Sun, 23 Jun 2013 20:12:57 +0200 Subject: test-lib: valgrind for only tests matching a pattern With the new --valgrind-only= 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= implies --verbose-only= unless --verbose is also in effect. Signed-off-by: Thomas Rast Signed-off-by: Junio C Hamano --- t/valgrind/valgrind.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/valgrind') diff --git a/t/valgrind/valgrind.sh b/t/valgrind/valgrind.sh index 6b87c91b6..42153036d 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) ;; -- cgit v1.2.1