Sindbad~EG File Manager
| Current Path : /usr/tests/sbin/md5/ |
|
|
| Current File : /usr/tests/sbin/md5/bsd-c-test |
#!/bin/sh
exitcode=0
testloop () {
opt=$1
while read algorithm; do
n=0
for f in /usr/tests/sbin/md5/*.inp; do
n=$((n + 1))
expected=$(head -$n /usr/tests/sbin/md5/$algorithm.digest | tail -1 | cut -w -f4)
hash=$($algorithm $opt -c "$expected" $f) || exitcode=1
done
done < /usr/tests/sbin/md5/algorithms.txt
}
testloop ""
testloop -q
testloop -r
testloop -qr
exit $exitcode
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists