blob: e6ddb2a86d7e07c6eca8e126773ee542d868d549 [file] [log] [blame]
Denys Vlasenkoe8ee8622010-10-16 21:26:47 +02001#!/bin/sh
2
Denys Vlasenko3ad3aa62022-07-11 14:36:39 +02003. ./testing.sh
4
5# testing "test name" "cmd" "expected result" "file input" "stdin"
6>EMPTY
Denys Vlasenkofb0c0002023-01-02 17:02:17 +01007optional FEATURE_MD5_SHA1_SUM_CHECK
Denys Vlasenko3ad3aa62022-07-11 14:36:39 +02008testing "sha1sum: one-space separated input for -c" \
9 'echo "da39a3ee5e6b4b0d3255bfef95601890afd80709 EMPTY" | sha1sum -c' \
10 "EMPTY: OK\n" \
11 "" ""
Denys Vlasenkofb0c0002023-01-02 17:02:17 +010012SKIP=
Denys Vlasenko3ad3aa62022-07-11 14:36:39 +020013rm EMPTY
14
Denys Vlasenkoe8ee8622010-10-16 21:26:47 +020015. ./md5sum.tests sha1sum d41337e834377140ae7f98460d71d908598ef04f