projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use __VA_ARGS__ for all of error's arguments
[git.git]
/
test-sha1.sh
diff --git
a/test-sha1.sh
b/test-sha1.sh
index 640856af5a6712a05b2530ad0951d84e631d0ec1..0f0bc5d02f4dcbd67c6d405350e5aaeb39f44bfb 100755
(executable)
--- a/
test-sha1.sh
+++ b/
test-sha1.sh
@@
-10,7
+10,7
@@
do
{
test -z "$pfx" || echo "$pfx"
dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
{
test -z "$pfx" || echo "$pfx"
dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
-
tr '[\0]' '[g]
'
+
perl -pe 'y/\000/g/
'
} | ./test-sha1 $cnt
`
if test "$expect" = "$actual"
} | ./test-sha1 $cnt
`
if test "$expect" = "$actual"
@@
-55,7
+55,7
@@
do
{
test -z "$pfx" || echo "$pfx"
dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
{
test -z "$pfx" || echo "$pfx"
dd if=/dev/zero bs=1048576 count=$cnt 2>/dev/null |
-
tr '[\0]' '[g]
'
+
perl -pe 'y/\000/g/
'
} | sha1sum |
sed -e 's/ .*//'
`
} | sha1sum |
sed -e 's/ .*//'
`