]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Merge pull request #64 from chipitsine/modernize_ci
authorDmitry Belyavskiy <beldmit@users.noreply.github.com>
Tue, 26 Jun 2018 19:40:19 +0000 (22:40 +0300)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 19:40:19 +0000 (22:40 +0300)
modernize ci

test/00-engine.t
test/01-digest.t
test/02-mac.t
test/03-encrypt.t
test/04-pkey.t

index 35b5f929b61bd592b8d4bfaa06c5296c71597b47..a3d1037857028d5a10f65b73f74ec354f70ac271 100644 (file)
@@ -8,8 +8,10 @@ open F,">","testdata.dat";
 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;
 
@@ -38,7 +40,7 @@ if ( -f $engine . ".info") {
 
 $engine_info= <<EOINF;
 (gost) Reference implementation of GOST engine
- [gost89, gost89-cnt, gost89-cnt-12, gost89-cbc, md_gost94, gost-mac, md_gost12_256, md_gost12_512, gost-mac-12, gost2001, gost-mac, gost2012_256, gost2012_512, gost-mac-12]
+ [gost89, gost89-cnt, gost89-cnt-12, gost89-cbc, grasshopper-ecb, grasshopper-cbc, grasshopper-cfb, grasshopper-ofb, grasshopper-ctr, md_gost94, gost-mac, md_gost12_256, md_gost12_512, gost-mac-12, gost2001, gost-mac, gost2012_256, gost2012_512, gost-mac-12]
 EOINF
 }
 
index cea8358a47c979f3b9b44c76c981d28919a92442..3838fd203763065a22cb4643c45b9c1fda9da2c5 100644 (file)
@@ -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
index 185bac160ab10a17bd934ff0ce0a5e55699fd99e..5713dca51635c3a3825a99f1c26c1e0cca00d709 100644 (file)
@@ -11,8 +11,10 @@ close F;
 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;
 
index 9cada3492b9c16aeca16df1f79e8114475874af1..d5b56c463595a0aa97eb02fc1d0e93cce11c03b1 100644 (file)
@@ -11,8 +11,10 @@ $use_config = 1;
 # 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;
 
index bd4a94f6ceb9263aeec4df29c8ee8926dca4c5c0..84ae81e0b51c516a6f97fe55fc39252a006c004e 100644 (file)
@@ -11,8 +11,10 @@ $use_config = 1;
 # 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";