From: Richard Levitte Date: Wed, 28 Aug 2019 08:23:57 +0000 (+0200) Subject: test/*.t: Don't check OPENSSL_ENGINES X-Git-Tag: v3.0.0~274^2 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=13ae67e29336182a2cd5718b56155216f0e3ddf5;hp=-c;p=openssl-gost%2Fengine.git test/*.t: Don't check OPENSSL_ENGINES It's set correctly when these tests are started with ctest, and otherwise, we leave it to the user to decide. Either way, we set it to a bogus value when it isn't previously set... --- 13ae67e29336182a2cd5718b56155216f0e3ddf5 diff --git a/test/00-engine.t b/test/00-engine.t index e6685aa..7c3c985 100644 --- a/test/00-engine.t +++ b/test/00-engine.t @@ -9,11 +9,6 @@ open (my $F,">","testdata.dat"); print $F "12345670" x 128; close $F; -# Set OPENSSL_ENGINES environment variable to just built engine -if(!defined $ENV{'OPENSSL_ENGINES'}){ - $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs"); -} - my $key='0123456789abcdef' x 2; # diff --git a/test/01-digest.t b/test/01-digest.t index 63cd973..b3a6355 100644 --- a/test/01-digest.t +++ b/test/01-digest.t @@ -1,12 +1,7 @@ #!/usr/bin/perl use Test2::V0; plan(16); -use Cwd 'abs_path'; -# Set OPENSSL_ENGINES environment variable to just built engine -if(!defined $ENV{'OPENSSL_ENGINES'}){ - $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs"); -} # Set engine name from environment to allow testing of different engines my $engine=$ENV{'ENGINE_NAME'}||"gost"; # Reopen STDERR to eliminate extra output diff --git a/test/02-mac.t b/test/02-mac.t index f3bbe99..9dca47e 100644 --- a/test/02-mac.t +++ b/test/02-mac.t @@ -1,7 +1,6 @@ #!/usr/bin/perl use Test2::V0; plan(19); -use Cwd 'abs_path'; # prepare data for my $F; @@ -12,10 +11,6 @@ close $F; open $F,">","testbig.dat"; print $F ("12345670" x 8 . "\n") x 4096; close $F; -# Set OPENSSL_ENGINES environment variable to just built engine -if(!defined $ENV{'OPENSSL_ENGINES'}){ - $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs"); -} my $key='0123456789abcdef' x 2; diff --git a/test/03-encrypt.t b/test/03-encrypt.t index 6b1d593..408278a 100644 --- a/test/03-encrypt.t +++ b/test/03-encrypt.t @@ -11,12 +11,6 @@ my $use_config = 1; # prepare data for - -# Set OPENSSL_ENGINES environment variable to just built engine -if(!defined $ENV{'OPENSSL_ENGINES'}){ - $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs"); -} - my $key='0123456789abcdef' x 2; # diff --git a/test/04-pkey.t b/test/04-pkey.t index c202b2e..549d657 100644 --- a/test/04-pkey.t +++ b/test/04-pkey.t @@ -12,11 +12,6 @@ my $use_config = 1; # prepare data for -# Set OPENSSL_ENGINES environment variable to just built engine -if(!defined $ENV{'OPENSSL_ENGINES'}){ - $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs"); -} - my $engine=$ENV{'ENGINE_NAME'}||"gost"; # Reopen STDERR to eliminate extra output diff --git a/test/empty.cnf b/test/empty.cnf new file mode 100644 index 0000000..e69de29