1 # test_midx_consistent <objdir>
2 test_midx_consistent
() {
3 ls $1/pack
/pack-
*.idx |
xargs -n 1 basename |
sort >expect
&&
4 test-tool read-midx
$1 |
grep ^pack-.
*\.idx$ |
sort >actual
&&
6 test_cmp expect actual
&&
7 git multi-pack-index
--object-dir=$1 verify