Merge branch 'es/worktree-repair-copied' into cw/worktrees-relative
[git/gitster.git] / t / t5327-multi-pack-bitmaps-rev.sh
blob9cac03a94bf4b4014d0ecd9fd7fc6320949b3e9f
1 #!/bin/sh
3 test_description='exercise basic multi-pack bitmap functionality (.rev files)'
5 . ./test-lib.sh
6 . "${TEST_DIRECTORY}/lib-bitmap.sh"
8 # We'll be writing our own MIDX, so avoid getting confused by the automatic
9 # ones.
10 GIT_TEST_MULTI_PACK_INDEX=0
11 GIT_TEST_MULTI_PACK_INDEX_WRITE_INCREMENTAL=0
13 # Unlike t5326, this test exercise multi-pack bitmap functionality where the
14 # object order is stored in a separate .rev file.
15 GIT_TEST_MIDX_WRITE_REV=1
16 GIT_TEST_MIDX_READ_RIDX=0
17 export GIT_TEST_MIDX_WRITE_REV
18 export GIT_TEST_MIDX_READ_RIDX
20 test_midx_bitmap_rev () {
21 writeLookupTable=false
23 for i in "$@"
25 case $i in
26 "pack.writeBitmapLookupTable") writeLookupTable=true;;
27 esac
28 done
30 test_expect_success 'setup bitmap config' '
31 rm -rf * .git &&
32 git init &&
33 git config pack.writeBitmapLookupTable '"$writeLookupTable"'
36 midx_bitmap_core rev
37 midx_bitmap_partial_tests rev
40 test_midx_bitmap_rev
41 test_midx_bitmap_rev "pack.writeBitmapLookupTable"
43 test_done