]> git.ipfire.org Git - thirdparty/git.git/blame - t/t5319-multi-pack-index.sh
multi-pack-index: load into memory
[thirdparty/git.git] / t / t5319-multi-pack-index.sh
CommitLineData
a3407730
DS
1#!/bin/sh
2
3test_description='multi-pack-indexes'
4. ./test-lib.sh
5
4d80560c
DS
6midx_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
a3407730 15test_expect_success 'write midx with no packs' '
fc59e748
DS
16 test_when_finished rm -f pack/multi-pack-index &&
17 git multi-pack-index --object-dir=. write &&
4d80560c 18 midx_read_expect
a3407730
DS
19'
20
21test_done