The testloop function is called with various parameters, but those were ignored in the coreutils-c-test script. This was an oversight and is fixed by passing the option to all invocations of the hash functions in this test script. Reported by: des MFC after: 3 days
22 lines
407 B
Bash
22 lines
407 B
Bash
#!/bin/sh
|
|
|
|
/bin/cp %%TESTSBASE%%/sbin/md5/*.inp . || exit 127
|
|
|
|
exitcode=0
|
|
|
|
testloop () {
|
|
opt=$1
|
|
|
|
while read algorithm; do
|
|
${algorithm}sum $opt -c %%TESTSBASE%%/sbin/md5/${algorithm}.digest || exitcode=1
|
|
${algorithm}sum $opt -c %%TESTSBASE%%/sbin/md5/${algorithm}sum.digest || exitcode=1
|
|
done < %%TESTSBASE%%/sbin/md5/algorithms.txt
|
|
}
|
|
|
|
testloop ""
|
|
testloop -q
|
|
testloop -r
|
|
testloop -qr
|
|
|
|
exit $exitcode
|