test-sha1: test hashing large buffer

test to hash a large buffer in one go is more important than
hashing large amount of data in small fixed chunks.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2006-06-24 02:59:20 -07:00
parent b65bc21e7d
commit b57cbbf8a8
2 changed files with 32 additions and 9 deletions

View File

@ -11,7 +11,7 @@ do
test -z "$pfx" || echo "$pfx"
dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
tr '[\0]' '[g]'
} | ./test-sha1
} | ./test-sha1 $cnt
`
if test "$expect" = "$actual"
then