]> git.ipfire.org Git - thirdparty/git.git/commit
t0040-parse-options: test parse_options() with various 'parse_opt_flags'
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 19 Aug 2022 16:03:55 +0000 (18:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 18:13:14 +0000 (11:13 -0700)
commitc1b117d31ca9b09444f14092c35d092f3330823e
treefec35ec1001ec1e892ffed234ba52d5685b9e71e
parent31a66c196435d12e9562ce89da8646016ec8b1e7
t0040-parse-options: test parse_options() with various 'parse_opt_flags'

In 't0040-parse-options.sh' we thoroughly test the parsing of all
types and forms of options, but in all those tests parse_options() is
always invoked with a 0 flags parameter.

Add a few tests to demonstrate how various 'enum parse_opt_flags'
values are supposed to influence option parsing.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-parse-options.c
t/helper/test-tool.c
t/helper/test-tool.h
t/t0040-parse-options.sh