X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test%2F01-digest.t;h=3838fd203763065a22cb4643c45b9c1fda9da2c5;hb=6eb11c677ad3c948da4abdca45ff451f50f413c1;hp=cea8358a47c979f3b9b44c76c981d28919a92442;hpb=3461793cc682c3336292696ded27f117849bcef0;p=openssl-gost%2Fengine.git diff --git a/test/01-digest.t b/test/01-digest.t index cea8358..3838fd2 100644 --- a/test/01-digest.t +++ b/test/01-digest.t @@ -2,8 +2,10 @@ 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