Merge branch 'ds/test-multi-pack-index'
Tests for the recently introduced multi-pack index machinery. * ds/test-multi-pack-index: packfile: close multi-pack-index in close_all_packs multi-pack-index: define GIT_TEST_MULTI_PACK_INDEX midx: close multi-pack-index on repack midx: fix broken free() in close_midx()
This commit is contained in:
4
t/README
4
t/README
@ -344,6 +344,10 @@ of the index for the whole test suite by bypassing the default number of
|
||||
cache entries and thread minimums. Setting this to 1 will make the
|
||||
index loading single threaded.
|
||||
|
||||
GIT_TEST_MULTI_PACK_INDEX=<boolean>, when true, forces the multi-pack-
|
||||
index to be written after every 'git repack' command, and overrides the
|
||||
'core.multiPackIndex' setting to true.
|
||||
|
||||
Naming Tests
|
||||
------------
|
||||
|
||||
|
@ -191,6 +191,7 @@ test_expect_success 'pack-objects respects --honor-pack-keep (local bitmapped pa
|
||||
|
||||
test_expect_success 'pack-objects respects --local (non-local bitmapped pack)' '
|
||||
mv .git/objects/pack/$packbitmap.* alt.git/objects/pack/ &&
|
||||
rm -f .git/objects/pack/multi-pack-index &&
|
||||
test_when_finished "mv alt.git/objects/pack/$packbitmap.* .git/objects/pack/" &&
|
||||
echo HEAD | git pack-objects --local --stdout --revs >3b.pack &&
|
||||
git index-pack 3b.pack &&
|
||||
|
@ -271,7 +271,7 @@ test_expect_success 'git-fsck incorrect offset' '
|
||||
|
||||
test_expect_success 'repack removes multi-pack-index' '
|
||||
test_path_is_file $objdir/pack/multi-pack-index &&
|
||||
git repack -adf &&
|
||||
GIT_TEST_MULTI_PACK_INDEX=0 git repack -adf &&
|
||||
test_path_is_missing $objdir/pack/multi-pack-index
|
||||
'
|
||||
|
||||
|
@ -1558,7 +1558,7 @@ test_expect_success 'O: blank lines not necessary after other commands' '
|
||||
INPUT_END
|
||||
|
||||
git fast-import <input &&
|
||||
test 8 = $(find .git/objects/pack -type f | wc -l) &&
|
||||
test 8 = $(find .git/objects/pack -type f | grep -v multi-pack-index | wc -l) &&
|
||||
test $(git rev-parse refs/tags/O3-2nd) = $(git rev-parse O3^) &&
|
||||
git log --reverse --pretty=oneline O3 | sed s/^.*z// >actual &&
|
||||
test_cmp expect actual
|
||||
|
Reference in New Issue
Block a user