<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/misc, branch v9.0</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.0</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2021-09-20T22:42:03Z</updated>
<entry>
<title>tests: date-debug: avoid a false failure on solaris</title>
<updated>2021-09-20T22:42:03Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-20T22:35:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=23953cecf9c1fce96c9b94bce74aa5f8e3494424'/>
<id>urn:sha1:23953cecf9c1fce96c9b94bce74aa5f8e3494424</id>
<content type='text'>
* tests/misc/date-debug.sh: Use a dynamic time format,
as the C locale on solaris uses %T rather than %H:%M:%S
for the time component.
</content>
</entry>
<entry>
<title>tests: env-s.pl: avoid spurious failure on OS X</title>
<updated>2021-09-20T17:01:53Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@fb.com</email>
</author>
<published>2021-09-20T05:44:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7b0db3c69c2171e352b219d473cb5469ba635d8d'/>
<id>urn:sha1:7b0db3c69c2171e352b219d473cb5469ba635d8d</id>
<content type='text'>
* tests/misc/env-S.pl: The __CF_USER_TEXT_ENCODING envvar
would cause many of these sub-tests to fail. Ignore it.
</content>
</entry>
<entry>
<title>cksum: support more transparent emulation of older utils</title>
<updated>2021-09-20T15:21:15Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-20T10:54:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=88b7ff98fe412a32e321d8cc76c896d0fb81c51c'/>
<id>urn:sha1:88b7ff98fe412a32e321d8cc76c896d0fb81c51c</id>
<content type='text'>
* src/digest.c: Allow using the --untagged option with --check,
so that `cksum -a md5 --untagged` used to emulate md5sum for example,
may be augmented with the --check option.  Also support the --tag
option with cksum, to allow overriding a previous --untagged setting.
* doc/coreutils.texi: Adjust accordingly.
* tests/misc/cksum-a.sh: Likewise.
</content>
</entry>
<entry>
<title>tests: fix typo in cksum-a.sh</title>
<updated>2021-09-17T11:08:19Z</updated>
<author>
<name>Tianjia Zhang</name>
<email>tianjia.zhang@linux.alibaba.com</email>
</author>
<published>2021-09-17T03:06:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a2b5e9f85b572d2c441f3d7ad04cd2d0a7e92465'/>
<id>urn:sha1:a2b5e9f85b572d2c441f3d7ad04cd2d0a7e92465</id>
<content type='text'>
* tests/misc/cksum-a.sh: fix typo md5um to md5sum.
</content>
</entry>
<entry>
<title>digest: ignore empty lines when checking</title>
<updated>2021-09-16T19:39:28Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-16T11:29:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e6c57cf19b1e2660da1ceca92fc8837493cd157e'/>
<id>urn:sha1:e6c57cf19b1e2660da1ceca92fc8837493cd157e</id>
<content type='text'>
* src/digest.c (digest_check): Treat empty lines like comments,
as commented checksum files very often have empty lines.
* tests/misc/md5sum.pl: Adjust accordingly.
</content>
</entry>
<entry>
<title>tests: ensure returns_ check failures are propagated</title>
<updated>2021-09-16T11:21:16Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-16T11:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=814cbd56981642f55f24caf2532e250c5ae8690e'/>
<id>urn:sha1:814cbd56981642f55f24caf2532e250c5ae8690e</id>
<content type='text'>
* tests/misc/cksum-a.sh: Set fail=1 if returns_ check fails.
* tests/misc/sync.sh: Likewise.
* tests/misc/yes.sh: Likewise.
</content>
</entry>
<entry>
<title>cksum: fix --check with non tagged format checksums</title>
<updated>2021-09-16T11:20:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-16T10:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=73f8fd760d4c5e63e6290c65092063e855e68626'/>
<id>urn:sha1:73f8fd760d4c5e63e6290c65092063e855e68626</id>
<content type='text'>
* src/digest.c: Always set the digest_length, so that
we check the correct number of hex digits when parsing
non tagged format checksums.
* tests/misc/cksum-a.sh: Add a test case.  Also fix
up this test which was ineffective due to fail=1
being set in a subshell and ignored.
</content>
</entry>
<entry>
<title>digest: support windows format checksum files</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-14T21:52:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ed1c58427d574fb4ff0cb8f915eb0d554000ceeb'/>
<id>urn:sha1:ed1c58427d574fb4ff0cb8f915eb0d554000ceeb</id>
<content type='text'>
Support checksum files with CRLF line endings,
which is a common gotcha for using --check on windows,
or with checksum files generated on windows.
Note we escape \r here to support the original coreutils format
(with file name at EOL), and file names with literal
\r characters as the last character of their name.

* src/digest.c (filename_unescape): Convert \\r -&gt; \r.
(print_filename): Escape \r -&gt; \\r.
(output_file): Detect \r chars in file names.
(digest_check): Ignore literal \r char at EOL.
* tests/misc/md5sum.pl: Add a test case.
* tests/misc/sha1sum.pl: Likewise.
* NEWS: Mention the improvement.
</content>
</entry>
<entry>
<title>cksum: operate in binary mode only</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-13T14:24:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8d5038af05ccce1c9f916c7e49cc381218ddeca2'/>
<id>urn:sha1:8d5038af05ccce1c9f916c7e49cc381218ddeca2</id>
<content type='text'>
This only practically matters on windows.
But given there are separate text handling options in cygwin,
keep the interface simple, and avoid exposing the
confusing binary/text difference here.

* doc/coreutils.texi (md5sum invocation): Mention that
--binary and --text are not supported by the cksum command.
* src/digest.c: Set flag to use binary mode by default.
(output_file): Don't distinguish text and binary modes with
' ' and '*', and just use ' ' always.
</content>
</entry>
<entry>
<title>cksum: use --tag format by default</title>
<updated>2021-09-15T19:44:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-13T11:57:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f9a787656b70d914fb4430f7d332027e6a906a08'/>
<id>urn:sha1:f9a787656b70d914fb4430f7d332027e6a906a08</id>
<content type='text'>
This format is a better default, since it results in simpler usage,
as you don't need to specify --tag on generation or -a on
checking invocations.  Also it's a more general format supporting
mixed and length adjusted digests.

* doc/coreutils.texi (cksum invocation): Document a new --untagged
option, to use the older coreutils format.
(md5sum invocation): Mention that cksum doesn't support --tag.
* src/digest.c: Adjust cksum(1) to default to --tag,
and accept the new --untagged option.
* tests/misc/b2sum.sh: Adjust accordingly.
* tests/misc/cksum-a.sh: Likewise.
* tests/misc/cksum-c.sh: Likewise.
</content>
</entry>
</feed>
