From: Sylvestre Ledru Date: Fri, 3 May 2024 17:48:13 +0000 (+0200) Subject: cksum: add tests to verify the presence of "*" X-Git-Tag: v9.6~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecf7d12937cdc1b8a1b7a9df2251ecd28870bd75;p=thirdparty%2Fcoreutils.git cksum: add tests to verify the presence of "*" * tests/cksum/cksum-a.sh: Add a test case. --- diff --git a/tests/cksum/cksum-a.sh b/tests/cksum/cksum-a.sh index 2933940c6b..a8da17beea 100755 --- a/tests/cksum/cksum-a.sh +++ b/tests/cksum/cksum-a.sh @@ -67,4 +67,11 @@ cksum --untagged -a md5 /dev/null >out || fail=1 compare out out-1 || fail=1 compare out out-2 || fail=1 +# check that the '*' is present +cksum --tag --untagged --binary -a md5 /dev/null >out || fail=1 +grep " *" out >/dev/null || { fail=1; cat out; } +# Verify that the order does not reset binary indicator +cksum --binary --untagged -a md5 /dev/null >out-1 || fail=1 +compare out out-1 || fail=1 + Exit $fail