aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-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
7 files changed, 1 insertions, 27 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a85c86e..407302b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -189,7 +189,7 @@ add_test(NAME engine
COMMAND perl run_tests
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test)
set_tests_properties(engine PROPERTIES ENVIRONMENT
- "OPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR};OPENSSL_ENGINES=${OUTPUT_DIRECTORY}")
+ "OPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR};OPENSSL_ENGINES=${OUTPUT_DIRECTORY};OPENSSL_CONF=${CMAKE_SOURCE_DIR}/test/empty.cnf")
endif()
add_executable(sign benchmark/sign.c)
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