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

Re: "./t0001-init.sh --valgrind" is broken

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 3, 2016, 15:56 UTC
Message-ID
<xmqqk2lj3692.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CACsJy8AE9VovwuviwOLxRDTAbTXCivRVhk8ia4mdUnMN-0Y4OA@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 11 quoted lines
> On Thu, Mar 3, 2016 at 7:09 PM, Duy Nguyen <pclouds@gmail.com> wrote:
>> But it's probably better that we inject valgrind command
>> from inside bin-wrappers script, the same way we inject gdb, I think.
>
> For the best of both worlds, we should recreate bin-wrappers in
> test-lib.sh (i.e. the valgrind way), not in Makefile.
>
> Somewhat
> unrelated, but because topdir is getting really crowded and
> bin-wrappers is used for the test suite only, it should be moved
> inside t/ (i'm going to move all test-* to t/ too, later).

Weren't there people who pointed their bin-wrappers/ with $PATH to test/use freshly baked Git before they convince themselves that they want to install it? Not building it from the top-level Makefile and moving it to elsewhere would be two breakages for them.

I am not sure if that is a good idea.

Moving test-* sources out of the top-level is a good idea, and placing test-* binaries somewhere other than the top-level is also a good idea. Just like t/lib-*.sh are helpers for tests, these are also test helpers that happen to be written in C and compiled, so I don't have a strong objection to make t/ the new location for them--a different location (e.g. a new "test-helpers/" directory) is also something I can go with.

Thanks.

In any case, are these two messages objections to J6t's fix, or are you fine with the fix for 2.8-rc1 and merely raising ideas to redo it in a different (i.e. your) way after 2.8 final, or are you planning to do a fix in a different way for 2.8-rc1?

Previous: Duy NguyenNext: Jeff King
Message 7 of 9 in “"./t0001-init.sh --valgrind" is broken”
  1. Christian CouderMar 3, 2016
  2. Duy NguyenMar 3, 2016
  3. Junio C HamanoMar 3, 2016
  4. Johannes SixtMar 3, 2016
  5. Duy NguyenMar 3, 2016
  6. Duy NguyenMar 3, 2016
  7. Junio C HamanoMar 3, 2016
  8. Jeff KingMar 3, 2016
  9. Johannes SixtMar 3, 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.