t / t5319-multi-pack-index.shon commit multi-pack-index: load into memory (4d80560)
   1#!/bin/sh
   2
   3test_description='multi-pack-indexes'
   4. ./test-lib.sh
   5
   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
  15test_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
  21test_done