t/helper: add 'find-pack' test-tool
commit66589f89ab8bf19f79fa9e9ec156bce43ed70e53
authorChristian Couder <christian.couder@gmail.com>
Mon, 2 Oct 2023 16:54:57 +0000 (2 18:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2023 21:54:29 +0000 (2 14:54 -0700)
treeeb738fa15f7ada1368545741296d819a7ef2ea44
parent6cfcabfb9f60369f6fb4d24465a7c98b1d90b34b
t/helper: add 'find-pack' test-tool

In a following commit, we will make it possible to separate objects in
different packfiles depending on a filter.

To make sure that the right objects are in the right packs, let's add a
new test-tool that can display which packfile(s) a given object is in.

Let's also make it possible to check if a given object is in the
expected number of packfiles with a `--check-count <n>` option.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/helper/test-find-pack.c [new file with mode: 0644]
t/helper/test-tool.c
t/helper/test-tool.h
t/t0081-find-pack.sh [new file with mode: 0755]