Skip to content

test-parse-options update

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3test-parse-options: fix output when callback option failst/t0040-parse-options.sh test-parse-options.c+17 -50 replies
2/3test-parse-options: hold output in a strbuftest-parse-options.c+17 -130 replies
3/3test-parse-options: --expect=<string> option to simplify testst/t0040-parse-options.sh test-parse-options.c+66 -36 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] test-parse-options update

During the review of Pranit's "commit.verbose" series, I noticed an overly verbose input and output used to drive test-parse-options helper in t0040. Here is a patch to teach the program to allow us to write the test in a more concise way.

I'll leave it as an exercise to the readers to actually use this to convert tests in t0040. That needs to wait until Pranit's series is merged and the dust settles.

Junio C Hamano (3):
test-parse-options: fix output when callback option fails
test-parse-options: hold output in a strbuf
test-parse-options: --expect=<string> option to simplify tests

 t/t0040-parse-options.sh |   5 +--
 test-parse-options.c     | 110 ++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 97 insertions(+), 18 deletions(-)
Signature · 1 line
2.8.2-505-gdbd0e1d