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

RE: make test

From
Joachim Schmitz <jojo@schmitz-digital.de>
Date
Oct 15, 2012, 11:58 UTC
Message-ID
<003901cdaacc$6f87e640$4e97b2c0$@schmitz-digital.de>
In-Reply-To
<507BF8FE.1060502@viscovery.net>
Show 23 quoted lines
> -----Original Message-----
> From: Johannes Sixt [mailto:j.sixt@viscovery.net]
> Sent: Monday, October 15, 2012 1:53 PM
> To: Joachim Schmitz
> Cc: git@vger.kernel.org
> Subject: Re: make test
> 
> Am 10/15/2012 13:37, schrieb Joachim Schmitz:
> > ...
> > + eval '
> >         find .git/objects -type f -print >should-be-empty &&
> >         test_line_count = 0 should-be-empty
> > '
> > ++ find .git/objects -type f -print
> > ++ test_line_count = 0 should-be-empty
> > ++ test 3 '!=' 3
> > +++ wc -l
> > ++ test 0 = 0
> > + eval_ret=0
> 
> This is the key line. If it is 'eval_ret=1' (or other non-zero value),
> then the test failed, and the lines above it usually indicate where in the
> test snippet the failure occurred.
...
++ mkdir failing-cleanup
++ cd failing-cleanup
++ cat
++ chmod +x failing-cleanup.sh
++ test_must_fail ./failing-cleanup.sh
+ eval_ret=1
+ test -z t
+ test 1 = 0
+ test -n ''
+ test t = t
+ test -n ''
+ return 1
+ test_failure_ 'tests clean up even on failures' '
...
This part?
Previous: Johannes SixtNext: Johannes Sixt
Message 7 of 12 in “make test”
  1. Joachim SchmitzOct 15, 2012
  2. Johannes SixtOct 15, 2012
  3. Joachim SchmitzOct 15, 2012
  4. Johannes SixtOct 15, 2012
  5. Joachim SchmitzOct 15, 2012
  6. Johannes SixtOct 15, 2012
  7. Joachim SchmitzOct 15, 2012
  8. Johannes SixtOct 15, 2012
  9. Andreas SchwabOct 15, 2012
  10. Joachim SchmitzOct 15, 2012
  11. Joachim SchmitzOct 17, 2012
  12. Joachim SchmitzOct 15, 2012

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.