]> git.ipfire.org Git - thirdparty/git.git/blob - t/t5319-multi-pack-index.sh
multi-pack-index: load into memory
[thirdparty/git.git] / t / t5319-multi-pack-index.sh
1 #!/bin/sh
2
3 test_description='multi-pack-indexes'
4 . ./test-lib.sh
5
6 midx_read_expect () {
7 cat >expect <<-EOF
8 header: 4d494458 1 0 0
9 object-dir: .
10 EOF
11 test-tool read-midx . >actual &&
12 test_cmp expect actual
13 }
14
15 test_expect_success 'write midx with no packs' '
16 test_when_finished rm -f pack/multi-pack-index &&
17 git multi-pack-index --object-dir=. write &&
18 midx_read_expect
19 '
20
21 test_done