]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
test/*.t: Don't check OPENSSL_ENGINES 166/head
authorRichard Levitte <richard@levitte.org>
Wed, 28 Aug 2019 08:23:57 +0000 (10:23 +0200)
committerRichard Levitte <richard@levitte.org>
Wed, 28 Aug 2019 08:29:56 +0000 (10:29 +0200)
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...

test/00-engine.t
test/01-digest.t
test/02-mac.t
test/03-encrypt.t
test/04-pkey.t
test/empty.cnf [new file with mode: 0644]

index e6685aac8360c551d8c806bb983a2a27a7f23cc3..7c3c985748e63058c430fd9058249689f501540d 100644 (file)
@@ -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;
 
 #
index 63cd97306fbb3f93760bb6bc98baeb8609794e37..b3a6355ca6c39eeb85a3f5f33e0a1d8a47cf3aa6 100644 (file)
@@ -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
index f3bbe99f4702e4a0249643ceffc8ff56a478758a..9dca47e133d220684890594bbd51a0899be53c34 100644 (file)
@@ -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;
 
index 6b1d593f33455207f2afcce2b19ab836b81e38a7..408278ac9d4c736631aa5d286a43516e16eafdf7 100644 (file)
@@ -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;
 
 #
index c202b2e8561e57e036aeccd92a8d004447d0c225..549d6572d341c181a82ad436331e0bca73ad1a06 100644 (file)
@@ -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 (file)
index 0000000..e69de29