add tests for evb and srp

This commit is contained in:
spz 2011-06-09 05:25:17 +00:00
parent 82f4eed556
commit 56d7efa655
5 changed files with 41 additions and 5 deletions

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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 @@ des_body()
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_init_test_cases()
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

View File

@ -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 @@ ecdsa_body()
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_init_test_cases()
atf_add_test_case ec
atf_add_test_case ecdh
atf_add_test_case ecdsa
atf_add_test_case srp
}