1
0
mirror of https://github.com/git/git.git synced 2024-09-28 13:33:31 +02:00
git/builtin
Derrick Stolee 0465a50506 multi-pack-index: define GIT_TEST_MULTI_PACK_INDEX
The multi-pack-index feature is tested in isolation by
t5319-multi-pack-index.sh, but there are many more interesting
scenarios in the test suite surrounding pack-file data shapes
and interactions. Since the multi-pack-index is an optional
data structure, it does not make sense to include it by default
in those tests.

Instead, add a new GIT_TEST_MULTI_PACK_INDEX environment variable
that enables core.multiPackIndex and writes a multi-pack-index
after each 'git repack' command. This adds extra test coverage
when needed.

There are a few spots in the test suite that need to react to this
change:

* t5319-multi-pack-index.sh: there is a test that checks that
  'git repack' deletes the multi-pack-index. Disable the environment
  variable to ensure this still happens.

* t5310-pack-bitmaps.sh: One test moves a pack-file from the object
  directory to an alternate. This breaks the multi-pack-index, so
  delete the multi-pack-index at this point, if it exists.

* t9300-fast-import.sh: One test verifies the number of files in
  the .git/objects/pack directory is exactly 8. Exclude the
  multi-pack-index from this count so it is still 8 in all cases.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-10-22 10:42:46 +09:00
..
add.c Merge branch 'nd/attr-pathspec-fix' 2018-09-24 10:30:51 -07:00
am.c Merge branch 'rs/mailinfo-format-flowed' 2018-09-17 13:53:57 -07:00
annotate.c
apply.c
archive.c
bisect--helper.c
blame.c
branch.c Merge branch 'ds/reachable' 2018-09-17 13:53:52 -07:00
bundle.c
cat-file.c
check-attr.c
check-ignore.c
check-mailmap.c
check-ref-format.c
checkout-index.c
checkout.c Merge branch 'jk/cocci' 2018-09-17 13:53:57 -07:00
clean.c
clone.c
column.c
commit-graph.c
commit-tree.c
commit.c Merge branch 'ds/commit-graph-tests' 2018-09-17 13:53:58 -07:00
config.c
count-objects.c
credential.c
describe.c
diff-files.c
diff-index.c
diff-tree.c
diff.c
difftool.c
fast-export.c
fetch-pack.c
fetch.c Merge branch 'ab/fetch-tags-noclobber' 2018-09-17 13:54:00 -07:00
fmt-merge-msg.c Merge branch 'jk/cocci' 2018-09-17 13:53:57 -07:00
for-each-ref.c
fsck.c
gc.c
get-tar-commit-id.c
grep.c
hash-object.c
help.c
index-pack.c
init-db.c
interpret-trailers.c
log.c Merge branch 'jk/cocci' 2018-09-17 13:53:57 -07:00
ls-files.c
ls-remote.c
ls-tree.c
mailinfo.c
mailsplit.c
merge-base.c
merge-file.c
merge-index.c
merge-ours.c
merge-recursive.c
merge-tree.c
merge.c Merge branch 'jk/cocci' 2018-09-17 13:53:57 -07:00
mktag.c
mktree.c
multi-pack-index.c
mv.c
name-rev.c
notes.c
pack-objects.c Merge branch 'tb/void-check-attr' 2018-09-24 10:30:45 -07:00
pack-redundant.c
pack-refs.c
patch-id.c
prune-packed.c
prune.c
pull.c Merge branch 'jk/cocci' 2018-09-17 13:53:57 -07:00
push.c
range-diff.c Merge branch 'es/format-patch-rangediff' 2018-09-17 13:53:56 -07:00
read-tree.c
rebase--helper.c
receive-pack.c Merge branch 'en/double-semicolon-fix' 2018-09-24 10:30:47 -07:00
reflog.c
remote-ext.c
remote-fd.c
remote.c Merge branch 'ms/remote-error-message-update' 2018-09-24 10:30:52 -07:00
repack.c multi-pack-index: define GIT_TEST_MULTI_PACK_INDEX 2018-10-22 10:42:46 +09:00
replace.c
rerere.c
reset.c
rev-list.c
rev-parse.c
revert.c
rm.c
send-pack.c
serve.c
shortlog.c
show-branch.c
show-index.c
show-ref.c
stripspace.c
submodule--helper.c Sync with 2.19.1 2018-09-27 11:53:39 -07:00
symbolic-ref.c
tag.c
unpack-file.c
unpack-objects.c
update-index.c
update-ref.c
update-server-info.c
upload-archive.c
upload-pack.c
var.c
verify-commit.c
verify-pack.c
verify-tag.c
worktree.c
write-tree.c