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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 27, 2016, 16:15 UTC
Message-ID
<xmqqy47z9geq.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160427101833.GA5536@lanh>
Duy Nguyen <pclouds@gmail.com> writes:
> This patch forces bin-wrappers regeneration every time a test program
> is updated. A bit wasteful, but I don't see a better option (which is
> also why I limit this to test programs only).

In other words, when we update the location where the programs that would be eventually installed are created, we'd see the same problem.

I actually wonder if it is a better overall structure to move t/helper/test-foo back to test-foo, while keeping the source file that contains main() for test-foo at t/helper/test-foo.c. Then we do not have to have many copies that are slightly different in bin-wrappers, but they can all be

	exec "${GIT_EXEC_PATH}/$0" "$@"
instead of "bin-wrappers/git-bar" being
	exec "${GIT_EXEC_PATH}/git-bar" "$@"
and "bin-wrappers/test-foo" being
	exec "${GIT_EXEC_PATH}/t/helper/test-foo" "$@"
Previous: Duy NguyenNext: Duy Nguyen
Message 8 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.