valgrind: support test helpers
commit28fab7b23d0f9f15745c99baf25ec49e38594aa5
authorRené Scharfe <l.s.r@web.de>
Thu, 27 Oct 2016 22:14:00 +0000 (28 00:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Oct 2016 06:33:53 +0000 (27 23:33 -0700)
treec8c40964bad085370e60970ba065f8a4845c83f7
parent503e22418082d1ec616ec98ab90c6a73cd3ef96f
valgrind: support test helpers

Tests run with --valgrind call git commands through a wrapper script
that invokes valgrind on them.  This script (valgrind.sh) is in turn
invoked through symlinks created for each command in t/valgrind/bin/.

Since e6e7530d (test helpers: move test-* to t/helper/ subdirectory)
these symlinks have been broken for test helpers -- they point to the
old locations in the root of the build directory.  Fix that by teaching
the code for creating the links about the new location of the binaries,
and do the same in the wrapper script to allow it to find its payload.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh
t/valgrind/valgrind.sh