Skip to content

Commit 458ad63

Browse files
committed
fixup! p5313: add size comparison test
Update to the latest iteration of gitgitgadget#1785. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent aa104fd commit 458ad63

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

t/perf/p5313-pack-objects.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,47 +25,49 @@ test_perf 'thin pack' '
2525
'
2626

2727
test_size 'thin pack size' '
28-
wc -c <out
28+
test_file_size out
2929
'
3030

3131
test_perf 'thin pack with --full-name-hash' '
3232
git pack-objects --thin --stdout --revs --sparse --full-name-hash <in-thin >out
3333
'
3434

3535
test_size 'thin pack size with --full-name-hash' '
36-
wc -c <out
36+
test_file_size out
3737
'
3838

3939
test_perf 'big pack' '
4040
git pack-objects --stdout --revs --sparse <in-big >out
4141
'
4242

4343
test_size 'big pack size' '
44-
wc -c <out
44+
test_file_size out
4545
'
4646

4747
test_perf 'big pack with --full-name-hash' '
4848
git pack-objects --stdout --revs --sparse --full-name-hash <in-big >out
4949
'
5050

5151
test_size 'big pack size with --full-name-hash' '
52-
wc -c <out
52+
test_file_size out
5353
'
5454

5555
test_perf 'repack' '
5656
git repack -adf
5757
'
5858

5959
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"
6162
'
6263

6364
test_perf 'repack with --full-name-hash' '
6465
git repack -adf --full-name-hash
6566
'
6667

6768
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"
6971
'
7072

7173
test_done

0 commit comments

Comments
 (0)