aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <richard@levitte.org>2019-08-28 10:23:57 +0200
committerRichard Levitte <richard@levitte.org>2019-08-28 10:29:56 +0200
commit13ae67e29336182a2cd5718b56155216f0e3ddf5 (patch)
tree5e182caf08db430e373e28307a82ec0d161248f0
parent673d84de738e6424dfc5c69b8b3c7e041242706a (diff)
downloadgost-engine-13ae67e29336182a2cd5718b56155216f0e3ddf5.zip
gost-engine-13ae67e29336182a2cd5718b56155216f0e3ddf5.tar.gz
gost-engine-13ae67e29336182a2cd5718b56155216f0e3ddf5.tar.bz2
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...
-rw-r--r--test/00-engine.t5
-rw-r--r--test/01-digest.t5
-rw-r--r--test/02-mac.t5
-rw-r--r--test/03-encrypt.t6
-rw-r--r--test/04-pkey.t5
-rw-r--r--test/empty.cnf0
6 files changed, 0 insertions, 26 deletions
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
--- /dev/null
+++ b/test/empty.cnf