summaryrefslogtreecommitdiff
path: root/tests/sha1sum
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-08-31 11:23:57 +0000
committerJim Meyering <jim@meyering.net>2003-08-31 11:23:57 +0000
commit53576d2edae4f5c123786345a530c6a835d32586 (patch)
tree18960f07ed7a8348b8cb8332cb06270a4729a7d8 /tests/sha1sum
parenta95cc226133455f2f508f22e5ef96f1b2ee25894 (diff)
downloadcoreutils-53576d2edae4f5c123786345a530c6a835d32586.tar.xz
(check-bsd2, check-bsd3): New tests for
--check exit status and BSD SHA1 format (adapted from tests in tests/md5sum/basic-1).
Diffstat (limited to 'tests/sha1sum')
-rwxr-xr-xtests/sha1sum/basic-16
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sha1sum/basic-1 b/tests/sha1sum/basic-1
index e2a708d57..d2c2d8e94 100755
--- a/tests/sha1sum/basic-1
+++ b/tests/sha1sum/basic-1
@@ -47,6 +47,12 @@ my @Tests =
{ERR=>"sha1sum: f.md5: no properly formatted "
. "SHA1 checksum lines found\n"},
{EXIT=> 1}],
+ ['check-bsd2', '--check',
+ {IN=> {'f.sha1' => "SHA1 (f) = $sha_degenerate\n"}},
+ {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
+ ['check-bsd3', '--check', '--status',
+ {IN=> {'f.sha1' => "SHA1 (f) = $sha_degenerate\n"}},
+ {AUX=> {f=> 'bar'}}, {EXIT=> 1}],
);
# Insert the `--text' argument for each test.