From ecf7d12937cdc1b8a1b7a9df2251ecd28870bd75 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 3 May 2024 19:48:13 +0200 Subject: [PATCH] cksum: add tests to verify the presence of "*" * tests/cksum/cksum-a.sh: Add a test case. --- tests/cksum/cksum-a.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.47.2