diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-10-12 12:52:32 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-12 09:13:24 -0700 |
commit | d796cedbe8ca77310a7dabcafe60b040aa0e2b67 (patch) | |
tree | d1533e63c1234a811ea8110565bb535e344451f7 /Makefile | |
parent | 9424e373fd2136aa7f5cec23c8cafc272996ecd6 (diff) | |
download | git-d796cedbe8ca77310a7dabcafe60b040aa0e2b67.tar.gz |
bundle-uri: unit test "key=value" parsing
Create a new 'test-tool bundle-uri' test helper. This helper will assist
in testing logic deep in the bundle URI feature.
This change introduces the 'parse-key-values' subcommand, which parses
an input file as a list of lines. These are fed into
bundle_uri_parse_line() to test how we construct a 'struct bundle_list'
from that data. The list is then output to stdout as if the key-value
pairs were a Git config file.
We use an input file instead of stdin because of a future change to
parse in config-file format that works better as an input file.
Co-authored-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -722,6 +722,7 @@ PROGRAMS += $(patsubst %.o,git-%$X,$(PROGRAM_OBJS)) TEST_BUILTINS_OBJS += test-advise.o TEST_BUILTINS_OBJS += test-bitmap.o TEST_BUILTINS_OBJS += test-bloom.o +TEST_BUILTINS_OBJS += test-bundle-uri.o TEST_BUILTINS_OBJS += test-chmtime.o TEST_BUILTINS_OBJS += test-config.o TEST_BUILTINS_OBJS += test-crontab.o |