summaryrefslogtreecommitdiff
path: root/tests/misc/md5sum
diff options
context:
space:
mode:
authorErik Auerswald <auerswal@unix-ag.uni-kl.de>2008-06-01 12:40:40 +0200
committerJim Meyering <meyering@redhat.com>2008-06-01 16:55:11 +0200
commit86535835fe2c1fb73f0eeed4b2b1f1d95987272b (patch)
tree98352655a0ddb2e34417e4f01ab9f5a02bfb1e68 /tests/misc/md5sum
parent01e6181965e1d60dd1ba483c18682d167a9c48a0 (diff)
downloadcoreutils-86535835fe2c1fb73f0eeed4b2b1f1d95987272b.tar.xz
md5sum: new option, --quiet, to suppress OK messages
sha1sum, sha224sum, sha384sum, and sha512sum accept it, too. * src/md5sum.c: add option --quiet to suppress OK messages * doc/coreutils.texi: document option --quiet * tests/misc/md5sum: add test for option --quiet * NEWS: mention new option --quiet for md5sum+sha*sum in "New features" section
Diffstat (limited to 'tests/misc/md5sum')
-rwxr-xr-xtests/misc/md5sum9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/md5sum b/tests/misc/md5sum
index c99d6bbce..bc1ac0893 100755
--- a/tests/misc/md5sum
+++ b/tests/misc/md5sum
@@ -45,6 +45,15 @@ my @Tests =
{OUT=>"f: OK\n"}],
['check-2', '--check', '--status', {IN=>{'f.md5' => "$degenerate f\n"}},
{AUX=> {f=> 'foo'}}, {EXIT=> 1}],
+ ['check-quiet1', '--check', '--quiet', {AUX=> {f=> ''}},
+ {IN=> {'f.md5' => "$degenerate f\n"}},
+ {OUT=>""}],
+ ['check-quiet2', '--check', '--quiet',
+ {IN=>{'f.md5' => "$degenerate f\n"}},
+ {AUX=> {f=> 'foo'}}, {OUT=>"f: FAILED\n"},
+ {ERR=>"md5sum: WARNING: 1 of 1 computed"
+ . " checksum did NOT match\n"},
+ {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.