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' '
2525'
2626
2727test_size ' thin pack size' '
28- wc -c < out
28+ test_file_size out
2929'
3030
3131test_perf ' thin pack with --full-name-hash' '
3232 git pack-objects --thin --stdout --revs --sparse --full-name-hash <in-thin >out
3333'
3434
3535test_size ' thin pack size with --full-name-hash' '
36- wc -c < out
36+ test_file_size out
3737'
3838
3939test_perf ' big pack' '
4040 git pack-objects --stdout --revs --sparse <in-big >out
4141'
4242
4343test_size ' big pack size' '
44- wc -c < out
44+ test_file_size out
4545'
4646
4747test_perf ' big pack with --full-name-hash' '
4848 git pack-objects --stdout --revs --sparse --full-name-hash <in-big >out
4949'
5050
5151test_size ' big pack size with --full-name-hash' '
52- wc -c < out
52+ test_file_size out
5353'
5454
5555test_perf ' repack' '
5656 git repack -adf
5757'
5858
5959test_size ' repack size' '
60- wc -c <.git/objects/pack/pack-*.pack
60+ pack=$(ls .git/objects/pack/pack-*.pack) &&
61+ test_file_size "$pack"
6162'
6263
6364test_perf ' repack with --full-name-hash' '
6465 git repack -adf --full-name-hash
6566'
6667
6768test_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"
6971'
7072
7173test_done
You can’t perform that action at this time.
0 commit comments