tests: parameterize --valgrind option
commit952af3511c5dc7b7efd4c374d8b56d2c11d09d07
authorThomas Rast <trast@inf.ethz.ch>
Sun, 31 Mar 2013 08:00:16 +0000 (31 10:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2013 14:45:37 +0000 (1 07:45 -0700)
treea38bb13d8c3d4f80547cd2848866d540b2e93423
parentfd4fab894f564d04e0e3fb60659e6babfc4e3d81
tests: parameterize --valgrind option

Running tests under helgrind and DRD recently proved useful in
tracking down thread interaction issues.  This can unfortunately not
be done through GIT_VALGRIND_OPTIONS because any tool other than
memcheck would complain about unknown options.

Let --valgrind take an optional parameter that describes the valgrind
tool to invoke.  The default mode is to run memcheck as before.

Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README
t/test-lib.sh
t/valgrind/valgrind.sh