Adapt all test programs
authorRichard Levitte <levitte@openssl.org>
Tue, 18 Apr 2017 14:47:11 +0000 (16:47 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 24 Apr 2017 16:09:01 +0000 (18:09 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3243)

70 files changed:
test/asn1_encode_test.c
test/asn1_internal_test.c
test/asynciotest.c
test/bad_dtls_test.c
test/bftest.c
test/bio_enc_test.c
test/bioprinttest.c
test/bntest.c
test/build.info
test/casttest.c
test/chacha_internal_test.c
test/cipher_overhead_test.c
test/cipherbytes_test.c
test/cipherlist_test.c
test/clienthellotest.c
test/constant_time_test.c
test/crltest.c
test/ct_test.c
test/d2i_test.c
test/destest.c
test/dhtest.c
test/dsatest.c
test/dtlstest.c
test/ecdsatest.c
test/enginetest.c
test/evp_extra_test.c
test/exdatatest.c
test/gmdifftest.c
test/hmactest.c
test/ideatest.c
test/lhash_test.c
test/md2test.c
test/mdc2_internal_test.c
test/mdc2test.c
test/modes_internal_test.c
test/packettest.c
test/pbelutest.c
test/pkey_meth_test.c
test/poly1305_internal_test.c
test/randtest.c
test/rc2test.c
test/rc4test.c
test/rc5test.c
test/recordlentest.c
test/rsa_test.c
test/sanitytest.c
test/secmemtest.c
test/sha1test.c
test/sha256t.c
test/sha512t.c
test/siphash_internal_test.c
test/srptest.c
test/ssl_test.c
test/ssl_test_ctx_test.c
test/sslapitest.c
test/sslcorrupttest.c
test/stack_test.c
test/test_test.c
test/threadstest.c
test/tls13encryptiontest.c
test/tls13secretstest.c
test/uitest.c
test/v3ext.c
test/v3nametest.c
test/verify_extra_test.c
test/wpackettest.c
test/x509_dup_cert_test.c
test/x509_internal_test.c
test/x509_time_test.c
test/x509aux.c

index a24b28486636c1f54886ea7bf9a801ba02a67e68..7d762ae3c25e1a38398d3407dbcea6c10208297a 100644 (file)
@@ -13,7 +13,6 @@
 #include <openssl/rand.h>
 #include <openssl/asn1t.h>
 #include "internal/numbers.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #ifdef __GNUC__
index f936098cd9bc3432bbd95f2021db82b0ed016b4e..f9fdeefed9742c9f065f8be632005cc32cde8d3d 100644 (file)
@@ -15,7 +15,6 @@
 #include <openssl/asn1.h>
 #include <openssl/evp.h>
 #include <openssl/objects.h>
-#include "test_main.h"
 #include "testutil.h"
 #include "e_os.h"
 
index f78b86f2a7ea716ec1347651514600fad71f51b9..ee450dafd31f677abd0af4233e23c175d113a5e2 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "ssltestlib.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 
 /* Should we fragment records or not? 0 = no, !0 = yes*/
 static int fragment = 0;
index 0bfbebf7e16795591163c08a21c12d0460df9f63..9745ff87209c71d4594f1722da41523dea765455 100644 (file)
@@ -41,7 +41,6 @@
 #include "../ssl/packet_locl.h"
 #include "../e_os.h" /* for OSSL_NELEM() */
 
-#include "test_main.h"
 #include "testutil.h"
 
 /* For DTLS1_BAD_VER packets the MAC doesn't include the handshake header */
index eea9fcb7b9409d0681c14e3be9bf72457a724b75..a7e0bf1cd1a651509d769240f5be25390bb37378 100644 (file)
@@ -17,7 +17,6 @@
 #include <stdlib.h>
 #include <openssl/opensslconf.h> /* To see if OPENSSL_NO_BF is defined */
 
-#include "test_main_custom.h"
 #include "testutil.h"
 
 #include "../e_os.h"
index 9b0dd6def168cb61d186c90b22e7032c0b262baf..bc49a7992a2fe2691fb2a78ba8f144c57ae9a5f5 100644 (file)
@@ -12,7 +12,6 @@
 #include <openssl/bio.h>
 #include <openssl/rand.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 #define ENCRYPT  1
index ca0f1aadf6b8d9d826c9b5ae46b9cc31f68588a0..418d6e4c8d9a4fac8dde8196775d9b710f42e984 100644 (file)
@@ -12,8 +12,6 @@
 #include <openssl/bio.h>
 #include "internal/numbers.h"
 #include "testutil.h"
-#include "test_main.h"
-#include "test_main_custom.h"
 
 #define nelem(x) (int)(sizeof(x) / sizeof((x)[0]))
 
index 449b3a4fd2796f56824598e98ab126f8fabd8c6e..0410e07d08a13f2dc4d6c58415f7750251cfe1ac 100644 (file)
@@ -19,7 +19,6 @@
 #include <openssl/err.h>
 #include <openssl/rand.h>
 #include "testutil.h"
-#include "test_main_custom.h"
 
 /*
  * In bn_lcl.h, bn_expand() is defined as a static ossl_inline function.
index d17a4b087ba785d199d55ffd56159d4bae0fbecd..83a83c449793036ddd0d055ee4da8a56664bb956 100644 (file)
@@ -47,270 +47,270 @@ INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN
   INCLUDE[aborttest]=../include
   DEPEND[aborttest]=../libcrypto
 
-  SOURCE[sanitytest]=sanitytest.c testutil.c test_main.c
+  SOURCE[sanitytest]=sanitytest.c
   INCLUDE[sanitytest]=../include
-  DEPEND[sanitytest]=../libcrypto
+  DEPEND[sanitytest]=../libcrypto libtestutil.a
 
-  SOURCE[test_test]=test_test.c testutil.c test_main.c
+  SOURCE[test_test]=test_test.c
   INCLUDE[test_test]=.. ../include
-  DEPEND[test_test]=../libcrypto
+  DEPEND[test_test]=../libcrypto libtestutil.a
 
-  SOURCE[exdatatest]=exdatatest.c testutil.c test_main.c
+  SOURCE[exdatatest]=exdatatest.c
   INCLUDE[exdatatest]=../include
-  DEPEND[exdatatest]=../libcrypto
+  DEPEND[exdatatest]=../libcrypto libtestutil.a
 
-  SOURCE[bntest]=bntest.c testutil.c test_main_custom.c
+  SOURCE[bntest]=bntest.c
   INCLUDE[bntest]=.. ../crypto/include ../include
-  DEPEND[bntest]=../libcrypto
+  DEPEND[bntest]=../libcrypto libtestutil.a
 
   SOURCE[ectest]=ectest.c
   INCLUDE[ectest]=.. ../include
   DEPEND[ectest]=../libcrypto
 
-  SOURCE[ecdsatest]=ecdsatest.c testutil.c test_main.c
+  SOURCE[ecdsatest]=ecdsatest.c
   INCLUDE[ecdsatest]=../include
-  DEPEND[ecdsatest]=../libcrypto
+  DEPEND[ecdsatest]=../libcrypto libtestutil.a
 
-  SOURCE[gmdifftest]=gmdifftest.c testutil.c test_main.c
+  SOURCE[gmdifftest]=gmdifftest.c
   INCLUDE[gmdifftest]=../include
-  DEPEND[gmdifftest]=../libcrypto
+  DEPEND[gmdifftest]=../libcrypto libtestutil.a
 
-  SOURCE[pbelutest]=pbelutest.c testutil.c test_main.c
+  SOURCE[pbelutest]=pbelutest.c
   INCLUDE[pbelutest]=../include
-  DEPEND[pbelutest]=../libcrypto
+  DEPEND[pbelutest]=../libcrypto libtestutil.a
 
-  SOURCE[ideatest]=ideatest.c testutil.c test_main.c
+  SOURCE[ideatest]=ideatest.c
   INCLUDE[ideatest]=../include
-  DEPEND[ideatest]=../libcrypto
+  DEPEND[ideatest]=../libcrypto libtestutil.a
 
-  SOURCE[md2test]=md2test.c testutil.c test_main.c
+  SOURCE[md2test]=md2test.c
   INCLUDE[md2test]=../include
-  DEPEND[md2test]=../libcrypto
+  DEPEND[md2test]=../libcrypto libtestutil.a
 
-  SOURCE[hmactest]=hmactest.c testutil.c test_main.c
+  SOURCE[hmactest]=hmactest.c
   INCLUDE[hmactest]=../include
-  DEPEND[hmactest]=../libcrypto
+  DEPEND[hmactest]=../libcrypto libtestutil.a
 
-  SOURCE[rc2test]=rc2test.c testutil.c test_main.c
+  SOURCE[rc2test]=rc2test.c
   INCLUDE[rc2test]=../include
-  DEPEND[rc2test]=../libcrypto
+  DEPEND[rc2test]=../libcrypto libtestutil.a
 
-  SOURCE[rc4test]=rc4test.c testutil.c test_main.c
+  SOURCE[rc4test]=rc4test.c
   INCLUDE[rc4test]=../include
-  DEPEND[rc4test]=../libcrypto
+  DEPEND[rc4test]=../libcrypto libtestutil.a
 
-  SOURCE[rc5test]=rc5test.c testutil.c test_main.c
+  SOURCE[rc5test]=rc5test.c
   INCLUDE[rc5test]=../include
-  DEPEND[rc5test]=../libcrypto
+  DEPEND[rc5test]=../libcrypto libtestutil.a
 
-  SOURCE[destest]=destest.c testutil.c test_main.c
+  SOURCE[destest]=destest.c
   INCLUDE[destest]=../include
-  DEPEND[destest]=../libcrypto
+  DEPEND[destest]=../libcrypto libtestutil.a
 
-  SOURCE[sha1test]=sha1test.c testutil.c test_main.c
+  SOURCE[sha1test]=sha1test.c
   INCLUDE[sha1test]=../include
-  DEPEND[sha1test]=../libcrypto
+  DEPEND[sha1test]=../libcrypto libtestutil.a
 
-  SOURCE[sha256t]=sha256t.c testutil.c test_main.c
+  SOURCE[sha256t]=sha256t.c
   INCLUDE[sha256t]=../include
-  DEPEND[sha256t]=../libcrypto
+  DEPEND[sha256t]=../libcrypto libtestutil.a
 
-  SOURCE[sha512t]=sha512t.c testutil.c test_main.c
+  SOURCE[sha512t]=sha512t.c
   INCLUDE[sha512t]=../include
-  DEPEND[sha512t]=../libcrypto
+  DEPEND[sha512t]=../libcrypto libtestutil.a
 
-  SOURCE[mdc2test]=mdc2test.c testutil.c test_main.c
+  SOURCE[mdc2test]=mdc2test.c
   INCLUDE[mdc2test]=../include
-  DEPEND[mdc2test]=../libcrypto
+  DEPEND[mdc2test]=../libcrypto libtestutil.a
 
-  SOURCE[randtest]=randtest.c testutil.c test_main.c
+  SOURCE[randtest]=randtest.c
   INCLUDE[randtest]=../include
-  DEPEND[randtest]=../libcrypto
+  DEPEND[randtest]=../libcrypto libtestutil.a
 
-  SOURCE[dhtest]=dhtest.c testutil.c test_main.c
+  SOURCE[dhtest]=dhtest.c
   INCLUDE[dhtest]=.. ../include
-  DEPEND[dhtest]=../libcrypto
+  DEPEND[dhtest]=../libcrypto libtestutil.a
 
-  SOURCE[enginetest]=enginetest.c testutil.c test_main.c
+  SOURCE[enginetest]=enginetest.c
   INCLUDE[enginetest]=../include
-  DEPEND[enginetest]=../libcrypto
+  DEPEND[enginetest]=../libcrypto libtestutil.a
 
-  SOURCE[casttest]=casttest.c testutil.c test_main.c
+  SOURCE[casttest]=casttest.c
   INCLUDE[casttest]=.. ../include
-  DEPEND[casttest]=../libcrypto
+  DEPEND[casttest]=../libcrypto libtestutil.a
 
-  SOURCE[bftest]=bftest.c testutil.c test_main_custom.c
+  SOURCE[bftest]=bftest.c
   INCLUDE[bftest]=../include
-  DEPEND[bftest]=../libcrypto
+  DEPEND[bftest]=../libcrypto libtestutil.a
 
   SOURCE[ssltest_old]=ssltest_old.c
   INCLUDE[ssltest_old]=.. ../include
   DEPEND[ssltest_old]=../libcrypto ../libssl
 
-  SOURCE[dsatest]=dsatest.c testutil.c test_main.c
+  SOURCE[dsatest]=dsatest.c
   INCLUDE[dsatest]=.. ../include
-  DEPEND[dsatest]=../libcrypto
+  DEPEND[dsatest]=../libcrypto libtestutil.a
 
   SOURCE[exptest]=exptest.c
   INCLUDE[exptest]=../include
   DEPEND[exptest]=../libcrypto
 
-  SOURCE[rsa_test]=rsa_test.c testutil.c test_main.c
+  SOURCE[rsa_test]=rsa_test.c
   INCLUDE[rsa_test]=.. ../include
-  DEPEND[rsa_test]=../libcrypto
+  DEPEND[rsa_test]=../libcrypto libtestutil.a
 
   SOURCE[evp_test]=evp_test.c
   INCLUDE[evp_test]=../include
   DEPEND[evp_test]=../libcrypto
 
-  SOURCE[evp_extra_test]=evp_extra_test.c testutil.c test_main.c
+  SOURCE[evp_extra_test]=evp_extra_test.c
   INCLUDE[evp_extra_test]=../include
-  DEPEND[evp_extra_test]=../libcrypto
+  DEPEND[evp_extra_test]=../libcrypto libtestutil.a
 
   SOURCE[igetest]=igetest.c
   INCLUDE[igetest]=.. ../include
   DEPEND[igetest]=../libcrypto
 
-  SOURCE[v3nametest]=v3nametest.c testutil.c test_main.c
+  SOURCE[v3nametest]=v3nametest.c
   INCLUDE[v3nametest]=.. ../include
-  DEPEND[v3nametest]=../libcrypto
+  DEPEND[v3nametest]=../libcrypto libtestutil.a
 
-  SOURCE[crltest]=crltest.c testutil.c test_main.c
+  SOURCE[crltest]=crltest.c
   INCLUDE[crltest]=../include
-  DEPEND[crltest]=../libcrypto
+  DEPEND[crltest]=../libcrypto libtestutil.a
 
-  SOURCE[v3ext]=v3ext.c testutil.c test_main_custom.c
+  SOURCE[v3ext]=v3ext.c
   INCLUDE[v3ext]=../include
-  DEPEND[v3ext]=../libcrypto
+  DEPEND[v3ext]=../libcrypto libtestutil.a
 
   SOURCE[danetest]=danetest.c
   INCLUDE[danetest]=../include
   DEPEND[danetest]=../libcrypto ../libssl
 
-  SOURCE[constant_time_test]=constant_time_test.c testutil.c test_main.c
+  SOURCE[constant_time_test]=constant_time_test.c
   INCLUDE[constant_time_test]=.. ../include
-  DEPEND[constant_time_test]=../libcrypto
+  DEPEND[constant_time_test]=../libcrypto libtestutil.a
 
-  SOURCE[verify_extra_test]=verify_extra_test.c testutil.c test_main_custom.c
+  SOURCE[verify_extra_test]=verify_extra_test.c
   INCLUDE[verify_extra_test]=../include
-  DEPEND[verify_extra_test]=../libcrypto
+  DEPEND[verify_extra_test]=../libcrypto libtestutil.a
 
-  SOURCE[clienthellotest]=clienthellotest.c testutil.c test_main_custom.c
+  SOURCE[clienthellotest]=clienthellotest.c
   INCLUDE[clienthellotest]=../include
-  DEPEND[clienthellotest]=../libcrypto ../libssl
+  DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[bad_dtls_test]=bad_dtls_test.c testutil.c test_main.c
+  SOURCE[bad_dtls_test]=bad_dtls_test.c
   INCLUDE[bad_dtls_test]=../include
-  DEPEND[bad_dtls_test]=../libcrypto ../libssl
+  DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[packettest]=packettest.c testutil.c test_main.c
+  SOURCE[packettest]=packettest.c
   INCLUDE[packettest]=../include
-  DEPEND[packettest]=../libcrypto
+  DEPEND[packettest]=../libcrypto libtestutil.a
 
   SOURCE[asynctest]=asynctest.c
   INCLUDE[asynctest]=.. ../include
   DEPEND[asynctest]=../libcrypto
 
-  SOURCE[secmemtest]=secmemtest.c testutil.c test_main.c
+  SOURCE[secmemtest]=secmemtest.c
   INCLUDE[secmemtest]=../include
-  DEPEND[secmemtest]=../libcrypto
+  DEPEND[secmemtest]=../libcrypto libtestutil.a
 
-  SOURCE[srptest]=srptest.c testutil.c test_main.c
+  SOURCE[srptest]=srptest.c
   INCLUDE[srptest]=../include
-  DEPEND[srptest]=../libcrypto
+  DEPEND[srptest]=../libcrypto libtestutil.a
 
-  SOURCE[memleaktest]=memleaktest.c testutil.c
+  SOURCE[memleaktest]=memleaktest.c
   INCLUDE[memleaktest]=../include
-  DEPEND[memleaktest]=../libcrypto
+  DEPEND[memleaktest]=../libcrypto libtestutil.a
 
-  SOURCE[stack_test]=stack_test.c testutil.c test_main.c
+  SOURCE[stack_test]=stack_test.c
   INCLUDE[stack_test]=.. ../include
-  DEPEND[stack_test]=../libcrypto
+  DEPEND[stack_test]=../libcrypto libtestutil.a
 
-  SOURCE[lhash_test]=lhash_test.c testutil.c test_main.c
+  SOURCE[lhash_test]=lhash_test.c
   INCLUDE[lhash_test]=.. ../include
-  DEPEND[lhash_test]=../libcrypto
+  DEPEND[lhash_test]=../libcrypto libtestutil.a
 
   SOURCE[dtlsv1listentest]=dtlsv1listentest.c
   INCLUDE[dtlsv1listentest]=.. ../include
   DEPEND[dtlsv1listentest]=../libssl
 
-  SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.c
+  SOURCE[ct_test]=ct_test.c
   INCLUDE[ct_test]=../crypto/include ../include
-  DEPEND[ct_test]=../libcrypto
+  DEPEND[ct_test]=../libcrypto libtestutil.a
 
-  SOURCE[threadstest]=threadstest.c testutil.c test_main.c
+  SOURCE[threadstest]=threadstest.c
   INCLUDE[threadstest]=.. ../include
-  DEPEND[threadstest]=../libcrypto
+  DEPEND[threadstest]=../libcrypto libtestutil.a
 
-  SOURCE[afalgtest]=afalgtest.c testutil.c
+  SOURCE[afalgtest]=afalgtest.c
   INCLUDE[afalgtest]=.. ../include
-  DEPEND[afalgtest]=../libcrypto
+  DEPEND[afalgtest]=../libcrypto libtestutil.a
 
-  SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
+  SOURCE[d2i_test]=d2i_test.c
   INCLUDE[d2i_test]=.. ../include
-  DEPEND[d2i_test]=../libcrypto
+  DEPEND[d2i_test]=../libcrypto libtestutil.a
 
-  SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
+  SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
   INCLUDE[ssl_test_ctx_test]=.. ../include
-  DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl
+  DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
+  SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
   INCLUDE[ssl_test]=.. ../include
-  DEPEND[ssl_test]=../libcrypto ../libssl
+  DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.c
+  SOURCE[cipherlist_test]=cipherlist_test.c
   INCLUDE[cipherlist_test]=.. ../include
-  DEPEND[cipherlist_test]=../libcrypto ../libssl
+  DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
 
   INCLUDE[testutil.o]=..
   INCLUDE[ssl_test_ctx.o]=../include
   INCLUDE[handshake_helper.o]=../include
   INCLUDE[ssltestlib.o]=.. ../include
 
-  SOURCE[x509aux]=x509aux.c testutil.c test_main_custom.c
+  SOURCE[x509aux]=x509aux.c
   INCLUDE[x509aux]=.. ../include
-  DEPEND[x509aux]=../libcrypto
+  DEPEND[x509aux]=../libcrypto libtestutil.a
 
-  SOURCE[asynciotest]=asynciotest.c ssltestlib.c testutil.c test_main_custom.c
+  SOURCE[asynciotest]=asynciotest.c ssltestlib.c
   INCLUDE[asynciotest]=../include
-  DEPEND[asynciotest]=../libcrypto ../libssl
+  DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[bioprinttest]=bioprinttest.c testutil.c test_main_custom.c
+  SOURCE[bioprinttest]=bioprinttest.c
   INCLUDE[bioprinttest]=../ ../include
-  DEPEND[bioprinttest]=../libcrypto
+  DEPEND[bioprinttest]=../libcrypto libtestutil.a
 
-  SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
+  SOURCE[sslapitest]=sslapitest.c ssltestlib.c
   INCLUDE[sslapitest]=../include ..
-  DEPEND[sslapitest]=../libcrypto ../libssl
+  DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
+  SOURCE[dtlstest]=dtlstest.c ssltestlib.c
   INCLUDE[dtlstest]=../include .
-  DEPEND[dtlstest]=../libcrypto ../libssl
+  DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c test_main_custom.c
+  SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
   INCLUDE[sslcorrupttest]=../include .
-  DEPEND[sslcorrupttest]=../libcrypto ../libssl
+  DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[bio_enc_test]=bio_enc_test.c testutil.c test_main.c
+  SOURCE[bio_enc_test]=bio_enc_test.c
   INCLUDE[bio_enc_test]=../include
-  DEPEND[bio_enc_test]=../libcrypto
+  DEPEND[bio_enc_test]=../libcrypto libtestutil.a
 
-  SOURCE[pkey_meth_test]=pkey_meth_test.c testutil.c test_main.c
+  SOURCE[pkey_meth_test]=pkey_meth_test.c
   INCLUDE[pkey_meth_test]=../include
-  DEPEND[pkey_meth_test]=../libcrypto
+  DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
 
-  SOURCE[x509_time_test]=x509_time_test.c testutil.c test_main.c
+  SOURCE[x509_time_test]=x509_time_test.c
   INCLUDE[x509_time_test]=.. ../include
-  DEPEND[x509_time_test]=../libcrypto
+  DEPEND[x509_time_test]=../libcrypto libtestutil.a
 
-  SOURCE[recordlentest]=recordlentest.c ssltestlib.c testutil.c test_main_custom.c
+  SOURCE[recordlentest]=recordlentest.c ssltestlib.c
   INCLUDE[recordlentest]=../include .
-  DEPEND[recordlentest]=../libcrypto ../libssl
+  DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c testutil.c test_main_custom.c
+  SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
   INCLUDE[x509_dup_cert_test]=../include
-  DEPEND[x509_dup_cert_test]=../libcrypto
+  DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
 
   IF[{- !$disabled{psk} -}]
     PROGRAMS_NO_INST=dtls_mtu_test
@@ -327,23 +327,22 @@ INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN
 
   IF[{- $disabled{shared} -}]
     PROGRAMS_NO_INST=cipher_overhead_test
-    SOURCE[cipher_overhead_test]=cipher_overhead_test.c testutil.c test_main.c
+    SOURCE[cipher_overhead_test]=cipher_overhead_test.c
     INCLUDE[cipher_overhead_test]=.. ../include
-    DEPEND[cipher_overhead_test]=../libcrypto ../libssl
+    DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
   ENDIF
 
-  SOURCE[uitest]=uitest.c testutil.c test_main_custom.c \
-    ../apps/apps.c ../apps/opt.c {- $apps_extra -}
+  SOURCE[uitest]=uitest.c ../apps/apps.c ../apps/opt.c
   INCLUDE[uitest]=.. ../include
-  DEPEND[uitest]=../libcrypto ../libssl
+  DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[cipherbytes_test]=cipherbytes_test.c testutil.c test_main_custom.c
+  SOURCE[cipherbytes_test]=cipherbytes_test.c
   INCLUDE[cipherbytes_test]=.. ../include
-  DEPEND[cipherbytes_test]=../libcrypto ../libssl
+  DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
 
-  SOURCE[asn1_encode_test]=asn1_encode_test.c testutil.c test_main.c
+  SOURCE[asn1_encode_test]=asn1_encode_test.c
   INCLUDE[asn1_encode_test]=../include
-  DEPEND[asn1_encode_test]=../libcrypto
+  DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
 
   # Internal test programs.  These are essentially a collection of internal
   # test routines.  Some of them need to reach internal symbols that aren't
@@ -366,56 +365,56 @@ INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN
       PROGRAMS_NO_INST=siphash_internal_test
     ENDIF
 
-    SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
+    SOURCE[poly1305_internal_test]=poly1305_internal_test.c
     INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
-    DEPEND[poly1305_internal_test]=../libcrypto.a
+    DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
 
-    SOURCE[chacha_internal_test]=chacha_internal_test.c testutil.c test_main.c
+    SOURCE[chacha_internal_test]=chacha_internal_test.c
     INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
-    DEPEND[chacha_internal_test]=../libcrypto.a
+    DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
 
-    SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
+    SOURCE[asn1_internal_test]=asn1_internal_test.c
     INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
-    DEPEND[asn1_internal_test]=../libcrypto.a
+    DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
 
-    SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
+    SOURCE[modes_internal_test]=modes_internal_test.c
     INCLUDE[modes_internal_test]=.. ../include
-    DEPEND[modes_internal_test]=../libcrypto.a
+    DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
 
-    SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
+    SOURCE[x509_internal_test]=x509_internal_test.c
     INCLUDE[x509_internal_test]=.. ../include
-    DEPEND[x509_internal_test]=../libcrypto.a
+    DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
 
-    SOURCE[tls13encryptiontest]=tls13encryptiontest.c testutil.c test_main.c
+    SOURCE[tls13encryptiontest]=tls13encryptiontest.c
     INCLUDE[tls13encryptiontest]=.. ../include
-    DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a
+    DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
 
-    SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
+    SOURCE[wpackettest]=wpackettest.c
     INCLUDE[wpackettest]=../include
-    DEPEND[wpackettest]=../libcrypto ../libssl.a
+    DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
 
-    SOURCE[siphash_internal_test]=siphash_internal_test.c testutil.c test_main_custom.c
+    SOURCE[siphash_internal_test]=siphash_internal_test.c
     INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
-    DEPEND[siphash_internal_test]=../libcrypto.a
+    DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
   ENDIF
 
   IF[{- !$disabled{mdc2} -}]
     PROGRAMS_NO_INST=mdc2_internal_test
   ENDIF
 
-  SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
+  SOURCE[mdc2_internal_test]=mdc2_internal_test.c
   INCLUDE[mdc2_internal_test]=.. ../include
-  DEPEND[mdc2_internal_test]=../libcrypto
+  DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
 
   # We disable this test completely in a shared build because it deliberately
   # redefines some internal libssl symbols. This doesn't work in a non-shared
   # build
   IF[{- !$disabled{shared} -}]
     PROGRAMS_NO_INST=tls13secretstest
-    SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
+    SOURCE[tls13secretstest]=tls13secretstest.c
     SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
     INCLUDE[tls13secretstest]=.. ../include
-    DEPEND[tls13secretstest]=../libcrypto ../libssl
+    DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
   ENDIF
 ENDIF
 
index fc0c700b47328c033ea0afa78c801e5216ad3eb9..24cfbfd4554c95151b7bf8f447464dc99b7d64a2 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <openssl/opensslconf.h> /* To see if OPENSSL_NO_CAST is defined */
 #include "e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #ifndef OPENSSL_NO_CAST
index 0c0be9b38792b552a07dabb9a60692c6784475f2..de8e4b2d8b79ef0e92ffe48bed1456bb5091f574 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <string.h>
 #include <openssl/opensslconf.h>
-#include "test_main.h"
 #include "testutil.h"
 #include "internal/chacha.h"
 
index 98d44bd7f526bd264ce326cd52ff40ca62f8bc06..6bf74a5a7606f1df701c5de90f372ff5473b8d92 100644 (file)
@@ -9,7 +9,6 @@
 
 #include "e_os.h"
 #include "testutil.h"
-#include "test_main.h"
 
 #ifdef __VMS
 # pragma names save
@@ -36,7 +35,7 @@ static int cipher_overhead(void)
             TEST_info("Failed getting %s", ciph->name);
             ret = 0;
         } else {
-            TEST_info("Cipher %s: %"OSSLzu" %"OSSLzu" %"OSSLzu" %"OSSLzu,
+            TEST_info("Cipher %s: %zu %zu %zu %zu",
                       ciph->name, mac, in, blk, ex);
         }
     }
index 00e361b73f5c230029d861808cbfa1ac70fa5693..bc3051ed34b5c86274373a19043b54574a1f2378 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "e_os.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 
 static SSL_CTX *ctx;
 static SSL *s;
index 31063e6a44a4a0a66199aaf745e43305229ed812..61551d92235e0ae49c5c81180fa1599d8fe91f38 100644 (file)
@@ -18,7 +18,6 @@
 #include <openssl/tls1.h>
 
 #include "e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 typedef struct cipherlist_test_fixture {
index a5d3ad300e58cf652b35722103e0c770ab8b16dc..2de85128e33cbfe36c8738bdfbaedb9437b45b7a 100644 (file)
@@ -20,7 +20,6 @@
 #include "../ssl/packet_locl.h"
 
 #include "testutil.h"
-#include "test_main_custom.h"
 
 #define CLIENT_VERSION_LEN      2
 
index d34e386a8d21ccbd4b870cbeacd78aa045153e3c..3e3542e8648b82c314772e17f6f4c822fd40eeec 100644 (file)
@@ -13,7 +13,6 @@
 #include "e_os.h"
 #include "internal/constant_time_locl.h"
 #include "testutil.h"
-#include "test_main.h"
 #include "internal/numbers.h"
 
 static const unsigned int CONSTTIME_TRUE = (unsigned)(~0);
index e633fd355c9e65024ba62c358271003ce2eb9bb3..790fc5f4a7e818073ccb19436ca6f3dc9d18dc3f 100644 (file)
@@ -17,7 +17,6 @@
 #include <openssl/x509.h>
 
 #include "testutil.h"
-#include "test_main.h"
 
 #define PARAM_TIME 1474934400 /* Sep 27th, 2016 */
 
index e96eab0a7ab711ba20f041e848e711cf3875f6fe..583db4437e3dd01855f6f99e09e8b534ec2c1373 100644 (file)
@@ -19,7 +19,6 @@
 #include <openssl/x509.h>
 #include <openssl/x509v3.h>
 #include "testutil.h"
-#include "test_main_custom.h"
 
 #ifndef OPENSSL_NO_CT
 /* Used when declaring buffers to read text files into */
index 0413ceb2378c612d81d3a14e5b1be8358ca23fc9..8126ace9140b2ad14ca96c4aa6b2d501a3f9ece5 100644 (file)
@@ -13,7 +13,6 @@
 #include <string.h>
 
 #include "testutil.h"
-#include "test_main_custom.h"
 
 #include <openssl/asn1.h>
 #include <openssl/asn1t.h>
index b863ee82759f1dccb4751a3d9a0a3e389a55623b..2aae1ca79afe26eae516e8f33ebe2ea27befcf9d 100644 (file)
@@ -10,7 +10,6 @@
 #include <openssl/e_os2.h>
 #include <string.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 #ifndef OPENSSL_NO_DES
index eb6ec0e9638affaa912914bf881df9982415c784..618b84e7733b52929b5f245dd522344d5401e734 100644 (file)
@@ -17,7 +17,6 @@
 #include <openssl/bn.h>
 #include <openssl/rand.h>
 #include <openssl/err.h>
-#include "test_main.h"
 #include "testutil.h"
 
 #ifdef OPENSSL_NO_DH
index bff0b96ad104cb3a7e4dc5fe8a624165a0abb4d7..e4ed8ebd632f20df712f28ceb44eae4c412a6a2d 100644 (file)
@@ -18,7 +18,6 @@
 #include <openssl/bn.h>
 #include <openssl/dsa.h>
 
-#include "test_main.h"
 #include "testutil.h"
 #include "e_os.h"
 
index cb58b180c27c836ea7cfcd9aab2bc4df72b51fc1..b766802148cae75f3850c4d127ec5891e6fe2524 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "ssltestlib.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 
 static char *cert = NULL;
 static char *privkey = NULL;
index 8b1e566ae85ff307e0829e01f8eddd16a59361e9..561ff0c2bdd24229fcaa31b92c2ba0ac74fc9cc2 100644 (file)
@@ -46,7 +46,6 @@ int main(int argc, char *argv[])
 # include <openssl/err.h>
 # include <openssl/rand.h>
 # include "testutil.h"
-# include "test_main.h"
 
 static const char rnd_seed[] = "string to make the random number generator "
     "think it has entropy";
index 89107a3b1e222e2a6acda49bf9dff8d368d60285..55bb4e041fa4bb74f237f965bd5028b365964e12 100644 (file)
@@ -23,7 +23,6 @@ int main(int argc, char *argv[])
 # include <openssl/engine.h>
 # include <openssl/err.h>
 # include "testutil.h"
-# include "test_main.h"
 
 static void display_engine_list(void)
 {
index b8cfc0d204c2254169089e20eabcb9924929657b..80737f96cdb7fd843ec6791f804878e67e74e1b1 100644 (file)
@@ -16,7 +16,6 @@
 #include <openssl/rsa.h>
 #include <openssl/x509.h>
 #include "testutil.h"
-#include "test_main.h"
 
 /*
  * kExampleRSAKeyDER is an RSA private key in ASN.1, DER format. Of course, you
index fb1694dd40aa616e161678c8e32ec0d9648b4e9e..8880f6f40f9f3ad9b312481a0c8f24b42b741355 100644 (file)
@@ -12,7 +12,6 @@
 #include <stdlib.h>
 #include <openssl/crypto.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 static long saved_argl;
index 462436ff4851da6afcd4aea10debf95ab530a8f4..1d508c0c7ce8d1001fdba32a6e883ad18501a261 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <openssl/crypto.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 #define SECS_PER_DAY (24 * 60 * 60)
index d7e68b4cd710c5bfe89308ec57ff10bd4b85558c..db1b7af001ba77f55246cdb3aca6b5bc64799031 100644 (file)
@@ -23,7 +23,6 @@
 #  include <openssl/ebcdic.h>
 # endif
 
-#include "test_main.h"
 #include "testutil.h"
 
 # ifndef OPENSSL_NO_MD5
index a208334693b642e2cb190496a0bda6f267dfe994..14d69dc3214fb26ca97fa24c58c73b3000b5cf80 100644 (file)
@@ -10,7 +10,6 @@
 #include <string.h>
 
 #include "../e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #ifndef OPENSSL_NO_IDEA
index 1761efdacf3ffd8349522985e14c059104fe429b..b8127962c5ffb98646c919f870640b08ea893f23 100644 (file)
@@ -20,7 +20,6 @@
 #include <openssl/crypto.h>
 
 #include "e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 /*
index 81a1760a47c1d5b2bc02d0af2ec7e3199b8bc563..7a1436de2f7b4a138b67c8556013177017d24f9a 100644 (file)
@@ -10,7 +10,6 @@
 #include <string.h>
 
 #include "../e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #ifndef OPENSSL_NO_MD2
index 7deaf2668f6f3838df0a5eadb849f88cb34572d0..d696ea7189baecc743249c38e4a28daf43ddb974 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <openssl/mdc2.h>
 #include "testutil.h"
-#include "test_main.h"
 #include "e_os.h"
 
 typedef struct {
index fb513e116c8dcb8e43771d972c4eb02e7acb2358..724d6d323e7c06c81477b596d8024efa4549501d 100644 (file)
@@ -10,7 +10,6 @@
 #include <string.h>
 
 #include "../e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #if defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_MDC2)
index 087115b242de7a657c4bb35c1e9d8af3cb71f3d0..b3a2b102a40d1dd258666fd31356200eeb0ecc4d 100644 (file)
@@ -16,7 +16,6 @@
 #include <openssl/modes.h>
 #include "../crypto/modes/modes_lcl.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 #include "e_os.h"
 
 typedef struct {
index 7ee4a08fe04752d46fac64a01cce4df8cf12e33f..4866d27abde037c27106c7e19047cb09bd11a501 100644 (file)
@@ -9,7 +9,6 @@
 
 #include "../ssl/packet_locl.h"
 #include "testutil.h"
-#include "test_main.h"
 
 #define BUF_LEN 255
 
index 11189b477688735360374c874e6b8ee0dadf0c4a..c6ce58677cbf23c1622f4819161fe773b6a504b2 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <openssl/evp.h>
 #include "testutil.h"
-#include "test_main.h"
 
 /*
  * Password based encryption (PBE) table ordering test.
index 88765375fa7e9dcf0530b3d574caa9b87ee102f1..adff232304b2ea4e479340588849eb5519fc2e48 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <openssl/evp.h>
 #include "testutil.h"
-#include "test_main.h"
 
 /**********************************************************************
  *
index 03b0fa91dfb2a04823687048746daaac5305c33e..a6825d252f0396b8da2d61faed17b5d210823b9b 100644 (file)
@@ -13,7 +13,6 @@
 #include <string.h>
 
 #include "testutil.h"
-#include "test_main_custom.h"
 #include "internal/poly1305.h"
 #include "../crypto/poly1305/poly1305_local.h"
 #include "e_os.h"
@@ -1600,7 +1599,7 @@ static int test_poly1305(int idx)
             Poly1305_Final(&poly1305, out);
 
             if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
-                TEST_info("Poly1305 test #%d/%" OSSLzu "+%" OSSLzu " failed.",
+                TEST_info("Poly1305 test #%d/%zu+%zu failed.",
                           idx, half, inlen-half);
                 return 0;
             }
index e1d84c318c5b7d90bb068fd49b13d03135c520f6..8ef59434cfa183c40f540839dc8c9d5fa4045cd9 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <openssl/rand.h>
 #include "testutil.h"
-#include "test_main.h"
 
 /* some FIPS 140-1 random number test */
 /* some simple tests */
index 2553c914f11a0e957e0a14798c99d89e5da33d0d..056157653c4493bb22855597c2fba40d1c09a604 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include "../e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #ifndef OPENSSL_NO_RC2
index e6d4ccf74da1f1fb3e57e66aafaac00d25eb1242..bf2ec310bbfffd28ac9419df6a198d3ae838896c 100644 (file)
@@ -10,7 +10,6 @@
 #include <string.h>
 
 #include "../e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #ifndef OPENSSL_NO_RC4
index bc2cd97ff250ab3d030ab3c46409b7e08738124f..bd02f72353dd90c4ea1fc59ee9ce3d36caaee0e4 100644 (file)
@@ -10,7 +10,6 @@
 #include <string.h>
 
 #include "../e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #ifndef OPENSSL_NO_RC5
index 70631495a62a48075b707efa99deec09cc91fa68..57c4648bcc62f69e55ccbd9787209d46dbe429b6 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "ssltestlib.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 
 static char *cert = NULL;
 static char *privkey = NULL;
index ea10c8e260de88b89432de180fd5de3c4ca83201..47be25848f1f548471e566c3f901a3c6516485c5 100644 (file)
@@ -19,7 +19,6 @@
 #include <openssl/rand.h>
 #include <openssl/bn.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 #ifdef OPENSSL_NO_RSA
index 3ef0a37207e40fd1bd5843d430a38efb0612454d..5a9e6bbdb47287ad5206d43fd2f3372c755120a8 100644 (file)
@@ -10,7 +10,6 @@
 #include <string.h>
 #include <internal/numbers.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 static int test_sanity_null_zero(void)
index 9fd023574e775369a5da2ab12868608c5e5980f6..3244d06b12118e107411ab27a2ffa1ebea6fcc33 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <openssl/crypto.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 static int test_sec_mem(void)
index 25c7f105685c879d9b0128473a5782068ddf29f9..6a8b304dbd0acda85165c55cba1e0b8f9d327406 100644 (file)
@@ -11,7 +11,6 @@
 #include <string.h>
 
 #include "../e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #include <openssl/evp.h>
index 29e65d5ed029ea12d1b08375ffba06398d0f1035..c6ce1ae1873c5eab97d7ac943e009bce1bc94fdc 100644 (file)
@@ -10,7 +10,6 @@
 #include <openssl/sha.h>
 #include <openssl/evp.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 static const unsigned char app_b1[SHA256_DIGEST_LENGTH] = {
index 91efa328d6d42559f6b868dfbcb3b4b63f2b6ad0..2a1bd1b7b9bb02aaedc8675dfac14fae72713c1e 100644 (file)
@@ -10,7 +10,6 @@
 #include <openssl/sha.h>
 #include <openssl/evp.h>
 
-#include "test_main.h"
 #include "testutil.h"
 
 static const unsigned char app_c1[SHA512_DIGEST_LENGTH] = {
index fd097e0d5997a830301c0dd865c5238eaf4b522d..0114af18d08e87b3dbe48acee0d2c7ee04f3f65b 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <openssl/bio.h>
 #include "testutil.h"
-#include "test_main_custom.h"
 #include "internal/siphash.h"
 #include "../crypto/siphash/siphash_local.h"
 #include "e_os.h"
@@ -226,7 +225,7 @@ static int test_siphash(int idx)
 
     if (expectedlen != SIPHASH_MIN_DIGEST_SIZE &&
         expectedlen != SIPHASH_MAX_DIGEST_SIZE) {
-        TEST_info("size %" OSSLzu " vs %d and %d", expectedlen,
+        TEST_info("size %zu vs %d and %d", expectedlen,
                   SIPHASH_MIN_DIGEST_SIZE, SIPHASH_MAX_DIGEST_SIZE);
         return 0;
     }
@@ -286,7 +285,7 @@ static int test_siphash(int idx)
                 return 0;
 
             if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) {
-                TEST_info("SipHash test #%d/%" OSSLzu "+%" OSSLzu " failed.",
+                TEST_info("SipHash test #%d/%zu+%zu failed.",
                           idx, half, inlen-half);
                 return 0;
             }
index 6d14571635a87412bbc89aa13f3b11805db4cff4..c908c393affafa7a4b096afa5fee2f59b036f4ed 100644 (file)
@@ -24,7 +24,6 @@ int main(int argc, char *argv[])
 # include <openssl/rand.h>
 # include <openssl/err.h>
 # include "testutil.h"
-# include "test_main.h"
 
 static void showbn(const char *name, const BIGNUM *bn)
 {
index 9406f9428024863baf45a9ce989ba8815b739296..092e755b09538a1029e197f2d188a1da0fb53465 100644 (file)
@@ -17,7 +17,6 @@
 #include "handshake_helper.h"
 #include "ssl_test_ctx.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 
 static CONF *conf = NULL;
 
index 6f277e52425b171b57a9547642be363e83d5e5e7..2a633f9a5355c69d711b7364595437229b76fb93 100644 (file)
@@ -18,7 +18,6 @@
 #include "e_os.h"
 #include "ssl_test_ctx.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 #include <openssl/e_os2.h>
 #include <openssl/err.h>
 #include <openssl/conf.h>
index 3b4d01aab976a33f8de3ea0bdaaab53585634142..436fbbb10fc872f53e5d8bb622cc24f7242982aa 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "ssltestlib.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 #include "e_os.h"
 
 static char *cert = NULL;
index 98e5bb3e06e86ff9261d128f84c192c6adfafe93..c480f2348bc7aa56af9c9d66b634f05a0e8ef3a1 100644 (file)
@@ -10,7 +10,6 @@
 #include <string.h>
 #include "ssltestlib.h"
 #include "testutil.h"
-#include "test_main_custom.h"
 
 static int docorrupt = 0;
 
index 25b2e001e1ec17111b99f4eee8981f57ce25c26e..6d1cd91e9bb065ea7e1ef608c52333b7cad1d5f2 100644 (file)
@@ -20,7 +20,6 @@
 #include <openssl/crypto.h>
 
 #include "e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 /* The macros below generate unused functions which error out one of the clang
index a1542892e9fd9c8a4b9f5e28e4342a59b8c66187..879a051a59182af872e17eee4db5070b9879a423 100644 (file)
@@ -19,7 +19,6 @@
 #include <openssl/crypto.h>
 
 #include "e_os.h"
-#include "test_main.h"
 #include "testutil.h"
 
 #define C(l, b, t)                                      \
index 9c735ff8c6ef634e6cae72922e1413be5a15709a..60064d674e6a50ada7016b3bbf23332356cead98 100644 (file)
@@ -12,7 +12,6 @@
 #endif
 
 #include <openssl/crypto.h>
-#include "test_main.h"
 #include "testutil.h"
 
 #if !defined(OPENSSL_THREADS) || defined(CRYPTO_TDEBUG)
index c60d3b66fee4917f32b7c654f534560cd76c110f..861a8154cd8573ed49460dc27a57342b0456f2cb 100644 (file)
@@ -23,7 +23,6 @@
 #endif
 
 #include "testutil.h"
-#include "test_main.h"
 
 /*
  * Based on the test vectors provided in:
@@ -358,21 +357,21 @@ static int test_tls13_encryption(void)
 
         /* Encrypt it */
         if (!TEST_size_t_eq(tls13_enc(s, &rec, 1, 1), 1)) {
-            TEST_info("Failed to encrypt record %"OSSLzu"", ctr);
+            TEST_info("Failed to encrypt record %zu", ctr);
             goto err;
         }
         if (!TEST_true(test_record(&rec, &refdata[ctr], 1))) {
-            TEST_info("Record %"OSSLzu" encryption test failed", ctr);
+            TEST_info("Record %zu encryption test failed", ctr);
             goto err;
         }
 
         /* Decrypt it */
         if (!TEST_int_eq(tls13_enc(s, &rec, 1, 0), 1)) {
-            TEST_info("Failed to decrypt record %"OSSLzu"", ctr);
+            TEST_info("Failed to decrypt record %zu", ctr);
             goto err;
         }
         if (!TEST_true(test_record(&rec, &refdata[ctr], 0))) {
-            TEST_info("Record %"OSSLzu" decryption test failed", ctr);
+            TEST_info("Record %zu decryption test failed", ctr);
             goto err;
         }
 
index e74c4861ed6bbcb130636e5a95ad0f072ba44613..2904ba9f163b43ea152aeb8429d13e1a1147a945 100644 (file)
@@ -22,7 +22,6 @@
 #endif
 
 #include "testutil.h"
-#include "test_main.h"
 
 #define IVLEN   12
 #define KEYLEN  16
index 574412d633d06bb4f1cca2254787da35b7dee78c..855dc45442df27dbc0a0365653dd0eb28db91989 100644 (file)
 #include <string.h>
 #include <openssl/opensslconf.h>
 #include <openssl/err.h>
-
-/*
- * The VMS build does stdio via a socketpair.
- */
-#ifdef __VMS
-# include "../apps/vms_term_sock.h"
-#endif
-
 #include "../apps/apps.h"
-
 #include "testutil.h"
-#include "test_main_custom.h"
 
 /* apps/apps.c depend on these */
 char *default_config_file = NULL;
-BIO *bio_err = NULL;
 
 #ifndef OPENSSL_NO_UI
 # include <openssl/ui.h>
@@ -102,21 +91,10 @@ static int test_new_ui()
 
 #endif
 
-int test_main(int argc, char *argv[])
+void register_tests(void)
 {
-    int ret;
-
-    bio_err = dup_bio_err(FORMAT_TEXT);
-
 #ifndef OPENSSL_NO_UI
     ADD_TEST(test_old);
     ADD_TEST(test_new_ui);
 #endif
-
-    ret = run_tests(argv[0]);
-
-    (void)BIO_flush(bio_err);
-    BIO_free(bio_err);
-
-    return ret;
 }
index f4cb568c73b3e547f310c8e1488415f35921493f..9fbdfd2e79f9ad3b7571e49966e88bd170a1c7be 100644 (file)
@@ -13,7 +13,6 @@
 #include <openssl/pem.h>
 #include <openssl/err.h>
 
-#include "test_main_custom.h"
 #include "testutil.h"
 
 static const char *infile;
index 39dcfe86ce3d2d771c584809d6a8b186a1dae6e9..cb7b799aecddd798b028594f9d7942a10d40cb20 100644 (file)
@@ -12,7 +12,6 @@
 #include <openssl/x509.h>
 #include <openssl/x509v3.h>
 #include "testutil.h"
-#include "test_main.h"
 
 static const char *const names[] = {
     "a", "b", ".", "*", "@",
index d528fa599ffc56beef325d50c1e346bd736c5ae2..a0df29df17a6ecde3153a6c7f62dc28ae2c34ddc 100644 (file)
@@ -14,7 +14,6 @@
 #include <openssl/pem.h>
 #include <openssl/err.h>
 #include "testutil.h"
-#include "test_main_custom.h"
 
 static STACK_OF(X509) *load_certs_from_file(const char *filename)
 {
index a37fab7a3b6035069febedbfba51e90e390f015e..a0872c5724e174c9d94daf215d9c429fa6156853 100644 (file)
@@ -22,7 +22,6 @@
 #endif
 
 #include "testutil.h"
-#include "test_main_custom.h"
 
 const static unsigned char simple1[] = { 0xff };
 const static unsigned char simple2[] = { 0x01, 0xff };
index 05899aaa56ea86791d8758ab04660594e3eb7c33..adeb8ea92933554b9c8db740ea874540d02e5514 100644 (file)
@@ -15,7 +15,6 @@
 #include <openssl/err.h>
 #include <openssl/x509_vfy.h>
 
-#include "test_main_custom.h"
 #include "testutil.h"
 
 static int test_509_dup_cert(const char *cert_f)
index 0a3a9beacd1cf8c904e3e16ba38fbb6e73d8e641..10cb0b189bea3c2d8618dad085e5e91043e6ffce 100644 (file)
@@ -15,7 +15,6 @@
 #include <openssl/x509.h>
 #include <openssl/x509v3.h>
 #include "testutil.h"
-#include "test_main.h"
 #include "e_os.h"
 
 /**********************************************************************
index d9a7f508776cd44dce54eae3b4a2d672675e504a..b73e6554b9a9d278e15157052b6ff14cad48722d 100644 (file)
@@ -15,7 +15,6 @@
 #include <openssl/asn1.h>
 #include <openssl/x509.h>
 #include "testutil.h"
-#include "test_main.h"
 #include "e_os.h"
 
 typedef struct {
index 7030a13365fe9c6c11fe3365edbb281cc31dc8d9..44a9db1829105df2725b6c98230de699905455c9 100644 (file)
@@ -17,8 +17,6 @@
 #include <openssl/conf.h>
 #include <openssl/err.h>
 #include "e_os.h"
-#include "test_main.h"
-#include "test_main_custom.h"
 #include "testutil.h"