projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a95cc22
)
(check-bsd2, check-bsd3): New tests for
author
Jim Meyering
<jim@meyering.net>
Sun, 31 Aug 2003 11:23:57 +0000
(11:23 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 31 Aug 2003 11:23:57 +0000
(11:23 +0000)
--check exit status and BSD SHA1 format (adapted from tests
in tests/md5sum/basic-1).
tests/sha1sum/basic-1
patch
|
blob
|
history
diff --git
a/tests/sha1sum/basic-1
b/tests/sha1sum/basic-1
index
e2a708d
..
d2c2d8e
100755
(executable)
--- 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.