Fix the max psk len for TLSv1.3
[openssl.git] / test / recipes / 90-test_shlibload.t
1 #! /usr/bin/env perl
2 # Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
3 #
4 # Licensed under the OpenSSL license (the "License").  You may not use
5 # this file except in compliance with the License.  You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
8
9
10 use OpenSSL::Test qw/:DEFAULT bldtop_dir/;
11 use OpenSSL::Test::Utils;
12
13 #Load configdata.pm
14
15 BEGIN {
16     setup("test_shlibload");
17 }
18 use lib bldtop_dir('.');
19 use configdata;
20
21 plan skip_all => "Test only supported in a shared build" if disabled("shared");
22 plan skip_all => "Test is disabled on AIX" if config('target') =~ m|^aix|;
23
24 plan tests => 4;
25
26 my $libcrypto_idx = $unified_info{rename}->{libcrypto} // "libcrypto";
27 my $libssl_idx = $unified_info{rename}->{libssl} // "libssl";
28 my $libcrypto =
29     $unified_info{sharednames}->{$libcrypto_idx}.$target{shared_extension_simple};
30 my $libssl =
31     $unified_info{sharednames}->{$libssl_idx}.$target{shared_extension_simple};
32
33 ok(run(test(["shlibloadtest", "-crypto_first", $libcrypto, $libssl])),
34    "running shlibloadtest -crypto_first");
35 ok(run(test(["shlibloadtest", "-ssl_first", $libcrypto, $libssl])),
36    "running shlibloadtest -ssl_first");
37 ok(run(test(["shlibloadtest", "-just_crypto", $libcrypto, $libssl])),
38    "running shlibloadtest -just_crypto");
39 ok(run(test(["shlibloadtest", "-dso_ref", $libcrypto, $libssl])),
40    "running shlibloadtest -dso_ref");
41