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

Re: [RFC PATCH] Makefile: new prove target for running the tests with TAP

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 14, 2010, 16:27 UTC
Message-ID
<20101014162757.GC16500@burratino>
In-Reply-To
<5c46df95f93b56aa2fce56c7efe7b2be80642c8b.1287045908.git.git@drmicha.warpmail.net>
Michael J Gruber wrote:
> Introduce a new make target "prove" which runs the tests via "prove"
I like it. :)
I've been using
	prove -j2 --shuffle t[0-9]*.sh

and would be happier to be able to dump GIT_PROVE_OPTS="-j2 --shuffle" in my config.mak and just run "make prove" instead of that unwieldly glob.

Show 12 quoted lines
> RFC also because of lack of doc, and:
> 
> Currently, one can do
> 
> make -C t t6010-merge-base.sh
> 
> or even
> 
> make -C t t601*
> 
> which is cool but undocumented. If we want this with prove it requires more
> effort
Doesn't "prove t601*" work well for that use case already?
> --- a/t/Makefile
> +++ b/t/Makefile
[...]
Show 6 quoted lines
> +prove: pre-clean
> +	@echo "*** prove ***"; GIT_CONFIG=.git/config $(PROVE) --exec '$(SHELL_PATH_SQ)' $(GIT_PROVE_OPTS) $(T) :: $(GIT_TEST_OPTS)
> +	$(MAKE) clean
> +
>  $(T):
>  	@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)

Not about this patch, but is that GIT_CONFIG setting needed? I would have guessed rather that test-lib.sh would unset GIT_CONFIG as soon as possible.

Previous: Ævar Arnfjörð BjarmasonNext: Jeff King
Message 5 of 10 in “Makefile: new prove target for running the tests with TAP”
  1. Makefile: new prove target for running the tests with TAPMichael J Gruber, Oct 14, 2010
  2. Ævar Arnfjörð BjarmasonOct 14, 2010
  3. Michael J GruberOct 14, 2010
  4. Ævar Arnfjörð BjarmasonOct 14, 2010
  5. Jonathan NiederOct 14, 2010
  6. Jeff KingOct 14, 2010
  7. Junio C HamanoOct 27, 2010
  8. Jeff KingOct 27, 2010
  9. Ævar Arnfjörð BjarmasonOct 27, 2010
  10. Michael J GruberOct 29, 2010

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.