X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=test%2Frecipes%2F70-test_sslskewith0p.t;h=ac88ed524e1ad2f9649e789530acdd8ec9f52d2c;hb=25c78440d21c814705e0e50c6e567300936aa02b;hp=d8d74b33e3f2fbaabf8074e06e8e76de8745a56a;hpb=25be5f44b81e1c45e15e689ba55713e455dfe624;p=openssl.git diff --git a/test/recipes/70-test_sslskewith0p.t b/test/recipes/70-test_sslskewith0p.t index d8d74b33e3..ac88ed524e 100755 --- a/test/recipes/70-test_sslskewith0p.t +++ b/test/recipes/70-test_sslskewith0p.t @@ -53,23 +53,31 @@ # Hudson (tjh@cryptsoft.com). use strict; -use OpenSSL::Test qw/:DEFAULT cmdstr top_file top_dir/; +use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; +use OpenSSL::Test::Utils; use TLSProxy::Proxy; my $test_name = "test_sslskewith0p"; setup($test_name); -plan skip_all => "$test_name can only be performed with OpenSSL configured shared" - unless (map { chomp; s/^SHARED_LIBS=\s*//; $_ } - grep { /^SHARED_LIBS=/ } - do { local @ARGV = ( top_file("Makefile") ); <> })[0] ne ""; +plan skip_all => "TLSProxy isn't usable on $^O" + if $^O =~ /^(VMS|MSWin32)$/; + +plan skip_all => "$test_name needs the dynamic engine feature enabled" + if disabled("engine") || disabled("dynamic-engine"); + +plan skip_all => "dh is not supported by this OpenSSL build" + if disabled("dh"); + +plan skip_all => "$test_name needs the sock feature enabled" + if disabled("sock"); -$ENV{OPENSSL_ENGINES} = top_dir("engines"); $ENV{OPENSSL_ia32cap} = '~0x200000200000000'; my $proxy = TLSProxy::Proxy->new( \&ske_0_p_filter, - cmdstr(app(["openssl"])), - top_file("apps", "server.pem") + cmdstr(app(["openssl"]), display => 1), + srctop_file("apps", "server.pem"), + (!$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE}) ); plan tests => 1;