Merge branch 'ar/submodule-add-config'
[git/debian.git] / t / t5321-pack-large-objects.sh
blob8a56d98a0e88cef9add7d5603730daf3c6e91897
1 #!/bin/sh
3 # Copyright (c) 2018 Johannes Schindelin
6 test_description='git pack-object with "large" deltas
9 . ./test-lib.sh
10 . "$TEST_DIRECTORY"/lib-pack.sh
12 # Two similar-ish objects that we have computed deltas between.
13 A=$(test_oid packlib_7_0)
14 B=$(test_oid packlib_7_76)
16 test_expect_success 'setup' '
17 clear_packs &&
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
27 test_expect_success 'repack large deltas' '
28 printf "%s\\n" $A $B |
29 GIT_TEST_OE_DELTA_SIZE=2 git pack-objects tmp-pack
32 test_done