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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user