Date: Mon, 6 Feb 2023 20:26:04 GMT From: =?utf-8?Q?Stefan=20E=C3=9Fer?= <se@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d804497068c1 - main - md5/tests: extend md5 test Message-ID: <202302062026.316KQ4C5091931@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=d804497068c16bcb05383d7227d899f4ba59f706 commit d804497068c16bcb05383d7227d899f4ba59f706 Author: Stefan Eßer <se@FreeBSD.org> AuthorDate: 2023-02-06 20:11:51 +0000 Commit: Stefan Eßer <se@FreeBSD.org> CommitDate: 2023-02-06 20:25:44 +0000 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 --- sbin/md5/tests/coreutils-c-test.SH | 4 ++-- 1 file 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 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302062026.316KQ4C5091931>