summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-11-29 12:40:10 +0100
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-12-01 07:49:38 +0100
commit20f8bc72552932393023f5bc5b436cc40cdd1348 (patch)
tree3d3db6acede00003b309439006cd4bbcb02e2438 /test
parent93a9ffa6c2d8440328deca5e860ae9cf38d81d8a (diff)
test cleanup: move helper .c and .h files to test/helpers/
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13568)
Diffstat (limited to 'test')
-rw-r--r--test/asynciotest.c2
-rw-r--r--test/build.info68
-rw-r--r--test/cmp_asn_test.c2
-rw-r--r--test/cmp_client_test.c2
-rw-r--r--test/cmp_ctx_test.c2
-rw-r--r--test/cmp_hdr_test.c2
-rw-r--r--test/cmp_msg_test.c2
-rw-r--r--test/cmp_protect_test.c2
-rw-r--r--test/cmp_server_test.c2
-rw-r--r--test/cmp_status_test.c2
-rw-r--r--test/cmp_vfy_test.c2
-rw-r--r--test/dtls_mtu_test.c2
-rw-r--r--test/dtlstest.c2
-rw-r--r--test/endecode_test.c2
-rw-r--r--test/evp_test.c4
-rw-r--r--test/evp_test.h11
-rw-r--r--test/fatalerrtest.c2
-rw-r--r--test/gosttest.c2
-rw-r--r--test/helpers/cmp_testlib.c (renamed from test/cmp_testlib.c)0
-rw-r--r--test/helpers/cmp_testlib.h (renamed from test/cmp_testlib.h)5
-rw-r--r--test/helpers/handshake.c (renamed from test/handshake_helper.c)6
-rw-r--r--test/helpers/handshake.h (renamed from test/handshake_helper.h)0
-rw-r--r--test/helpers/pkcs12.c (renamed from test/pkcs12_helper.c)4
-rw-r--r--test/helpers/pkcs12.h (renamed from test/pkcs12_helper.h)2
-rw-r--r--test/helpers/predefined_dhparams.c (renamed from test/predefined_dhparams.c)0
-rw-r--r--test/helpers/predefined_dhparams.h (renamed from test/predefined_dhparams.h)0
-rw-r--r--test/helpers/ssl_test_ctx.c (renamed from test/ssl_test_ctx.c)2
-rw-r--r--test/helpers/ssl_test_ctx.h (renamed from test/ssl_test_ctx.h)0
-rw-r--r--test/helpers/ssltestlib.c (renamed from test/ssltestlib.c)2
-rw-r--r--test/helpers/ssltestlib.h (renamed from test/ssltestlib.h)0
-rw-r--r--test/pkcs12_format_test.c2
-rw-r--r--test/recipes/80-test_ssl_old.t12
-rw-r--r--test/recordlentest.c2
-rw-r--r--test/servername_test.c2
-rw-r--r--test/ssl_old_test.c (renamed from test/ssltest_old.c)2
-rw-r--r--test/ssl_test.c4
-rw-r--r--test/ssl_test_ctx_test.c2
-rw-r--r--test/sslapitest.c2
-rw-r--r--test/sslbuffertest.c2
-rw-r--r--test/sslcorrupttest.c2
-rw-r--r--test/testutil/output.c (renamed from test/testutil/output_helpers.c)0
-rw-r--r--test/tls13ccstest.c2
42 files changed, 79 insertions, 89 deletions
diff --git a/test/asynciotest.c b/test/asynciotest.c
index 4147ee128c..10c958f667 100644
--- a/test/asynciotest.c
+++ b/test/asynciotest.c
@@ -15,7 +15,7 @@
#include "internal/packet.h"
-#include "ssltestlib.h"
+#include "helpers/ssltestlib.h"
#include "testutil.h"
/* Should we fragment records or not? 0 = no, !0 = yes*/
diff --git a/test/build.info b/test/build.info
index d781b10393..463e3cd262 100644
--- a/test/build.info
+++ b/test/build.info
@@ -18,7 +18,7 @@ $LIBAPPSSRC=../apps/lib/opt.c $AUXLIBAPPSSRC
IF[{- !$disabled{tests} -}]
LIBS{noinst,has_main}=libtestutil.a
- SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output_helpers.c \
+ SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output.c \
testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
testutil/format_output.c \
testutil/test_cleanup.c testutil/main.c testutil/testutil_init.c \
@@ -122,11 +122,11 @@ IF[{- !$disabled{tests} -}]
INCLUDE[exptest]=../include ../apps/include
DEPEND[exptest]=../libcrypto libtestutil.a
- SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c
+ SOURCE[fatalerrtest]=fatalerrtest.c helpers/ssltestlib.c
INCLUDE[fatalerrtest]=../include ../apps/include
DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
- SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c
+ SOURCE[tls13ccstest]=tls13ccstest.c helpers/ssltestlib.c
INCLUDE[tls13ccstest]=../include ../apps/include
DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
@@ -242,7 +242,7 @@ IF[{- !$disabled{tests} -}]
INCLUDE[memleaktest]=../include ../apps/include
DEPEND[memleaktest]=../libcrypto libtestutil.a
- SOURCE[pkcs12_format_test]=pkcs12_format_test.c pkcs12_helper.c
+ SOURCE[pkcs12_format_test]=pkcs12_format_test.c helpers/pkcs12.c
INCLUDE[pkcs12_format_test]=../include ../apps/include
DEPEND[pkcs12_format_test]=../libcrypto libtestutil.a
@@ -274,11 +274,11 @@ IF[{- !$disabled{tests} -}]
INCLUDE[d2i_test]=../include ../apps/include
DEPEND[d2i_test]=../libcrypto libtestutil.a
- SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
+ SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c helpers/ssl_test_ctx.c
INCLUDE[ssl_test_ctx_test]=../include ../apps/include
DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
- SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
+ SOURCE[ssl_test]=ssl_test.c helpers/ssl_test_ctx.c helpers/handshake.c
INCLUDE[ssl_test]=../include ../apps/include
DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
@@ -286,17 +286,17 @@ IF[{- !$disabled{tests} -}]
INCLUDE[cipherlist_test]=../include ../apps/include
DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
- INCLUDE[ssl_test_ctx.o]=../include
- INCLUDE[handshake_helper.o]=.. ../include
- INCLUDE[pkcs12_helper.o]=.. ../include
- INCLUDE[ssltestlib.o]=.. ../include
- INCLUDE[cmp_testlib.o]=.. ../include ../apps/include
+ INCLUDE[helpers/ssl_test_ctx.o]=../include
+ INCLUDE[helpers/handshake.o]=.. ../include
+ INCLUDE[helpers/pkcs12.o]=.. ../include
+ INCLUDE[helpers/ssltestlib.o]=.. ../include
+ INCLUDE[helpers/cmp_testlib.o]=.. ../include ../apps/include
SOURCE[x509aux]=x509aux.c
INCLUDE[x509aux]=../include ../apps/include
DEPEND[x509aux]=../libcrypto libtestutil.a
- SOURCE[asynciotest]=asynciotest.c ssltestlib.c
+ SOURCE[asynciotest]=asynciotest.c helpers/ssltestlib.c
INCLUDE[asynciotest]=../include ../apps/include
DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
@@ -324,7 +324,7 @@ IF[{- !$disabled{tests} -}]
INCLUDE[param_build_test]=../include ../apps/include
DEPEND[param_build_test]=../libcrypto.a libtestutil.a
- SOURCE[sslapitest]=sslapitest.c ssltestlib.c filterprov.c tls-provider.c
+ SOURCE[sslapitest]=sslapitest.c helpers/ssltestlib.c filterprov.c tls-provider.c
INCLUDE[sslapitest]=../include ../apps/include ..
DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
@@ -344,11 +344,11 @@ IF[{- !$disabled{tests} -}]
INCLUDE[http_test]=../include ../apps/include
DEPEND[http_test]=../libcrypto libtestutil.a
- SOURCE[dtlstest]=dtlstest.c ssltestlib.c
+ SOURCE[dtlstest]=dtlstest.c helpers/ssltestlib.c
INCLUDE[dtlstest]=../include ../apps/include
DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
- SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
+ SOURCE[sslcorrupttest]=sslcorrupttest.c helpers/ssltestlib.c
INCLUDE[sslcorrupttest]=../include ../apps/include
DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
@@ -376,7 +376,7 @@ IF[{- !$disabled{tests} -}]
INCLUDE[x509_time_test]=../include ../apps/include
DEPEND[x509_time_test]=../libcrypto libtestutil.a
- SOURCE[recordlentest]=recordlentest.c ssltestlib.c
+ SOURCE[recordlentest]=recordlentest.c helpers/ssltestlib.c
INCLUDE[recordlentest]=../include ../apps/include
DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
@@ -412,7 +412,7 @@ IF[{- !$disabled{tests} -}]
INCLUDE[http_test]=../include ../apps/include
DEPEND[http_test]=../libcrypto libtestutil.a
- SOURCE[servername_test]=servername_test.c ssltestlib.c
+ SOURCE[servername_test]=servername_test.c helpers/ssltestlib.c
INCLUDE[servername_test]=../include ../apps/include
DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
@@ -425,7 +425,7 @@ IF[{- !$disabled{tests} -}]
IF[{- !$disabled{psk} -}]
PROGRAMS{noinst}=dtls_mtu_test
- SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
+ SOURCE[dtls_mtu_test]=dtls_mtu_test.c helpers/ssltestlib.c
INCLUDE[dtls_mtu_test]=.. ../include ../apps/include
DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
ENDIF
@@ -477,39 +477,39 @@ IF[{- !$disabled{tests} -}]
cmp_server_test cmp_client_test
ENDIF
- SOURCE[cmp_asn_test]=cmp_asn_test.c cmp_testlib.c
+ SOURCE[cmp_asn_test]=cmp_asn_test.c helpers/cmp_testlib.c
INCLUDE[cmp_asn_test]=.. ../include ../apps/include
DEPEND[cmp_asn_test]=../libcrypto.a libtestutil.a
- SOURCE[cmp_ctx_test]=cmp_ctx_test.c cmp_testlib.c
+ SOURCE[cmp_ctx_test]=cmp_ctx_test.c helpers/cmp_testlib.c
INCLUDE[cmp_ctx_test]=.. ../include ../apps/include
DEPEND[cmp_ctx_test]=../libcrypto.a libtestutil.a
- SOURCE[cmp_hdr_test]=cmp_hdr_test.c cmp_testlib.c
+ SOURCE[cmp_hdr_test]=cmp_hdr_test.c helpers/cmp_testlib.c
INCLUDE[cmp_hdr_test]=.. ../include ../apps/include
DEPEND[cmp_hdr_test]=../libcrypto.a libtestutil.a
- SOURCE[cmp_status_test]=cmp_status_test.c cmp_testlib.c
+ SOURCE[cmp_status_test]=cmp_status_test.c helpers/cmp_testlib.c
INCLUDE[cmp_status_test]=.. ../include ../apps/include
DEPEND[cmp_status_test]=../libcrypto.a libtestutil.a
- SOURCE[cmp_protect_test]=cmp_protect_test.c cmp_testlib.c
+ SOURCE[cmp_protect_test]=cmp_protect_test.c helpers/cmp_testlib.c
INCLUDE[cmp_protect_test]=.. ../include ../apps/include
DEPEND[cmp_protect_test]=../libcrypto.a libtestutil.a
- SOURCE[cmp_msg_test]=cmp_msg_test.c cmp_testlib.c
+ SOURCE[cmp_msg_test]=cmp_msg_test.c helpers/cmp_testlib.c
INCLUDE[cmp_msg_test]=.. ../include ../apps/include
DEPEND[cmp_msg_test]=../libcrypto.a libtestutil.a
- SOURCE[cmp_vfy_test]=cmp_vfy_test.c cmp_testlib.c
+ SOURCE[cmp_vfy_test]=cmp_vfy_test.c helpers/cmp_testlib.c
INCLUDE[cmp_vfy_test]=.. ../include ../apps/include
DEPEND[cmp_vfy_test]=../libcrypto.a libtestutil.a
- SOURCE[cmp_server_test]=cmp_server_test.c cmp_testlib.c
+ SOURCE[cmp_server_test]=cmp_server_test.c helpers/cmp_testlib.c
INCLUDE[cmp_server_test]=.. ../include ../apps/include
DEPEND[cmp_server_test]=../libcrypto.a libtestutil.a
- SOURCE[cmp_client_test]=cmp_client_test.c cmp_testlib.c ../apps/cmp_mock_srv.c
+ SOURCE[cmp_client_test]=cmp_client_test.c helpers/cmp_testlib.c ../apps/cmp_mock_srv.c
INCLUDE[cmp_client_test]=.. ../include ../apps/include
DEPEND[cmp_client_test]=../libcrypto.a libtestutil.a
@@ -526,7 +526,7 @@ IF[{- !$disabled{tests} -}]
rsa_sp800_56b_test bn_internal_test ecdsatest rsa_test \
rc2test rc4test rc5test hmactest ffc_internal_test \
asn1_dsa_internal_test dsatest dsa_no_digest_size_test \
- dhtest ssltest_old
+ dhtest ssl_old_test
IF[{- !$disabled{poly1305} -}]
PROGRAMS{noinst}=poly1305_internal_test
@@ -700,9 +700,9 @@ IF[{- !$disabled{tests} -}]
INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
DEPEND[mdc2_internal_test]=../libcrypto.a libtestutil.a
- SOURCE[ssltest_old]=ssltest_old.c predefined_dhparams.c
- INCLUDE[ssltest_old]=.. ../include ../apps/include
- DEPEND[ssltest_old]=../libcrypto.a ../libssl.a
+ SOURCE[ssl_old_test]=ssl_old_test.c helpers/predefined_dhparams.c
+ INCLUDE[ssl_old_test]=.. ../include ../apps/include
+ DEPEND[ssl_old_test]=../libcrypto.a ../libssl.a
ENDIF
PROGRAMS{noinst}=asn1_time_test
@@ -722,7 +722,7 @@ IF[{- !$disabled{tests} -}]
DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
ENDIF
- SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
+ SOURCE[sslbuffertest]=sslbuffertest.c helpers/ssltestlib.c
INCLUDE[sslbuffertest]=../include ../apps/include
DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
@@ -734,7 +734,7 @@ IF[{- !$disabled{tests} -}]
INCLUDE[errtest]=../include ../apps/include
DEPEND[errtest]=../libcrypto libtestutil.a
- SOURCE[gosttest]=gosttest.c ssltestlib.c
+ SOURCE[gosttest]=gosttest.c helpers/ssltestlib.c
INCLUDE[gosttest]=../include ../apps/include ..
DEPEND[gosttest]=../libcrypto ../libssl libtestutil.a
@@ -789,7 +789,7 @@ IF[{- !$disabled{tests} -}]
DEPEND[hexstr_test]=../libcrypto.a libtestutil.a
PROGRAMS{noinst}=endecode_test
- SOURCE[endecode_test]=endecode_test.c predefined_dhparams.c
+ SOURCE[endecode_test]=endecode_test.c helpers/predefined_dhparams.c
INCLUDE[endecode_test]=.. ../include ../apps/include
DEPEND[endecode_test]=../libcrypto.a libtestutil.a
diff --git a/test/cmp_asn_test.c b/test/cmp_asn_test.c
index 10661b3ff0..33cc03cb4c 100644
--- a/test/cmp_asn_test.c
+++ b/test/cmp_asn_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH];
diff --git a/test/cmp_client_test.c b/test/cmp_client_test.c
index dfb7dcb9f0..17f932a73a 100644
--- a/test/cmp_client_test.c
+++ b/test/cmp_client_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
#include "apps/cmp_mock_srv.h"
diff --git a/test/cmp_ctx_test.c b/test/cmp_ctx_test.c
index 76c8c4613b..3ea3013abe 100644
--- a/test/cmp_ctx_test.c
+++ b/test/cmp_ctx_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
#include <openssl/x509_vfy.h>
diff --git a/test/cmp_hdr_test.c b/test/cmp_hdr_test.c
index 75baefb7b9..17f38377b5 100644
--- a/test/cmp_hdr_test.c
+++ b/test/cmp_hdr_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH];
diff --git a/test/cmp_msg_test.c b/test/cmp_msg_test.c
index 59b0a1777d..41ba5cf975 100644
--- a/test/cmp_msg_test.c
+++ b/test/cmp_msg_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
static const char *newkey_f;
static const char *server_cert_f;
diff --git a/test/cmp_protect_test.c b/test/cmp_protect_test.c
index 933adcb196..3cca30144d 100644
--- a/test/cmp_protect_test.c
+++ b/test/cmp_protect_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
static const char *ir_protected_f;
static const char *ir_unprotected_f;
diff --git a/test/cmp_server_test.c b/test/cmp_server_test.c
index 8d0e1de759..49108bfa17 100644
--- a/test/cmp_server_test.c
+++ b/test/cmp_server_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
typedef struct test_fixture {
const char *test_case_name;
diff --git a/test/cmp_status_test.c b/test/cmp_status_test.c
index 7358f1589f..6248cc9b32 100644
--- a/test/cmp_status_test.c
+++ b/test/cmp_status_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
typedef struct test_fixture {
const char *test_case_name;
diff --git a/test/cmp_vfy_test.c b/test/cmp_vfy_test.c
index 2343ebe699..67112f6489 100644
--- a/test/cmp_vfy_test.c
+++ b/test/cmp_vfy_test.c
@@ -9,7 +9,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "cmp_testlib.h"
+#include "helpers/cmp_testlib.h"
#include "../crypto/crmf/crmf_local.h" /* for manipulating POPO signature */
static const char *server_f;
diff --git a/test/dtls_mtu_test.c b/test/dtls_mtu_test.c
index 588ca32c79..612b76a3bc 100644
--- a/test/dtls_mtu_test.c
+++ b/test/dtls_mtu_test.c
@@ -14,7 +14,7 @@
#include <openssl/ssl.h>
#include <openssl/err.h>
-#include "ssltestlib.h"
+#include "helpers/ssltestlib.h"
#include "testutil.h"
/* for SSL_READ_ETM() */
diff --git a/test/dtlstest.c b/test/dtlstest.c
index 775ba22114..2d8aaf4709 100644
--- a/test/dtlstest.c
+++ b/test/dtlstest.c
@@ -13,7 +13,7 @@
#include <openssl/ssl.h>
#include <openssl/err.h>
-#include "ssltestlib.h"
+#include "helpers/ssltestlib.h"
#include "testutil.h"
static char *cert = NULL;
diff --git a/test/endecode_test.c b/test/endecode_test.c
index e01cc4ddff..e8cdd611e6 100644
--- a/test/endecode_test.c
+++ b/test/endecode_test.c
@@ -22,7 +22,7 @@
#include "internal/cryptlib.h" /* ossl_assert */
#include "crypto/pem.h" /* For PVK and "blob" PEM headers */
-#include "predefined_dhparams.h"
+#include "helpers/predefined_dhparams.h"
#include "testutil.h"
#ifndef OPENSSL_NO_EC
diff --git a/test/evp_test.c b/test/evp_test.c
index 9361845450..ba26108eb2 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -26,7 +26,9 @@
#include "internal/nelem.h"
#include "crypto/evp.h"
#include "testutil.h"
-#include "evp_test.h"
+
+typedef struct evp_test_buffer_st EVP_TEST_BUFFER;
+DEFINE_STACK_OF(EVP_TEST_BUFFER)
#define AAD_NUM 4
diff --git a/test/evp_test.h b/test/evp_test.h
deleted file mode 100644
index 028ca341ff..0000000000
--- a/test/evp_test.h
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
- *
- * Licensed under the Apache License 2.0 (the "License"). You may not use
- * this file except in compliance with the License. You can obtain a copy
- * in the file LICENSE in the source distribution or at
- * https://www.openssl.org/source/license.html
- */
-
-typedef struct evp_test_buffer_st EVP_TEST_BUFFER;
-DEFINE_STACK_OF(EVP_TEST_BUFFER)
diff --git a/test/fatalerrtest.c b/test/fatalerrtest.c
index a2538c5921..30930d9ce8 100644
--- a/test/fatalerrtest.c
+++ b/test/fatalerrtest.c
@@ -9,7 +9,7 @@
#include <openssl/ssl.h>
#include <openssl/err.h>
-#include "ssltestlib.h"
+#include "helpers/ssltestlib.h"
#include "testutil.h"
#include <string.h>
diff --git a/test/gosttest.c b/test/gosttest.c
index b61e4efa49..84c5e6c501 100644
--- a/test/gosttest.c
+++ b/test/gosttest.c
@@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html
*/
-#include "ssltestlib.h"
+#include "helpers/ssltestlib.h"
#include "testutil.h"
#include "internal/nelem.h"
diff --git a/test/cmp_testlib.c b/test/helpers/cmp_testlib.c
index 627b73c3b1..627b73c3b1 100644
--- a/test/cmp_testlib.c
+++ b/test/helpers/cmp_testlib.c
diff --git a/test/cmp_testlib.h b/test/helpers/cmp_testlib.h
index e4361b198a..0bee099a67 100644
--- a/test/cmp_testlib.h
+++ b/test/helpers/cmp_testlib.h
@@ -17,9 +17,8 @@
# include <openssl/rand.h>
# include "crypto/x509.h" /* for x509_set0_libctx() and x509_dup_ex() */
-# include "../crypto/cmp/cmp_local.h"
-
-# include "testutil.h"
+# include "../../crypto/cmp/cmp_local.h"
+# include "../testutil.h"
# ifndef OPENSSL_NO_CMP
# define CMP_TEST_REFVALUE_LENGTH 15 /* arbitrary value */
diff --git a/test/handshake_helper.c b/test/helpers/handshake.c
index 5253f0d602..08fcd39bea 100644
--- a/test/handshake_helper.c
+++ b/test/helpers/handshake.c
@@ -16,11 +16,11 @@
#include <openssl/srp.h>
#endif
-#include "../ssl/ssl_local.h"
+#include "../../ssl/ssl_local.h"
#include "internal/sockets.h"
#include "internal/nelem.h"
-#include "handshake_helper.h"
-#include "testutil.h"
+#include "handshake.h"
+#include "../testutil.h"
#if !defined(OPENSSL_NO_SCTP) && !defined(OPENSSL_NO_SOCK)
#include <netinet/sctp.h>
diff --git a/test/handshake_helper.h b/test/helpers/handshake.h
index f0ae5a8d7e..f0ae5a8d7e 100644
--- a/test/handshake_helper.h
+++ b/test/helpers/handshake.h
diff --git a/test/pkcs12_helper.c b/test/helpers/pkcs12.c
index dd64a2a716..6489609d25 100644
--- a/test/pkcs12_helper.c
+++ b/test/helpers/pkcs12.c
@@ -18,8 +18,8 @@
#include <openssl/x509v3.h>
#include <openssl/pem.h>
-#include "testutil.h"
-#include "pkcs12_helper.h"
+#include "../testutil.h"
+#include "pkcs12.h" /* from the same directory */
/* Set this to > 0 write test data to file */
int write_files = 0;
diff --git a/test/pkcs12_helper.h b/test/helpers/pkcs12.h
index 8ae640d7f8..01e1cf1595 100644
--- a/test/pkcs12_helper.h
+++ b/test/helpers/pkcs12.h
@@ -18,7 +18,7 @@
#include <openssl/x509v3.h>
#include <openssl/pem.h>
-#include "testutil.h"
+#include "../testutil.h"
/* Set this to > 0 write test data to file */
extern int write_files;
diff --git a/test/predefined_dhparams.c b/test/helpers/predefined_dhparams.c
index 18fb096216..18fb096216 100644
--- a/test/predefined_dhparams.c
+++ b/test/helpers/predefined_dhparams.c
diff --git a/test/predefined_dhparams.h b/test/helpers/predefined_dhparams.h
index 29d33ce1eb..29d33ce1eb 100644
--- a/test/predefined_dhparams.h
+++ b/test/helpers/predefined_dhparams.h
diff --git a/test/ssl_test_ctx.c b/test/helpers/ssl_test_ctx.c
index 5c3de4c436..db4752c54f 100644
--- a/test/ssl_test_ctx.c
+++ b/test/helpers/ssl_test_ctx.c
@@ -14,7 +14,7 @@
#include "internal/nelem.h"
#include "ssl_test_ctx.h"
-#include "testutil.h"
+#include "../testutil.h"
#ifdef OPENSSL_SYS_WINDOWS
# define strcasecmp _stricmp
diff --git a/test/ssl_test_ctx.h b/test/helpers/ssl_test_ctx.h
index 4e8d3df4ac..4e8d3df4ac 100644
--- a/test/ssl_test_ctx.h
+++ b/test/helpers/ssl_test_ctx.h
diff --git a/test/ssltestlib.c b/test/helpers/ssltestlib.c
index 1fbe51763b..2366c3db4d 100644
--- a/test/ssltestlib.c
+++ b/test/helpers/ssltestlib.c
@@ -12,7 +12,7 @@
#include "internal/nelem.h"
#include "internal/cryptlib.h" /* for ossl_sleep() */
#include "ssltestlib.h"
-#include "testutil.h"
+#include "../testutil.h"
#include "e_os.h"
#ifdef OPENSSL_SYS_UNIX
diff --git a/test/ssltestlib.h b/test/helpers/ssltestlib.h
index 0466286365..0466286365 100644
--- a/test/ssltestlib.h
+++ b/test/helpers/ssltestlib.h
diff --git a/test/pkcs12_format_test.c b/test/pkcs12_format_test.c
index 4b638af82d..8b1448f19c 100644
--- a/test/pkcs12_format_test.c
+++ b/test/pkcs12_format_test.c
@@ -19,7 +19,7 @@
#include <openssl/pem.h>
#include "testutil.h"
-#include "pkcs12_helper.h"
+#include "helpers/pkcs12.h"
/* --------------------------------------------------------------------------
diff --git a/test/recipes/80-test_ssl_old.t b/test/recipes/80-test_ssl_old.t
index aa2428559f..4e3c0998a2 100644
--- a/test/recipes/80-test_ssl_old.t
+++ b/test/recipes/80-test_ssl_old.t
@@ -75,7 +75,7 @@ my $P2intermediate="tmp_intP2.ss";
my $server_sess="server.ss";
my $client_sess="client.ss";
-# ssltest_old.c is deprecated in favour of the new framework in ssl_test.c
+# ssl_old_test.c is deprecated in favour of the new framework in ssl_test.c
# If you're adding tests here, you probably want to convert them to the
# new format in ssl_test.c and add recipes to 80-test_ssl_new.t instead.
plan tests =>
@@ -333,7 +333,7 @@ sub testssl {
push @providerflags, "-provider", "legacy";
}
- my @ssltest = ("ssltest_old",
+ my @ssltest = ("ssl_old_test",
"-s_key", $key, "-s_cert", $cert,
"-c_key", $key, "-c_cert", $cert,
"-config", $configfile,
@@ -438,7 +438,7 @@ sub testssl {
}
my @protocols = ();
-