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

Re: [PATCH] Move test-* to t/helper/ subdirectory

From
Duy Nguyen <pclouds@gmail.com>
Date
May 10, 2016, 11:58 UTC
Message-ID
<20160510115856.GA1964@lanh>
In-Reply-To
<xmqqposvxlpb.fsf@gitster.mtv.corp.google.com>
On Mon, May 09, 2016 at 09:03:44AM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> Duy Nguyen <pclouds@gmail.com> writes:
> 
> > So among the options we have so far, which way should we go, or leave it as is?
> 
> Thanks for reminding me.
> 
> I like that version you sent with "I may have rushed to judgment"
> comment the most.  Perhaps I can just queue it with s/PATH/PROG/
> fixup?
Or a simpler, more-to-the-point patch like this?
-- 8< --
Subject: [PATCH] wrap-for-bin.sh: regenerate bin-wrappers when switching branches

Commit e6e7530 (test helpers: move test-* to t/helper/ subdirectory - 2016-04-13) moves test-* to t/helper. However because bin-wrappers/* only depend on wrap-for-bin.sh, when switching between a branch that has this commit and one that does not, bin-wrappers/* may not be regenerated and point to the old/outdated test programs.

This commit makes a non-functional change in wrap-for-bin.sh, just enough for 'make' to detect and re-execute wrap-for-bin.sh. When switching between a branch containing both this commit and e6e7530 and one containing neither, bin-wrappers/*, we should get fresh bin-wrappers/*.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 wrap-for-bin.sh | 1 +
 1 file changed, 1 insertion(+)
diff --git a/wrap-for-bin.sh b/wrap-for-bin.sh
index db0ec6a..22b6e49 100644
--- a/wrap-for-bin.sh
+++ b/wrap-for-bin.sh
@@ -17,6 +17,7 @@ fi
 GITPERLLIB='@@BUILD_DIR@@/perl/blib/lib'"${GITPERLLIB:+:$GITPERLLIB}"
 GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/locale'
 PATH='@@BUILD_DIR@@/bin-wrappers:'"$PATH"
+
 export GIT_EXEC_PATH GITPERLLIB PATH GIT_TEXTDOMAINDIR
 
 if test -n "$GIT_TEST_GDB"
-- 
2.8.2.524.g6ff3d78
-- 8< --
--
Duy
Previous: Junio C HamanoNext: Junio C Hamano
Message 15 of 16 in “Move test-* to t/helper/ subdirectory”
  1. Move test-* to t/helper/ subdirectoryNguyễn Thái Ngọc Duy, Apr 13, 2016
  2. Junio C HamanoApr 15, 2016
  3. Junio C HamanoApr 15, 2016
  4. Duy NguyenApr 16, 2016
  5. Junio C HamanoApr 26, 2016
  6. Duy NguyenApr 27, 2016
  7. Duy NguyenApr 27, 2016
  8. Junio C HamanoApr 27, 2016
  9. Duy NguyenMay 1, 2016
  10. Duy NguyenMay 1, 2016
  11. Junio C HamanoMay 2, 2016
  12. Duy NguyenMay 3, 2016
  13. Duy NguyenMay 8, 2016
  14. Junio C HamanoMay 9, 2016
  15. Duy NguyenMay 10, 2016
  16. Junio C HamanoMay 10, 2016

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.