mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(check-bsd3): New test to make sure that
`md5sum --check' doesn't accept the BSD SHA1 format (adapted from `check-bsd' test in tests/sha1sum/basic-1).
This commit is contained in:
1 parent
7b1f0fa519
commit
a95cc22613
1 file changed
+8
@@ -45,6 +45,14 @@ my @Tests =
|
||||
['check-bsd2', '--check', '--status',
|
||||
{IN=> {'f.md5' => "MD5 (f) = $degenerate\n"}},
|
||||
{AUX=> {f=> 'bar'}}, {EXIT=> 1}],
|
||||
# The sha1sum and md5sum drivers share a lot of code.
|
||||
# Ensure that md5sum does *not* share the part that makes
|
||||
# sha1sum accept BSD format.
|
||||
['check-bsd3', '--check', {IN=> {'f.sha1' => "SHA1 (f) = $degenerate\n"}},
|
||||
{AUX=> {f=> ''}},
|
||||
{ERR=>"md5sum: f.sha1: no properly formatted "
|
||||
. "MD5 checksum lines found\n"},
|
||||
{EXIT=> 1}],
|
||||
);
|
||||
|
||||
# Insert the `--text' argument for each test.
|
||||
|
||||
Reference in new issue
Block a user