]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Rename the "timing" program to "timing_load_creds" and integrate it with test/build...
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 18 Jul 2022 18:26:57 +0000 (20:26 +0200)
committerDr. David von Oheimb <dev@ddvo.net>
Tue, 16 Aug 2022 10:50:41 +0000 (12:50 +0200)
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/18821)

test/build.info
test/certs/timing-cert.pem [moved from test/timing-cert.pem with 100% similarity]
test/certs/timing-key.pem [moved from test/timing-key.pem with 100% similarity]
test/timing_load_creds.c [moved from test/timing.c with 96% similarity]

index 500999ca3467ac77712c315d9f324021909a8bf7..a74dd36de28484cece6e52d545a46831f12db3dd 100644 (file)
@@ -37,7 +37,7 @@ IF[{- !$disabled{tests} -}]
           sanitytest rsa_complex exdatatest bntest \
           ecstresstest gmdifftest pbelutest \
           destest mdc2test sha_test \
-          exptest pbetest localetest evp_pkey_ctx_new_from_name\
+          exptest pbetest localetest evp_pkey_ctx_new_from_name \
           evp_pkey_provided_test evp_test evp_extra_test evp_extra_test2 \
           evp_fetch_prov_test evp_libctx_test ossl_store_test \
           v3nametest v3ext \
@@ -956,6 +956,13 @@ ENDIF
   INCLUDE[build_wincrypt_test]=../include
   DEPEND[build_wincrypt_test]=../libssl ../libcrypto
 
+  IF[{- !$disabled{shared} -}]
+    PROGRAMS{noinst}=timing_load_creds
+    SOURCE[timing_load_creds]=timing_load_creds.c
+    INCLUDE[timing_load_creds]=../include
+    DEPEND[timing_load_creds]=../libcrypto.a
+  ENDIF
+
   IF[{- !$disabled{'quic'} -}]
     PROGRAMS{noinst}=quicapitest quic_wire_test
   ENDIF
similarity index 96%
rename from test/timing.c
rename to test/timing_load_creds.c
index 9c3ada97e704cf0ffc0bab5a0f48398aeafa411d..5189dfec67f26bc89d847b89166a4b6a77529d3d 100644 (file)
@@ -5,9 +5,6 @@
  * 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
- *
- * I compiled this in the source tree this way:
- *      gcc -g -Iinclude a.c libcrypto.a -ldl -lpthread
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -20,7 +17,7 @@
 #include <sys/time.h>
 #include <sys/resource.h>
 
-static char *prog = "./a.out";
+static char *prog;
 
 static void readx509(const char *contents, int size)
 {