sha1sum.tests 369 B

123456789101112131415
  1. #!/bin/sh
  2. . ./testing.sh
  3. # testing "test name" "cmd" "expected result" "file input" "stdin"
  4. >EMPTY
  5. optional FEATURE_MD5_SHA1_SUM_CHECK
  6. testing "sha1sum: one-space separated input for -c" \
  7. 'echo "da39a3ee5e6b4b0d3255bfef95601890afd80709 EMPTY" | sha1sum -c' \
  8. "EMPTY: OK\n" \
  9. "" ""
  10. SKIP=
  11. rm EMPTY
  12. . ./md5sum.tests sha1sum d41337e834377140ae7f98460d71d908598ef04f