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 |
| 7 | testing "sha1sum: one-space separated input for -c" \ |
| 8 | 'echo "da39a3ee5e6b4b0d3255bfef95601890afd80709 EMPTY" | sha1sum -c' \ |
| 9 | "EMPTY: OK\n" \ |
| 10 | "" "" |
| 11 | rm EMPTY |
| 12 | |
Denys Vlasenko | e8ee862 | 2010-10-16 21:26:47 +0200 | [diff] [blame] | 13 | . ./md5sum.tests sha1sum d41337e834377140ae7f98460d71d908598ef04f |