[PATCH 4/3] t/Makefile: include config.mak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is useful if you want to specify GIT_TEST_OPTS that you
always use.

Signed-off-by: Jeff King <peff@xxxxxxxx>
---
On Sun, Aug 09, 2009 at 04:35:19AM -0400, Jeff King wrote:

>   [1/3] tests: use "$TEST_DIRECTORY" instead of ".."
>   [2/3] tests: provide $TRASH_DIRECTORY variable
>   [3/3] tests: allow user to specify trash directory location

I think a 4/3 like this is nice to let you use --root without extra
typing each time.  And when you do "cd t && make t$WHATEVER.sh
GIT_TEST_OPTS='-v -i'", it will automatically be overridden, which is
probably what you want, so you can inspect the failed tests in t/trash*.

 t/Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/t/Makefile b/t/Makefile
index bf816fc..bd09390 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -3,6 +3,8 @@
 # Copyright (c) 2005 Junio C Hamano
 #
 
+-include ../config.mak
+
 #GIT_TEST_OPTS=--verbose --debug
 SHELL_PATH ?= $(SHELL)
 TAR ?= $(TAR)
-- 
1.6.4.178.g7a987

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]