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

Re: [PATCH 1/3] remote-helpers: fix the run of all tests

From
Jeff King <peff@peff.net>
Date
Apr 2, 2013, 17:36 UTC
Message-ID
<20130402173652.GC24698@sigill.intra.peff.net>
In-Reply-To
<515B0D08.4020405@web.de>
On Tue, Apr 02, 2013 at 06:53:28PM +0200, Torsten Bögershausen wrote:
Show 7 quoted lines
> > I think the check for duplicate-numbers is the only one that does not
> > make sense. 
> []
> Not sure about that, I send a suggestion of a patch in a minute.
> Highlights:
> 1) - rename the contrib test cases and assigns real TC numbers
> 2) - Forward the numbers into the main "test Makefile"

I'm not sure if this is a good idea or not. It puts the contrib/remote-helpers into the same "number namespace" as the rest of the test scripts, and enforces uniqueness with test-lint-duplicates, when "make test" is run from contrib/remote-helpers. But people working on the main test scripts would not get any such check, and would happily break contrib/remote-helpers by adding duplicate test numbers.

It makes sense to me to either:
  1. Have the contrib/remote-helpers test live in their own test
     namespace completely, with their own numbers and test-results, and
     pull in relevant bits from the main test harness. We do this
     already with contrib/subtree.  I suggested this when the tests
     first appeared, but there was some argument, and I don't remember
     the details.
  2. Just integrate contrib test scripts into the main repository, but
     leave them off by default. For example, add:
       if test -z "$GIT_TEST_REMOTE_HELPERS"; then
              skip_all="Remote helper tests disabled (define GIT_TEST_REMOTE_HELPERS)"
              test_done
       fi
     to the top of the scripts, and then set GIT_TEST_REMOTE_HELPERS
     in contrib/remote-helpers/Makefile before chaining to the test
     Makefile.
-Peff
Previous: Torsten BögershausenNext: Torsten Bögershausen
Message 6 of 15 in “remote-helpers: trivial test fixes”
  1. 0/3 remote-helpers: trivial test fixesFelipe Contreras, Apr 1, 2013
  2. 1/3 remote-helpers: fix the run of all testsFelipe Contreras, Apr 1, 2013
  3. Antoine PelisseApr 1, 2013
  4. Jeff KingApr 1, 2013
  5. Torsten BögershausenApr 2, 2013
  6. Jeff KingApr 2, 2013
  7. Torsten BögershausenApr 3, 2013
  8. Junio C HamanoApr 3, 2013
  9. Felipe ContrerasApr 4, 2013
  10. 2/3 remote-bzr: remove stale check code for testsFelipe Contreras, Apr 1, 2013
  11. Junio C HamanoApr 1, 2013
  12. 3/3 remote-hg: fix hg-git test-caseFelipe Contreras, Apr 1, 2013
  13. Antoine PelisseApr 1, 2013
  14. Felipe ContrerasApr 1, 2013
  15. Felipe ContrerasApr 1, 2013

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.