提交 90d48e5e 编写于 作者: R Richard Levitte

Use the new OpenSSL::Test::Utils routines.

Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
上级 96d2d7bc
...@@ -67,7 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled" ...@@ -67,7 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled"
if disabled("engine"); if disabled("engine");
plan skip_all => "$test_name can only be performed with OpenSSL configured shared" plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
if config("no_shared"); if disabled("shared");
$ENV{OPENSSL_ENGINES} = top_dir("engines"); $ENV{OPENSSL_ENGINES} = top_dir("engines");
$ENV{OPENSSL_ia32cap} = '~0x200000200000000'; $ENV{OPENSSL_ia32cap} = '~0x200000200000000';
......
...@@ -67,7 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled" ...@@ -67,7 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled"
if disabled("engine"); if disabled("engine");
plan skip_all => "$test_name can only be performed with OpenSSL configured shared" plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
if config("no_shared"); if disabled("shared");
$ENV{OPENSSL_ENGINES} = top_dir("engines"); $ENV{OPENSSL_ENGINES} = top_dir("engines");
$ENV{OPENSSL_ia32cap} = '~0x200000200000000'; $ENV{OPENSSL_ia32cap} = '~0x200000200000000';
......
...@@ -68,7 +68,7 @@ plan skip_all => "$test_name needs the engine feature enabled" ...@@ -68,7 +68,7 @@ plan skip_all => "$test_name needs the engine feature enabled"
if disabled("engine"); if disabled("engine");
plan skip_all => "$test_name can only be performed with OpenSSL configured shared" plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
if config("no_shared"); if disabled("shared");
$ENV{OPENSSL_ENGINES} = top_dir("engines"); $ENV{OPENSSL_ENGINES} = top_dir("engines");
$ENV{OPENSSL_ia32cap} = '~0x200000200000000'; $ENV{OPENSSL_ia32cap} = '~0x200000200000000';
......
...@@ -67,7 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled" ...@@ -67,7 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled"
if disabled("engine"); if disabled("engine");
plan skip_all => "$test_name can only be performed with OpenSSL configured shared" plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
if config("no_shared"); if disabled("shared");
plan skip_all => "dh is not supported by this OpenSSL build" plan skip_all => "dh is not supported by this OpenSSL build"
if disabled("dh"); if disabled("dh");
......
...@@ -67,7 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled" ...@@ -67,7 +67,7 @@ plan skip_all => "$test_name needs the engine feature enabled"
if disabled("engine"); if disabled("engine");
plan skip_all => "$test_name can only be performed with OpenSSL configured shared" plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
if config("no_shared"); if disabled("shared");
$ENV{OPENSSL_ENGINES} = top_dir("engines"); $ENV{OPENSSL_ENGINES} = top_dir("engines");
$ENV{OPENSSL_ia32cap} = '~0x200000200000000'; $ENV{OPENSSL_ia32cap} = '~0x200000200000000';
......
...@@ -68,7 +68,7 @@ plan skip_all => "$test_name needs the engine feature enabled" ...@@ -68,7 +68,7 @@ plan skip_all => "$test_name needs the engine feature enabled"
if disabled("engine"); if disabled("engine");
plan skip_all => "$test_name can only be performed with OpenSSL configured shared" plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
if config("no_shared"); if disabled("shared");
$ENV{OPENSSL_ENGINES} = top_dir("engines"); $ENV{OPENSSL_ENGINES} = top_dir("engines");
$ENV{OPENSSL_ia32cap} = '~0x200000200000000'; $ENV{OPENSSL_ia32cap} = '~0x200000200000000';
......
...@@ -14,11 +14,11 @@ setup("test_ssl"); ...@@ -14,11 +14,11 @@ setup("test_ssl");
my ($no_rsa, $no_dsa, $no_dh, $no_ec, $no_srp, $no_psk, my ($no_rsa, $no_dsa, $no_dh, $no_ec, $no_srp, $no_psk,
$no_ssl3, $no_tls1, $no_tls1_1, $no_tls1_2, $no_ssl3, $no_tls1, $no_tls1_1, $no_tls1_2,
$no_dtls, $no_dtls1, $no_dtls1_2) = $no_dtls, $no_dtls1, $no_dtls1_2) =
disabled qw/rsa dsa dh ec srp psk anydisabled qw/rsa dsa dh ec srp psk
ssl3 tls1 tls1_1 tls1_2 ssl3 tls1 tls1_1 tls1_2
dtls dtls1 dtls1_2/; dtls dtls1 dtls1_2/;
my $no_anytls = $no_ssl3 && $no_tls1 && $no_tls1_1 && $no_tls1_2; my $no_anytls = alldisabled(available_protocols("tls"));
my $no_anydtls = $no_dtls && $no_dtls1 && $no_dtls1_2; my $no_anydtls = alldisabled(available_protocols("dtls"));
plan skip_all => "No SSL/TLS/DTLS protocol is support by this OpenSSL build" plan skip_all => "No SSL/TLS/DTLS protocol is support by this OpenSSL build"
if $no_anytls && $no_anydtls; if $no_anytls && $no_anydtls;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册