aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2023-02-06 20:11:51 +0000
committerStefan Eßer <se@FreeBSD.org>2023-02-06 20:25:44 +0000
commitd804497068c16bcb05383d7227d899f4ba59f706 (patch)
treed311689daa694bd338801e426273486f66349df3
parentd8b78838c5f0c81c158658e1e2f6f4ca26a8f6f7 (diff)
downloadsrc-d804497068c16bcb05383d7227d899f4ba59f706.tar.gz
src-d804497068c16bcb05383d7227d899f4ba59f706.zip
md5/tests: extend md5 test
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
-rw-r--r--sbin/md5/tests/coreutils-c-test.SH4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/md5/tests/coreutils-c-test.SH b/sbin/md5/tests/coreutils-c-test.SH
index 5996e533c627..95018abd1f27 100644
--- a/sbin/md5/tests/coreutils-c-test.SH
+++ b/sbin/md5/tests/coreutils-c-test.SH
@@ -8,8 +8,8 @@ testloop () {
opt=$1
while read algorithm; do
- ${algorithm}sum -c %%TESTSBASE%%/sbin/md5/${algorithm}.digest || exitcode=1
- ${algorithm}sum -c %%TESTSBASE%%/sbin/md5/${algorithm}sum.digest || exitcode=1
+ ${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
}