File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -25,47 +25,49 @@ test_perf 'thin pack' '
25
25
'
26
26
27
27
test_size ' thin pack size' '
28
- wc -c < out
28
+ test_file_size out
29
29
'
30
30
31
31
test_perf ' thin pack with --full-name-hash' '
32
32
git pack-objects --thin --stdout --revs --sparse --full-name-hash <in-thin >out
33
33
'
34
34
35
35
test_size ' thin pack size with --full-name-hash' '
36
- wc -c < out
36
+ test_file_size out
37
37
'
38
38
39
39
test_perf ' big pack' '
40
40
git pack-objects --stdout --revs --sparse <in-big >out
41
41
'
42
42
43
43
test_size ' big pack size' '
44
- wc -c < out
44
+ test_file_size out
45
45
'
46
46
47
47
test_perf ' big pack with --full-name-hash' '
48
48
git pack-objects --stdout --revs --sparse --full-name-hash <in-big >out
49
49
'
50
50
51
51
test_size ' big pack size with --full-name-hash' '
52
- wc -c < out
52
+ test_file_size out
53
53
'
54
54
55
55
test_perf ' repack' '
56
56
git repack -adf
57
57
'
58
58
59
59
test_size ' repack size' '
60
- wc -c <.git/objects/pack/pack-*.pack
60
+ pack=$(ls .git/objects/pack/pack-*.pack) &&
61
+ test_file_size "$pack"
61
62
'
62
63
63
64
test_perf ' repack with --full-name-hash' '
64
65
git repack -adf --full-name-hash
65
66
'
66
67
67
68
test_size ' repack size with --full-name-hash' '
68
- wc -c <.git/objects/pack/pack-*.pack
69
+ pack=$(ls .git/objects/pack/pack-*.pack) &&
70
+ test_file_size "$pack"
69
71
'
70
72
71
73
test_done
You can’t perform that action at this time.
0 commit comments