Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/crypto/libcrypto add tests for evb and srp



details:   https://anonhg.NetBSD.org/src/rev/006bc1dbd2da
branches:  trunk
changeset: 765888:006bc1dbd2da
user:      spz <spz%NetBSD.org@localhost>
date:      Thu Jun 09 05:25:17 2011 +0000

description:
add tests for evb and srp

diffstat:

 tests/crypto/libcrypto/Makefile     |   6 +++---
 tests/crypto/libcrypto/evp/Makefile |   8 ++++++++
 tests/crypto/libcrypto/srp/Makefile |   6 ++++++
 tests/crypto/libcrypto/t_ciphers.sh |  13 ++++++++++++-
 tests/crypto/libcrypto/t_pubkey.sh  |  13 ++++++++++++-
 5 files changed, 41 insertions(+), 5 deletions(-)

diffs (106 lines):

diff -r 2adf0a6689e4 -r 006bc1dbd2da tests/crypto/libcrypto/Makefile
--- a/tests/crypto/libcrypto/Makefile   Thu Jun 09 05:11:17 2011 +0000
+++ b/tests/crypto/libcrypto/Makefile   Thu Jun 09 05:25:17 2011 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.6 2010/07/13 21:13:21 jmmv Exp $
+# $NetBSD: Makefile,v 1.7 2011/06/09 05:25:21 spz Exp $
 
 .include <bsd.own.mk>
 
 .if ${MKCRYPTO} != "no"
 
-SUBDIR+=bf bn cast conf des dh dsa ec ecdh ecdsa engine hmac lhash \
-       md2 md4 md5 rand rc2 rc4 ripemd rsa sha sha1 threads x509v3
+SUBDIR+=bf bn cast conf des dh dsa ec ecdh ecdsa engine evp hmac lhash \
+       md2 md4 md5 rand rc2 rc4 ripemd rsa sha sha1 srp threads x509v3
 
 .if ${MKCRYPTO_IDEA} != "no"
 SUBDIR+=idea
diff -r 2adf0a6689e4 -r 006bc1dbd2da tests/crypto/libcrypto/evp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/crypto/libcrypto/evp/Makefile       Thu Jun 09 05:25:17 2011 +0000
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2011/06/09 05:25:17 spz Exp $
+
+HELPER_NAME=   evp_test
+HELPER_DIR=    evp
+
+FILES=         evptests.txt
+
+.include <bsd.init.mk>
diff -r 2adf0a6689e4 -r 006bc1dbd2da tests/crypto/libcrypto/srp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/crypto/libcrypto/srp/Makefile       Thu Jun 09 05:25:17 2011 +0000
@@ -0,0 +1,6 @@
+# $NetBSD: Makefile,v 1.1 2011/06/09 05:25:20 spz Exp $
+
+HELPER_NAME=   srptest
+HELPER_DIR=    srp
+
+.include <bsd.init.mk>
diff -r 2adf0a6689e4 -r 006bc1dbd2da tests/crypto/libcrypto/t_ciphers.sh
--- a/tests/crypto/libcrypto/t_ciphers.sh       Thu Jun 09 05:11:17 2011 +0000
+++ b/tests/crypto/libcrypto/t_ciphers.sh       Thu Jun 09 05:25:17 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ciphers.sh,v 1.2 2010/11/08 19:06:12 pooka Exp $
+# $NetBSD: t_ciphers.sh,v 1.3 2011/06/09 05:25:21 spz Exp $
 #
 # Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -56,6 +56,16 @@
        atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_destest"
 }
 
+atf_test_case evp
+evp_head()
+{
+       atf_set "descr" "Checks EVP cipher"
+}
+evp_body()
+{
+       atf_check -o ignore -e ignore $(atf_get_srcdir)/h_evp_test $(atf_get_srcdir)/evptests.txt
+}
+
 atf_test_case rc2
 rc2_head()
 {
@@ -107,6 +117,7 @@
        atf_add_test_case bf
        atf_add_test_case cast
        atf_add_test_case des
+       atf_add_test_case evp
        atf_add_test_case rc2
        atf_add_test_case rc4
        atf_add_test_case idea
diff -r 2adf0a6689e4 -r 006bc1dbd2da tests/crypto/libcrypto/t_pubkey.sh
--- a/tests/crypto/libcrypto/t_pubkey.sh        Thu Jun 09 05:11:17 2011 +0000
+++ b/tests/crypto/libcrypto/t_pubkey.sh        Thu Jun 09 05:25:17 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_pubkey.sh,v 1.2 2010/11/08 19:06:12 pooka Exp $
+# $NetBSD: t_pubkey.sh,v 1.3 2011/06/09 05:25:21 spz Exp $
 #
 # Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -88,6 +88,16 @@
        atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_ecdsatest"
 }
 
+atf_test_case srp
+srp_head()
+{
+       atf_set "descr" "Checks SRP key agreement protocol"
+}
+srp_body()
+{
+       atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_srptest"
+}
+
 atf_init_test_cases()
 {
        atf_add_test_case dsa
@@ -96,4 +106,5 @@
        atf_add_test_case ec
        atf_add_test_case ecdh
        atf_add_test_case ecdsa
+       atf_add_test_case srp
 }



Home | Main Index | Thread Index | Old Index