mbox series

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

Message ID 20230401015632.103581-1-felipe.contreras@gmail.com (mailing list archive)
Headers show
Series test: add support for zsh and zsh completion | expand

Message

Felipe Contreras April 1, 2023, 1:56 a.m. UTC
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