interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / t5327-multi-pack-bitmaps-rev.sh

44 lines · 1022 bytes Raw Blame History
1#!/bin/sh
2
3test_description='exercise basic multi-pack bitmap functionality (.rev files)'
4
5. ./test-lib.sh
6. "${TEST_DIRECTORY}/lib-bitmap.sh"
7
8# We'll be writing our own MIDX, so avoid getting confused by the automatic
9# ones.
10GIT_TEST_MULTI_PACK_INDEX=0
11GIT_TEST_MULTI_PACK_INDEX_WRITE_INCREMENTAL=0
12
13# Unlike t5326, this test exercise multi-pack bitmap functionality where the
14# object order is stored in a separate .rev file.
15GIT_TEST_MIDX_WRITE_REV=1
16GIT_TEST_MIDX_READ_RIDX=0
17export GIT_TEST_MIDX_WRITE_REV
18export GIT_TEST_MIDX_READ_RIDX
19
20test_midx_bitmap_rev () {
21 writeLookupTable=false
22
23 for i in "$@"
24 do
25 case $i in
26 "pack.writeBitmapLookupTable") writeLookupTable=true;;
27 esac
28 done
29
30 test_expect_success 'setup bitmap config' '
31 rm -rf * .git &&
32 git init &&
33 git config pack.writeBitmapLookupTable '"$writeLookupTable"' &&
34 git config maintenance.auto false
35 '
36
37 midx_bitmap_core rev
38 midx_bitmap_partial_tests rev
39}
40
41test_midx_bitmap_rev
42test_midx_bitmap_rev "pack.writeBitmapLookupTable"
43
44test_done