git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jeff King <peff@peff.net>
Date
Aug 9, 2009, 08:50 UTC
Message-ID
<20090809085037.GA31406@coredump.intra.peff.net>
In-Reply-To
<20090809083518.GA8147@coredump.intra.peff.net>

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

Signed-off-by: Jeff King <peff@peff.net>
---
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
Previous: Johannes Schindelin
Message 7 of 7 in “moving test trash directories”
  1. 0/3 moving test trash directoriesJeff King, Aug 9, 2009
  2. 1/3 tests: use "$TEST_DIRECTORY" instead of ".."Jeff King, Aug 9, 2009
  3. 2/3 tests: provide $TRASH_DIRECTORY variableJeff King, Aug 9, 2009
  4. 3/3 tests: allow user to specify trash directory locationJeff King, Aug 9, 2009
  5. Johannes SixtAug 9, 2009
  6. Johannes SchindelinAug 9, 2009
  7. 4/3 t/Makefile: include config.makJeff King, Aug 9, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.