aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-tool.c
diff options
context:
space:
mode:
authorDerrick Stolee <stolee@gmail.com>2024-12-20 16:21:11 +0000
committerJunio C Hamano <gitster@pobox.com>2024-12-20 08:37:04 -0800
commitd190124f277952bd828f932d87e76deabedf0c83 (patch)
tree36c9f3950fff22508d90c3f4270ad00565138a2f /t/helper/test-tool.c
parenttest-lib-functions: add test_cmp_sorted (diff)
downloadgit-d190124f277952bd828f932d87e76deabedf0c83.tar.gz
git-d190124f277952bd828f932d87e76deabedf0c83.zip
t6601: add helper for testing path-walk API
Add some tests based on the current behavior, doing interesting checks for different sets of branches, ranges, and the --boundary option. This sets a baseline for the behavior and we can extend it as new options are introduced. Store and output a 'batch_nr' value so we can demonstrate that the paths are grouped together in a batch and not following some other ordering. This allows us to test the depth-first behavior of the path-walk API. However, we purposefully do not test the order of the objects in the batch, so the output is compared to the expected output through a sort. It is important to mention that the behavior of the API will change soon as we start to handle UNINTERESTING objects differently, but these tests will demonstrate the change in behavior. Signed-off-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.c')
-rw-r--r--t/helper/test-tool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c
index 1ebb69a5dc..43676e7b93 100644
--- a/t/helper/test-tool.c
+++ b/t/helper/test-tool.c
@@ -52,6 +52,7 @@ static struct test_cmd cmds[] = {
{ "parse-subcommand", cmd__parse_subcommand },
{ "partial-clone", cmd__partial_clone },
{ "path-utils", cmd__path_utils },
+ { "path-walk", cmd__path_walk },
{ "pcre2-config", cmd__pcre2_config },
{ "pkt-line", cmd__pkt_line },
{ "proc-receive", cmd__proc_receive },