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

[RFC/PATCH 0/2] here-doc test bodies

From
Jeff King <peff@peff.net>
Date
Apr 9, 2021, 22:26 UTC
Message-ID
<YHDUg6ZR5vu93kGm@coredump.intra.peff.net>

I've been wanting to do this for years, but after getting bitten by a misplaced quote the other day, I finally did. This series allows you to do:

  test_expect_success <<\EOT
          something 'with single quotes'
  EOT
Thoughts?
The first patch is the implementation. The second one shows it off.
  [1/2]: test-lib: allow test snippets as here-docs
  [2/2]: t1404: convert to here-doc test bodies
 t/README                     |   8 +
 t/t1404-update-ref-errors.sh | 274 +++++++++++++++++------------------
 t/test-lib-functions.sh      |  30 +++-
 3 files changed, 171 insertions(+), 141 deletions(-)
-Peff
Next: Jeff King
Message 1 of 10 in “here-doc test bodies”
  1. 0/2 here-doc test bodiesJeff King, Apr 9, 2021
  2. 1/2 test-lib: allow test snippets as here-docsJeff King, Apr 9, 2021
  3. Jeff KingApr 9, 2021
  4. Junio C HamanoApr 9, 2021
  5. Junio C HamanoApr 10, 2021
  6. Jeff KingApr 10, 2021
  7. Ævar Arnfjörð BjarmasonApr 10, 2021
  8. 2/2 t1404: convert to here-doc test bodiesJeff King, Apr 9, 2021
  9. Derrick StoleeApr 10, 2021
  10. Jeff KingApr 10, 2021

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.