tests: locate i18n lib&data correctly under --valgrind
commit44d3770f38f399962946f2a16e492a9d81c4665d
authorThomas Rast <trast@student.ethz.ch>
Sun, 25 Jul 2010 14:55:46 +0000 (25 16:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Aug 2010 01:57:59 +0000 (12 18:57 -0700)
tree3e9f8da720dec42f9cde474f9447f1fa4d7bb2d0
parent107880a701e9cd42f2a537b7ba74d3cf596a3ebe
tests: locate i18n lib&data correctly under --valgrind

The new t020[01] for gettext support did not find git-sh-i18n and the
translation data when run under --valgrind: lib-gettext.sh tried to
locate them under $GIT_EXEC_PATH, which normally is the git build
directory, but is changed by --valgrind to point to the wrappers.

Introduce a new variable $GIT_BUILD_DIR which can be used to locate
data that resides under the build directory, and use that instead.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gettext.sh
t/test-lib.sh