2010-10-17 00:56:47 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
2022-07-11 18:06:39 +05:30
|
|
|
. ./testing.sh
|
|
|
|
|
|
|
|
# testing "test name" "cmd" "expected result" "file input" "stdin"
|
|
|
|
>EMPTY
|
2023-01-02 21:32:17 +05:30
|
|
|
optional FEATURE_MD5_SHA1_SUM_CHECK
|
2022-07-11 18:06:39 +05:30
|
|
|
testing "sha1sum: one-space separated input for -c" \
|
|
|
|
'echo "da39a3ee5e6b4b0d3255bfef95601890afd80709 EMPTY" | sha1sum -c' \
|
|
|
|
"EMPTY: OK\n" \
|
|
|
|
"" ""
|
2023-01-02 21:32:17 +05:30
|
|
|
SKIP=
|
2022-07-11 18:06:39 +05:30
|
|
|
rm EMPTY
|
|
|
|
|
2010-10-17 00:56:47 +05:30
|
|
|
. ./md5sum.tests sha1sum d41337e834377140ae7f98460d71d908598ef04f
|