repo.or.cz
/
crhash.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
crhash: md5: make T_i embedded constants
[crhash.git]
/
test.sh
blob
72eef30dab1b3947acfe5bd22dab2ceac2e64fe9
1
#!/bin/sh
2
cd
t
3
for
T
in
md5
;
do
4
for
M
in
$T
-*
.m
;
do
5
DIGEST1
=
$
(
..
/
crhash
-t
$T $M
)
6
DIGEST2
=
$
(
cat
$
(
basename
$M
.m
)
.
$T
)
7
if
test
"
$DIGEST1
"
=
"
$DIGEST2
"
;
then
8
echo
"PASS
$T
$M
"
9
else
10
echo
"FAIL
$T
$M
$DIGEST1
$DIGEST2
"
11
fi
12
done
13
done