]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
cksum: add tests to verify the presence of "*"
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 3 May 2024 17:48:13 +0000 (19:48 +0200)
committerPádraig Brady <P@draigBrady.com>
Sat, 4 May 2024 13:08:29 +0000 (14:08 +0100)
* tests/cksum/cksum-a.sh: Add a test case.

tests/cksum/cksum-a.sh

index 2933940c6beb02199039a1cd5e21ec8a81b6025c..a8da17beeab858e50afed178bf4a6712bc44cf79 100755 (executable)
@@ -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