Re: [PATCH 2/2] Support Out-Of-Tree Valgrind Tests
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 6, 2012, 18:49 UTC
- Message-ID
- <7vaa3ttvj1.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <87mx7tiyhh.fsf@smith.obbligato.org>
greened@obbligato.org (David A. Greene) writes:
Show 8 quoted lines
>> Don't we, right now, get stuff as follows: >> >> item path >> -------------------------------------------- >> test-lib.sh $TEST_DIRECTORY > > Right now, yes, but it breaks for out-of-tree tests. In the out-of-tree > case, TEST_DIRECTORY doesn't contain test-lib.sh. For exmaple, in
Could it be that the reason for the breakage is because you are setting TEST_DIRECTORY to the directory that contains out-of-tree tests, instead of $GIT_BUILD_DIR/t/ directory?
The place you perform your operations are relative to $TRASH_DIRECTORY, and you would still find the main git relative to $GIT_BUILD_DIR.
Shouldn't TEST_DIRECTORY merely a short-hand for GIT_BUILD_DIR/t? What do you find relative to $TEST_DIRECTORY that cannot be found relative to GIT_BUILD_DIR/t?