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

Re: [PATCH] test-lib.sh: add --long-tests option

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 17, 2008, 06:39 UTC
Message-ID
<7vy7547egk.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1213666142-24680-1-git-send-email-LeWiemann@gmail.com>
Lea Wiemann <lewiemann@gmail.com> writes:
Show 13 quoted lines
> diff --git a/t/test-lib.sh b/t/test-lib.sh
> index 163167c..4cd99af 100644
> --- a/t/test-lib.sh
> +++ b/t/test-lib.sh
> @@ -80,6 +80,8 @@ do
>  		debug=t; shift ;;
>  	-i|--i|--im|--imm|--imme|--immed|--immedi|--immedia|--immediat|--immediate)
>  		immediate=t; shift ;;
> +	-l|--l|--lo|--lon|--long|--long-|--long-t|--long-te|--long-tes|--long-test|--long-tests)
> +		export GIT_TEST_LONG=t; shift ;;
>  	-h|--h|--he|--hel|--help)
>  		help=t; shift ;;
>  	-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
Hmm.

I am guessing that the reason why you do not unset GIT_TEST_LONG upfront in the script is because the user can do:

	$ cd t
        $ GIT_TEST_LONG=t; export GIT_TEST_LONG
        $ ./t9999-this-test.sh
        $ ./t9999-that-test.sh
or even:
	$ GIT_TEST_LONG=t make test

without having to say --long-tests from the command line that way. If that is the case, however, I wonder if this --long-tests option is even necessary.

Please do not get me wrong --- I am _not_ suggesting to unset (or set to empty) GIT_TEST_LONG at the beginning of test-lib before command line parsing. I do want the ability to run all the expensive tests with a single command line retained, as I expect it would be useful before a major release.

Previous: Lea WiemannNext: Lea Wiemann
Message 2 of 4 in “test-lib.sh: add --long-tests option”
  1. test-lib.sh: add --long-tests optionLea Wiemann, Jun 17, 2008
  2. Junio C HamanoJun 17, 2008
  3. Lea WiemannJun 17, 2008
  4. Junio C HamanoJun 17, 2008

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.