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 1, 2013, 23:40 UTC
Message-ID
<20130401234016.GC30935@sigill.intra.peff.net>
In-Reply-To
<CALWbr2wAqudzbfiSHmD1uAVQX3mtbf5vgr2JXbXEg7yzaKXJcw@mail.gmail.com>
On Mon, Apr 01, 2013 at 11:46:00PM +0200, Antoine Pelisse wrote:
Show 5 quoted lines
> On Mon, Apr 1, 2013 at 11:14 PM, Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
> > +export TEST_LINT :=
> 
> I think "test-lint-executable" still makes sense here.

Also test-lint-shell-syntax, which finds a problem with the current code:

  $ cd contrib/remote-helpers
  $ make test TEST_LINT=test-lint-shell-syntax
  make -e -C ../../t test
  make[1]: Entering directory `/home/peff/compile/git/t'
  rm -f -r test-results
  /home/peff/compile/git/contrib/remote-helpers/test-bzr.sh:139: error: echo -n is not portable (please use printf):   echo -n content > expected &&
  make[1]: *** [test-lint-shell-syntax] Error 1
  make[1]: Leaving directory `/home/peff/compile/git/t'
  make: *** [test] Error 2

I think the check for duplicate-numbers is the only one that does not make sense. Unfortunately it is not as simple as using $(filter-out) to get rid of it from TEST_LINT, as that variable may not even be set until we chain to the other Makefile (e.g., if it comes from loading config.mak).

-Peff
Previous: Antoine PelisseNext: Torsten Bögershausen
Message 4 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.