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

[PATCH 0/2] test: add support for zsh and zsh completion

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 1, 2023, 01:56 UTC
Message-ID
<20230401015632.103581-1-felipe.contreras@gmail.com>

I have been running these zsh completion tests for many years in my git-completion fork, and they have been sent before to the mailing list [1], only to be ignored.

But by adding zsh support in the test library it's possible to run them in a more straightforward way (directly in the test script, and not in a separate zsh fork for every assert).

By running these tests it's easy to see the many issues the upstream zsh completion code has (13 failures), all of which are fixed in git-completion.

[1] https://lore.kernel.org/git/20220830093138.1581538-3-felipe.contreras@gmail.com/
Felipe Contreras (2):
  test: fix build for zsh
  test: completion: add zsh tests
 t/t9904-completion-zsh.sh | 1143 +++++++++++++++++++++++++++++++++++++
 t/t9904/.gitignore        |    1 +
 t/t9904/.zshrc            |   51 ++
 t/t9904/_git              |    1 +
 t/test-lib.sh             |    5 +
 5 files changed, 1201 insertions(+)
 create mode 100755 t/t9904-completion-zsh.sh
 create mode 100644 t/t9904/.gitignore
 create mode 100644 t/t9904/.zshrc
 create mode 120000 t/t9904/_git
-- 
2.40.0
Next: Felipe Contreras
Message 1 of 4 in “test: add support for zsh and zsh completion”
  1. 0/2 test: add support for zsh and zsh completionFelipe Contreras, Apr 1, 2023
  2. 1/2 test: fix build for zshFelipe Contreras, Apr 1, 2023
  3. Eric SunshineApr 1, 2023
  4. 2/2 test: completion: add zsh testsFelipe Contreras, Apr 1, 2023

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.