t / t5321-pack-large-objects.shon commit Documentation/Makefile: add missing xsl dependencies for manpages (c91d03a)
   1#!/bin/sh
   2#
   3# Copyright (c) 2018 Johannes Schindelin
   4#
   5
   6test_description='git pack-object with "large" deltas
   7
   8'
   9. ./test-lib.sh
  10. "$TEST_DIRECTORY"/lib-pack.sh
  11
  12# Two similar-ish objects that we have computed deltas between.
  13A=01d7713666f4de822776c7622c10f1b07de280dc
  14B=e68fe8129b546b101aee9510c5328e7f21ca1d18
  15
  16test_expect_success 'setup' '
  17        clear_packs &&
  18        {
  19                pack_header 2 &&
  20                pack_obj $A $B &&
  21                pack_obj $B
  22        } >ab.pack &&
  23        pack_trailer ab.pack &&
  24        git index-pack --stdin <ab.pack
  25'
  26
  27test_expect_success 'repack large deltas' '
  28        printf "%s\\n" $A $B |
  29        GIT_TEST_OE_DELTA_SIZE=2 git pack-objects tmp-pack
  30'
  31
  32test_done