Merge openssl-1.1.1diff -r1.13 -r1.14 src/tests/crypto/libcrypto/Makefile
(christos)
--- src/tests/crypto/libcrypto/Makefile 2018/02/22 14:24:03 1.13
+++ src/tests/crypto/libcrypto/Makefile 2018/09/23 13:34:57 1.14
@@ -1,19 +1,19 @@ | @@ -1,19 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.13 2018/02/22 14:24:03 martin Exp $ | 1 | # $NetBSD: Makefile,v 1.14 2018/09/23 13:34:57 christos Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | 4 | |||
5 | SUBDIR+=bf bn cast conf des dh dsa ec ecdh ecdsa engine evp hmac \ | 5 | SUBDIR+=bf bn cast conf des dh dsa ec ecdh ecdsa engine evp hmac \ | |
6 | md2 md4 md5 rand rc2 rc4 ripemd rsa sha1 srp threads | 6 | md2 rc2 rc4 rsa srp threads | |
7 | 7 | |||
8 | SUBDIR+=idea mdc2 | 8 | SUBDIR+=idea mdc2 | |
9 | SUBDIR+=rc5 | 9 | SUBDIR+=rc5 | |
10 | 10 | |||
11 | .if ${HAVE_OPENSSL} == 10 | 11 | .if ${HAVE_OPENSSL} == 10 | |
12 | SUBDIR += lhash sha x509v3 | 12 | SUBDIR += lhash sha x509v3 | |
13 | .endif | 13 | .endif | |
14 | 14 | |||
15 | TESTSDIR= ${TESTSBASE}/crypto/libcrypto | 15 | TESTSDIR= ${TESTSBASE}/crypto/libcrypto | |
16 | 16 | |||
17 | .if ${HAVE_OPENSSL} == 10 | 17 | .if ${HAVE_OPENSSL} == 10 | |
18 | TESTS_SH= t_certs | 18 | TESTS_SH= t_certs | |
19 | .endif | 19 | .endif |
--- src/tests/crypto/libcrypto/Makefile.inc 2018/02/08 23:41:26 1.8
+++ src/tests/crypto/libcrypto/Makefile.inc 2018/09/23 13:34:57 1.9
@@ -1,35 +1,36 @@ | @@ -1,35 +1,36 @@ | |||
1 | # $NetBSD: Makefile.inc,v 1.8 2018/02/08 23:41:26 christos Exp $ | 1 | # $NetBSD: Makefile.inc,v 1.9 2018/09/23 13:34:57 christos Exp $ | |
2 | 2 | |||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | .include "../Makefile.inc" | 4 | .include "../Makefile.inc" | |
5 | TESTSDIR= ${TESTSBASE}/crypto/libcrypto | 5 | TESTSDIR= ${TESTSBASE}/crypto/libcrypto | |
6 | ATFFILE= no | 6 | ATFFILE= no | |
7 | 7 | |||
8 | .if defined(HELPER_NAME) | 8 | .if defined(HELPER_NAME) | |
9 | HELPER_SRCS?= ${HELPER_NAME}.c | 9 | HELPER_SRCS?= ${HELPER_NAME}.c | |
10 | 10 | |||
11 | PROG= h_${HELPER_NAME} | 11 | PROG= h_${HELPER_NAME} | |
12 | SRCS= ${HELPER_SRCS} | 12 | SRCS= ${HELPER_SRCS} | |
13 | MAN= # empty | 13 | MAN= # empty | |
14 | BINDIR= ${TESTSDIR} | 14 | BINDIR= ${TESTSDIR} | |
15 | 15 | |||
16 | DPADD+= ${LIBCRYPTO} ${LIBCRYPT} | 16 | DPADD+= ${LIBCRYPTO} ${LIBCRYPT} | |
17 | LDADD+= -lcrypto -lcrypt | 17 | LDADD+= -lcrypto -lcrypt | |
18 | 18 | |||
19 | CWARNFLAGS.clang+= -Wno-format | 19 | CWARNFLAGS.clang+= -Wno-format | |
20 | 20 | |||
21 | CPPFLAGS+= -DOPENSSL_FIPS | 21 | CPPFLAGS+= -DOPENSSL_FIPS | |
22 | CPPFLAGS+= -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto | 22 | CPPFLAGS+= -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto | |
23 | CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/../include | 23 | CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/../include | |
24 | CPPFLAGS+= -I${OPENSSLSRC}/crypto/include | 24 | CPPFLAGS+= -I${OPENSSLSRC}/crypto/include | |
25 | CRYPTODIST= ${NETBSDSRCDIR}/crypto | 25 | CRYPTODIST= ${NETBSDSRCDIR}/crypto | |
26 | .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" | 26 | .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" | |
27 | .if ${HAVE_OPENSSL} != 10 | 27 | .if ${HAVE_OPENSSL} != 10 | |
28 | .PATH: ${OPENSSLSRC}/test | 28 | .PATH: ${OPENSSLSRC}/test ${OPENSSLSRC}/test/testutil | |
29 | .else | 29 | .else | |
30 | .PATH: ${OPENSSLSRC}/crypto/${HELPER_DIR} | 30 | .PATH: ${OPENSSLSRC}/crypto/${HELPER_DIR} | |
31 | .endif | 31 | .endif | |
32 | PROGDPLIBS+= cryptotest ${OPENSSLSRC}/../lib/libcryptotest | |||
32 | 33 | |||
33 | .include <bsd.test.mk> | 34 | .include <bsd.test.mk> | |
34 | .include <bsd.prog.mk> | 35 | .include <bsd.prog.mk> | |
35 | .endif | 36 | .endif |
--- src/tests/crypto/libcrypto/t_ciphers.sh 2017/05/21 14:20:45 1.5
+++ src/tests/crypto/libcrypto/t_ciphers.sh 2018/09/23 13:34:57 1.6
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: t_ciphers.sh,v 1.5 2017/05/21 14:20:45 riastradh Exp $ | 1 | # $NetBSD: t_ciphers.sh,v 1.6 2018/09/23 13:34:57 christos Exp $ | |
2 | # | 2 | # | |
3 | # Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc. | 3 | # Copyright (c) 2008, 2009, 2010 The NetBSD Foundation, Inc. | |
4 | # All rights reserved. | 4 | # All rights reserved. | |
5 | # | 5 | # | |
6 | # Redistribution and use in source and binary forms, with or without | 6 | # Redistribution and use in source and binary forms, with or without | |
7 | # modification, are permitted provided that the following conditions | 7 | # modification, are permitted provided that the following conditions | |
8 | # are met: | 8 | # are met: | |
9 | # 1. Redistributions of source code must retain the above copyright | 9 | # 1. Redistributions of source code must retain the above copyright | |
10 | # notice, this list of conditions and the following disclaimer. | 10 | # notice, this list of conditions and the following disclaimer. | |
11 | # 2. Redistributions in binary form must reproduce the above copyright | 11 | # 2. Redistributions in binary form must reproduce the above copyright | |
12 | # notice, this list of conditions and the following disclaimer in the | 12 | # notice, this list of conditions and the following disclaimer in the | |
13 | # documentation and/or other materials provided with the distribution. | 13 | # documentation and/or other materials provided with the distribution. | |
14 | # | 14 | # | |
@@ -53,27 +53,29 @@ des_head() | @@ -53,27 +53,29 @@ des_head() | |||
53 | } | 53 | } | |
54 | des_body() | 54 | des_body() | |
55 | { | 55 | { | |
56 | atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_destest" | 56 | atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_destest" | |
57 | } | 57 | } | |
58 | 58 | |||
59 | atf_test_case evp | 59 | atf_test_case evp | |
60 | evp_head() | 60 | evp_head() | |
61 | { | 61 | { | |
62 | atf_set "descr" "Checks EVP cipher" | 62 | atf_set "descr" "Checks EVP cipher" | |
63 | } | 63 | } | |
64 | evp_body() | 64 | evp_body() | |
65 | { | 65 | { | |
66 | atf_check -o ignore -e ignore $(atf_get_srcdir)/h_evp_test $(atf_get_srcdir)/evptests.txt | 66 | for i in $(atf_get_srcdir)/evp*.txt; do | |
67 | atf_check -o ignore -e ignore $(atf_get_srcdir)/h_evp_test $i | |||
68 | done | |||
67 | } | 69 | } | |
68 | 70 | |||
69 | atf_test_case rc2 | 71 | atf_test_case rc2 | |
70 | rc2_head() | 72 | rc2_head() | |
71 | { | 73 | { | |
72 | atf_set "descr" "Checks RC2 cipher" | 74 | atf_set "descr" "Checks RC2 cipher" | |
73 | } | 75 | } | |
74 | rc2_body() | 76 | rc2_body() | |
75 | { | 77 | { | |
76 | atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_rc2test" | 78 | atf_check -o ignore -e ignore "$(atf_get_srcdir)/h_rc2test" | |
77 | } | 79 | } | |
78 | 80 | |||
79 | atf_test_case rc4 | 81 | atf_test_case rc4 |
--- src/tests/crypto/libcrypto/evp/Makefile 2011/06/09 05:25:17 1.1
+++ src/tests/crypto/libcrypto/evp/Makefile 2018/09/23 13:34:57 1.2
@@ -1,8 +1,18 @@ | @@ -1,8 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.1 2011/06/09 05:25:17 spz Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2018/09/23 13:34:57 christos Exp $ | |
2 | 2 | |||
3 | HELPER_NAME= evp_test | 3 | HELPER_NAME= evp_test | |
4 | HELPER_DIR= evp | 4 | HELPER_DIR= evp | |
5 | 5 | |||
6 | FILES= evptests.txt | 6 | FILES= \ | |
7 | evpcase.txt \ | |||
8 | evpciph.txt \ | |||
9 | evpdigest.txt \ | |||
10 | evpencod.txt \ | |||
11 | evpkdf.txt \ | |||
12 | evpmac.txt \ | |||
13 | evppbe.txt \ | |||
14 | evppkey.txt \ | |||
15 | evppkey_ecc.txt | |||
7 | 16 | |||
8 | .include <bsd.init.mk> | 17 | .include <bsd.init.mk> | |
18 | .PATH: ${OPENSSLSRC}/test/recipes/30-test_evp_data |
--- src/tests/crypto/libcrypto/idea/Makefile 2012/07/14 04:06:17 1.4
+++ src/tests/crypto/libcrypto/idea/Makefile 2018/09/23 13:34:58 1.5
@@ -1,9 +1,8 @@ | @@ -1,9 +1,8 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2012/07/14 04:06:17 christos Exp $ | 1 | # $NetBSD: Makefile,v 1.5 2018/09/23 13:34:58 christos Exp $ | |
2 | 2 | |||
3 | HELPER_NAME= ideatest | 3 | HELPER_NAME= ideatest | |
4 | HELPER_DIR= idea | 4 | HELPER_DIR= idea | |
5 | 5 | |||
6 | .include <bsd.init.mk> | 6 | .include <bsd.init.mk> | |
7 | 7 | |||
8 | LDADD= -lcrypto | |||
9 | LDADD+= -Wl,--no-fatal-warnings | 8 | LDADD+= -Wl,--no-fatal-warnings |
--- src/tests/crypto/libcrypto/mdc2/Makefile 2012/07/14 04:06:17 1.4
+++ src/tests/crypto/libcrypto/mdc2/Makefile 2018/09/23 13:34:58 1.5
@@ -1,9 +1,8 @@ | @@ -1,9 +1,8 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2012/07/14 04:06:17 christos Exp $ | 1 | # $NetBSD: Makefile,v 1.5 2018/09/23 13:34:58 christos Exp $ | |
2 | 2 | |||
3 | HELPER_NAME= mdc2test | 3 | HELPER_NAME= mdc2test | |
4 | HELPER_DIR= mdc2 | 4 | HELPER_DIR= mdc2 | |
5 | 5 | |||
6 | .include <bsd.init.mk> | 6 | .include <bsd.init.mk> | |
7 | 7 | |||
8 | LDADD= -lcrypto | |||
9 | LDADD+= -Wl,--no-fatal-warnings | 8 | LDADD+= -Wl,--no-fatal-warnings |
--- src/tests/crypto/libcrypto/rc5/Makefile 2017/05/21 14:20:45 1.4
+++ src/tests/crypto/libcrypto/rc5/Makefile 2018/09/23 13:34:58 1.5
@@ -1,9 +1,8 @@ | @@ -1,9 +1,8 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2017/05/21 14:20:45 riastradh Exp $ | 1 | # $NetBSD: Makefile,v 1.5 2018/09/23 13:34:58 christos Exp $ | |
2 | 2 | |||
3 | HELPER_NAME= rc5test | 3 | HELPER_NAME= rc5test | |
4 | HELPER_DIR= rc5 | 4 | HELPER_DIR= rc5 | |
5 | 5 | |||
6 | .include <bsd.init.mk> | 6 | .include <bsd.init.mk> | |
7 | 7 | |||
8 | LDADD= -lcrypto | |||
9 | LDADD+= -Wl,--no-fatal-warnings | 8 | LDADD+= -Wl,--no-fatal-warnings |