]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5326-multi-pack-bitmaps.sh
t5326: test multi-pack bitmap behavior
authorTaylor Blau <me@ttaylorr.com>
Tue, 31 Aug 2021 20:52:31 +0000 (16:52 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Sep 2021 20:56:43 +0000 (13:56 -0700)
commitc51f5a6437c62c5b231a4632896becd545c7e620
tree128bfb7d8ec1d1f79bba3c0394142bad950426d6
parentb1b82d1c3006ff9e25873d4ff01f976a13b526bb
t5326: test multi-pack bitmap behavior

This patch introduces a new test, t5326, which tests the basic
functionality of multi-pack bitmaps.

Some trivial behavior is tested, such as:

  - Whether bitmaps can be generated with more than one pack.
  - Whether clones can be served with all objects in the bitmap.
  - Whether follow-up fetches can be served with some objects outside of
    the server's bitmap

These use lib-bitmap's tests (which in turn were pulled from t5310), and
we cover cases where the MIDX represents both a single pack and multiple
packs.

In addition, some non-trivial and MIDX-specific behavior is tested, too,
including:

  - Whether multi-pack bitmaps behave correctly with respect to the
    pack-reuse machinery when the base for some object is selected from
    a different pack than the delta.
  - Whether multi-pack bitmaps correctly respect the
    pack.preferBitmapTips configuration.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5326-multi-pack-bitmaps.sh [new file with mode: 0755]