print F "12345670" x 128;
close F;
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+ $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
$key='0123456789abcdef' x 2;
use Test::More tests => 16;
use Cwd 'abs_path';
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# 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
$engine=$ENV{'ENGINE_NAME'}||"gost";
# Reopen STDERR to eliminate extra output
open F,">","testbig.dat";
print F ("12345670" x 8 . "\n") x 4096;
close F;
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+ $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
$key='0123456789abcdef' x 2;
# prepare data for
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+ $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
$key='0123456789abcdef' x 2;
# prepare data for
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+ $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
$engine=$ENV{'ENGINE_NAME'}||"gost";