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

Re: [PATCH 2/2] test-lib.sh: Allow running the test suite against installed git

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 14, 2009, 20:25 UTC
Message-ID
<7v3adfc0n4.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1236959116-3334-3-git-send-email-git@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 10 quoted lines
> Introduce variables externalpath and externalexecpath such that the test
> suite can be run against a git which is installed at $externalpath with
> subcommands at $externalexecpath. externalpath defaults to the git.git
> checkout, externalexecpath defaults to $externalpath. Run the suite as
>
> externalpath=somepath externalexecpath=someotherpath make test
>
> but note that this requires and uses parts of a compiled git in the
> git.git checkout: test helpers, templates and perl libraries are taken
> from there.

While I like the end result this series tries to achieve, may I suggest a few things?

 - This is like GIT_SKIP_TESTS and GIT_TEST_HTTPD in that extra
   environments affect how the tests are run.  It would be much easier to
   use if the new environment variables are named similarly, prefixed with
   GIT_, in all caps, and with underscores between words.
 - When externalpath is given but not externalexecpath, you can deduce the
   latter from the former by running "$externalpath/git --exec-path",
   which makes running the tests against an installed git even easier.
   For example, I keep many git installations under $HOME/git-snap-vX.Y.Z,
   and it would be great if your patch allowed me to say something like:
    $ GIT_TEST_INSTALLED=$HOME/git-snap-v1.4.4.4/bin/git make test
Previous: Michael J GruberNext: Michael J Gruber
Message 4 of 7 in “Allow running the test suite against installed git”
  1. 0/2 Allow running the test suite against installed gitMichael J Gruber, Mar 13, 2009
  2. 1/2 test-lib.sh: Test for presence of git-init in the right path.Michael J Gruber, Mar 13, 2009
  3. 2/2 test-lib.sh: Allow running the test suite against installed gitMichael J Gruber, Mar 13, 2009
  4. Junio C HamanoMar 14, 2009
  5. 0/2 Allow running the test suite against installed gitMichael J Gruber, Mar 16, 2009
  6. 1/2 test-lib.sh: Test for presence of git-init in the right path.Michael J Gruber, Mar 16, 2009
  7. 2/2 test-lib.sh: Allow running the test suite against installed gitMichael J Gruber, Mar 16, 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.