3 test_description='compression setting of fast-import utility'
10 printf "%2000000s\n" "$*"
12 ) | git "$@" fast-import
15 while read expect config
17 test_expect_success "fast-import (packed) with $config" '
18 test_when_finished "rm -f .git/objects/pack/pack-*.*" &&
19 test_when_finished "rm -rf .git/objects/??" &&
20 import_large -c fastimport.unpacklimit=0 $config &&
21 sz=$(test_file_size .git/objects/pack/pack-*.pack) &&
23 small) test "$sz" -le 100000 ;;
24 large) test "$sz" -ge 100000 ;;
28 large -c core.compression=0
29 small -c core.compression=9
30 large -c core.compression=0 -c pack.compression=0
31 large -c core.compression=9 -c pack.compression=0
32 small -c core.compression=0 -c pack.compression=9
33 small -c core.compression=9 -c pack.compression=9
34 large -c pack.compression=0
35 small -c pack.compression=9
38 while read expect config
40 test_expect_success "fast-import (loose) with $config" '
41 test_when_finished "rm -f .git/objects/pack/pack-*.*" &&
42 test_when_finished "rm -rf .git/objects/??" &&
43 import_large -c fastimport.unpacklimit=9 $config &&
44 sz=$(test_file_size .git/objects/??/????*) &&
46 small) test "$sz" -le 100000 ;;
47 large) test "$sz" -ge 100000 ;;
51 large -c core.compression=0
52 small -c core.compression=9
53 large -c core.compression=0 -c core.loosecompression=0
54 large -c core.compression=9 -c core.loosecompression=0
55 small -c core.compression=0 -c core.loosecompression=9
56 small -c core.compression=9 -c core.loosecompression=9
57 large -c core.loosecompression=0
58 small -c core.loosecompression=9