diff options
author | Lawrence Teo <lteo@cvs.openbsd.org> | 2014-03-26 04:07:45 +0000 |
---|---|---|
committer | Lawrence Teo <lteo@cvs.openbsd.org> | 2014-03-26 04:07:45 +0000 |
commit | 549f71fe5940795fd61e5e3e9b9558ae4f96ac9d (patch) | |
tree | e6a9f15c27d56a30d444503284f57e787c9bab52 /regress/bin | |
parent | 4721cd9cebe0ecdd01a7211c091ce9fa10e09283 (diff) |
Remove sum test since sum(1) is gone; add sha512 test
Diffstat (limited to 'regress/bin')
-rw-r--r-- | regress/bin/md5/Makefile | 8 | ||||
-rw-r--r-- | regress/bin/md5/testsuite.sha512 | 10 | ||||
-rw-r--r-- | regress/bin/md5/testsuite.sum | 10 |
3 files changed, 14 insertions, 14 deletions
diff --git a/regress/bin/md5/Makefile b/regress/bin/md5/Makefile index 92c105c0963..54b9ff5e1e2 100644 --- a/regress/bin/md5/Makefile +++ b/regress/bin/md5/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.5 2010/08/08 20:15:32 david Exp $ +# $OpenBSD: Makefile,v 1.6 2014/03/26 04:07:44 lteo Exp $ -REGRESS_TARGETS=cksum md5 sha1 sha256 sum md5_string_vs_files md5_pipe +REGRESS_TARGETS=cksum md5 sha1 sha256 sha512 md5_string_vs_files md5_pipe REGRESS_TARGETS+=md5_pipe_vs_file md5_multiple_files cksum: @@ -15,8 +15,8 @@ sha1: sha256: sha256 -x | cmp -s ${.CURDIR}/testsuite.sha256 /dev/stdin -sum: - sum -x | cmp -s ${.CURDIR}/testsuite.sum /dev/stdin +sha512: + sha512 -x | cmp -s ${.CURDIR}/testsuite.sha512 /dev/stdin # shouldn't allow files on the command line along with '-s' md5_string_vs_files: diff --git a/regress/bin/md5/testsuite.sha512 b/regress/bin/md5/testsuite.sha512 new file mode 100644 index 00000000000..a6cec72f5af --- /dev/null +++ b/regress/bin/md5/testsuite.sha512 @@ -0,0 +1,10 @@ +SHA512 test suite: +SHA512 ("") = cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e +SHA512 ("a") = 1f40fc92da241694750979ee6cf582f2d5d7d28e18335de05abc54d0560e0f5302860c652bf08d560252aa5e74210546f369fbbbce8c12cfc7957b2652fe9a75 +SHA512 ("abc") = ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f +SHA512 ("message digest") = 107dbf389d9e9f71a3a95f6c055b9251bc5268c2be16d6c13492ea45b0199f3309e16455ab1e96118e8a905d5597b72038ddb372a89826046de66687bb420e7c +SHA512 ("abcdefghijklmnopqrstuvwxyz") = 4dbff86cc2ca1bae1e16468a05cb9881c97f1753bce3619034898faa1aabe429955a1bf8ec483d7421fe3c1646613a59ed5441fb0f321389f77f48a879c7b1f1 +SHA512 ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq") = 204a8fc6dda82f0a0ced7beb8e08a41657c16ef468b228a8279be331a703c33596fd15c13b1b07f9aa1d3bea57789ca031ad85c7a71dd70354ec631238ca3445 +SHA512 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = 1e07be23c26a86ea37ea810c8ec7809352515a970e9253c26f536cfc7a9996c45c8370583e0a78fa4a90041d71a4ceab7423f19c71b9d5a3e01249f0bebd5894 +SHA512 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 72ec1ef1124a45b047e8b7c75a932195135bb61de24ec0d1914042246e0aec3a2354e093d76f3048b456764346900cb130d2a4fd5dd16abb5e30bcb850dee843 +SHA512 (one million 'a' characters) = e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b diff --git a/regress/bin/md5/testsuite.sum b/regress/bin/md5/testsuite.sum deleted file mode 100644 index 39ad979cb2f..00000000000 --- a/regress/bin/md5/testsuite.sum +++ /dev/null @@ -1,10 +0,0 @@ -SUM test suite: -0 0 -97 1 a -16556 1 abc -26423 1 message digest -53553 1 abcdefghijklmnopqrstuvwxyz -54802 1 abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq -25587 1 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 -21845 1 12345678901234567890123456789012345678901234567890123456789012345678901234567890 -62769 977 one million 'a' characters |