Denys Vlasenko | e8ee862 | 2010-10-16 21:26:47 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Denys Vlasenko | 3ad3aa6 | 2022-07-11 14:36:39 +0200 | [diff] [blame] | 3 | . ./testing.sh |
| 4 | |
| 5 | # testing "test name" "cmd" "expected result" "file input" "stdin" |
| 6 | >EMPTY |
Denys Vlasenko | fb0c000 | 2023-01-02 17:02:17 +0100 | [diff] [blame] | 7 | optional FEATURE_MD5_SHA1_SUM_CHECK |
Denys Vlasenko | 3ad3aa6 | 2022-07-11 14:36:39 +0200 | [diff] [blame] | 8 | testing "sha1sum: one-space separated input for -c" \ |
| 9 | 'echo "da39a3ee5e6b4b0d3255bfef95601890afd80709 EMPTY" | sha1sum -c' \ |
| 10 | "EMPTY: OK\n" \ |
| 11 | "" "" |
Denys Vlasenko | fb0c000 | 2023-01-02 17:02:17 +0100 | [diff] [blame] | 12 | SKIP= |
Denys Vlasenko | 3ad3aa6 | 2022-07-11 14:36:39 +0200 | [diff] [blame] | 13 | rm EMPTY |
| 14 | |
Denys Vlasenko | e8ee862 | 2010-10-16 21:26:47 +0200 | [diff] [blame] | 15 | . ./md5sum.tests sha1sum d41337e834377140ae7f98460d71d908598ef04f |