aboutsummaryrefslogtreecommitdiff
path: root/tests/sha1sum.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
committerRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
commit336c44adca1768ada1e1e2f4d7dbbc33e994e582 (patch)
tree9780ee9602ffbca6b04e472d3ac0d158f92ac49c /tests/sha1sum.test
parenteb830728b12152702c3852d079ad5c8a7f6e709b (diff)
downloadtoybox-336c44adca1768ada1e1e2f4d7dbbc33e994e582.tar.gz
Factor out command name at the start of test name, have runtest.sh print it.
Diffstat (limited to 'tests/sha1sum.test')
-rwxr-xr-xtests/sha1sum.test16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/sha1sum.test b/tests/sha1sum.test
index cd621fd1..b4d4b753 100755
--- a/tests/sha1sum.test
+++ b/tests/sha1sum.test
@@ -6,22 +6,22 @@
# These tests are based on RFC3174 which were based on FIPS PUB 180-1
-testing "sha1sum TEST1" \
+testing "TEST1" \
"sha1sum" \
"a9993e364706816aba3e25717850c26c9cd0d89d -\n" \
"" "abc"
-testing "sha1sum TEST2" \
+testing "TEST2" \
"sha1sum" \
"84983e441c3bd26ebaae4aa1f95129e5e54670f1 -\n" \
"" "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
-testing "sha1sum TEST3" \
+testing "TEST3" \
'dd if=/dev/zero bs=1000 count=1000 2>/dev/null | tr \\0 a | sha1sum' \
"34aa973cd4c4daa4f61eeb2bdbad27316534016f -\n" \
"" ""
-testing "sha1sum TEST4" \
+testing "TEST4" \
'for i in `seq 1 10`; do echo -n 0123456701234567012345670123456701234567012345670123456701234567 ; done | sha1sum' \
"dea356a2cddd90c7a7ecedc5ebb563934f460452 -\n" \
"" ""
@@ -33,22 +33,22 @@ testing "sha1sum" \
"a9993e364706816aba3e25717850c26c9cd0d89d -\n" \
"" "abc"
-testing "sha1sum -" \
+testing "-" \
"sha1sum -" \
"a9993e364706816aba3e25717850c26c9cd0d89d -\n" \
"" "abc"
-testing "sha1sum file" \
+testing "file" \
"sha1sum file1" \
"a9993e364706816aba3e25717850c26c9cd0d89d file1\n" \
"" ""
-testing "sha1sum file1 file2" \
+testing "file1 file2" \
"sha1sum file1 file2" \
"a9993e364706816aba3e25717850c26c9cd0d89d file1\n589c22335a381f122d129225f5c0ba3056ed5811 file2\n" \
"" ""
-testing "sha1sum file1 file2 -" \
+testing "file1 file2 -" \
"sha1sum file1 file2 -" \
"a9993e364706816aba3e25717850c26c9cd0d89d file1\n589c22335a381f122d129225f5c0ba3056ed5811 file2\na9993e364706816aba3e25717850c26c9cd0d89d -\n" \
"" "abc"