aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc/read-errors.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2024-11-01 15:11:55 +0000
committerPádraig Brady <P@draigBrady.com>2024-11-02 19:57:35 +0000
commita94929715c1c111cfab3b9f9875307aba59094d8 (patch)
treeed4066aeec51b5986d9b829cf2226f81ee3dfdd1 /tests/misc/read-errors.sh
parenttest: add string operators added by POSIX 2024 (diff)
downloadcoreutils-a94929715c1c111cfab3b9f9875307aba59094d8.tar.gz
coreutils-a94929715c1c111cfab3b9f9875307aba59094d8.zip
cksum: add support for --algorithm=crc32b
$ echo -n '123456789' | cksum --raw -a crc32b | basenc --base16 CBF43926 * bootstrap.conf: Explicitly depend on the crc module. * doc/coreutils.texi (cksum): Add "crc32b" as an argument to -a. * src/cksum.c (crc32b_sum_stream): A new function similar to crc_sum_stream, but which does not include the length in the CRC calculation. * src/cksum.h: Add crc32b_sum_stream prototype. * src/digest.c: Add "crc32b" as an argument to -a. * tests/cksum/cksum.sh: Refactor to test both crc and crc32b. * tests/cksum/cksum-a.sh: Add "crc32b" case. * tests/cksum/cksum-base64.pl: Likewise. * tests/misc/read-errors.sh: Likewise. * NEWS: Mention the new feature.
Diffstat (limited to 'tests/misc/read-errors.sh')
-rwxr-xr-xtests/misc/read-errors.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/misc/read-errors.sh b/tests/misc/read-errors.sh
index 3f1e0c42c..ae9184c27 100755
--- a/tests/misc/read-errors.sh
+++ b/tests/misc/read-errors.sh
@@ -27,6 +27,7 @@ cat .
cksum -a blake2b .
cksum -a bsd .
cksum -a crc .
+cksum -a crc32b .
cksum -a md5 .
cksum -a sha1 .
cksum -a sha224 .