blob: a0a2dc57e9a718f3d6ef6b7bd7191598fe7436bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
. ./testing.sh
# testing "test name" "cmd" "expected result" "file input" "stdin"
>EMPTY
optional FEATURE_MD5_SHA1_SUM_CHECK
testing "sha1sum: one-space separated input for -c" \
'echo "da39a3ee5e6b4b0d3255bfef95601890afd80709 EMPTY" | sha1sum -c' \
"EMPTY: OK\n" \
"" ""
testing "sha1sum: -b flag in output" \
'sha1sum -b EMPTY' \
"da39a3ee5e6b4b0d3255bfef95601890afd80709 *EMPTY\n" \
"" ""
testing "sha1sum: -tb flag in output" \
'sha1sum -tb EMPTY' \
"da39a3ee5e6b4b0d3255bfef95601890afd80709 *EMPTY\n" \
"" ""
testing "sha1sum: -bt flag in output" \
'sha1sum -bt EMPTY' \
"da39a3ee5e6b4b0d3255bfef95601890afd80709 EMPTY\n" \
"" ""
SKIP=
rm EMPTY
. ./md5sum.tests sha1sum d41337e834377140ae7f98460d71d908598ef04f
|