diff options
author | Denys Vlasenko | 2022-07-11 14:36:39 +0200 |
---|---|---|
committer | Denys Vlasenko | 2022-07-11 14:36:39 +0200 |
commit | 3ad3aa6441ebaf817137051de2b74cb6b4379e7f (patch) | |
tree | dbd91fe86a10fac1085a25eca1f4045bfcdf3d8e /testsuite | |
parent | 298ac9507bb6cb932162f863c7b9623c0a37dedb (diff) | |
download | busybox-3ad3aa6441ebaf817137051de2b74cb6b4379e7f.zip busybox-3ad3aa6441ebaf817137051de2b74cb6b4379e7f.tar.gz |
shaNNNsum: accept one-space "HASH FILENAME" format for -c, closes 14866
function old new delta
md5_sha1_sum_main 496 501 +5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sha1sum.tests | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/sha1sum.tests b/testsuite/sha1sum.tests index a968fa8..7ad1334 100755 --- a/testsuite/sha1sum.tests +++ b/testsuite/sha1sum.tests @@ -1,3 +1,13 @@ #!/bin/sh +. ./testing.sh + +# testing "test name" "cmd" "expected result" "file input" "stdin" +>EMPTY +testing "sha1sum: one-space separated input for -c" \ + 'echo "da39a3ee5e6b4b0d3255bfef95601890afd80709 EMPTY" | sha1sum -c' \ + "EMPTY: OK\n" \ + "" "" +rm EMPTY + . ./md5sum.tests sha1sum d41337e834377140ae7f98460d71d908598ef04f |