test/cipher_overhead_test.c: build unconditionally
authorRichard Levitte <levitte@openssl.org>
Mon, 25 Nov 2019 15:30:51 +0000 (16:30 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 27 Nov 2019 19:37:16 +0000 (20:37 +0100)
Build it against static libraries always, since that's the only way it
can work as intended.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10516)

test/build.info
test/recipes/90-test_overhead.t

index e4fff15883a06d447172dad697bbc311eaf2d175..e17e1b59846e380b476a7c5e01849049555f290c 100644 (file)
@@ -445,12 +445,12 @@ IF[{- !$disabled{tests} -}]
     INCLUDE[shlibloadtest]=../include ../apps/include ../crypto/include
   ENDIF
 
-  IF[{- $disabled{shared} -}]
-    PROGRAMS{noinst}=cipher_overhead_test
-    SOURCE[cipher_overhead_test]=cipher_overhead_test.c
-    INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
-    DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
-  ENDIF
+  # cipher_overhead_test uses internal symbols, so it must be linked with
+  # the static libraries
+  PROGRAMS{noinst}=cipher_overhead_test
+  SOURCE[cipher_overhead_test]=cipher_overhead_test.c
+  INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
+  DEPEND[cipher_overhead_test]=../libcrypto.a ../libssl.a libtestutil.a
 
   SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c
   INCLUDE[uitest]=.. ../include ../apps/include
index 9a108cd0036d67741bd0e5bb4aef17758ee711dd..e9319003b246b96d2d52ff17d12e85ae3e4d6228 100644 (file)
@@ -12,9 +12,6 @@ use OpenSSL::Test::Utils;
 
 setup("test_overhead");
 
-plan skip_all => "Only supported in no-shared builds"
-    if !disabled("shared");
-
 plan tests => 1;
 
 ok(run(test(["cipher_overhead_test"])), "running cipher_overhead_test");