reftable/stack: expose option to disable auto-compaction
[git.git] / t / t5321-pack-large-objects.sh
blob70770fe274d84fca1d988c1d4dfd7457943363ee
1 #!/bin/sh
3 # Copyright (c) 2018 Johannes Schindelin
6 test_description='git pack-object with "large" deltas
10 TEST_PASSES_SANITIZE_LEAK=true
11 . ./test-lib.sh
12 . "$TEST_DIRECTORY"/lib-pack.sh
14 # Two similar-ish objects that we have computed deltas between.
15 A=$(test_oid packlib_7_0)
16 B=$(test_oid packlib_7_76)
18 test_expect_success 'setup' '
19 clear_packs &&
21 pack_header 2 &&
22 pack_obj $A $B &&
23 pack_obj $B
24 } >ab.pack &&
25 pack_trailer ab.pack &&
26 git index-pack --stdin <ab.pack
29 test_expect_success 'repack large deltas' '
30 printf "%s\\n" $A $B |
31 GIT_TEST_OE_DELTA_SIZE=2 git pack-objects tmp-pack
34 test_done