testing: set OPENSSL_MODULES to the providers directory by default
authorRichard Levitte <levitte@openssl.org>
Sat, 17 Aug 2019 06:35:32 +0000 (08:35 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 27 Aug 2019 09:53:33 +0000 (11:53 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9618)

Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
test/recipes/05-test_md2.t
test/recipes/05-test_mdc2.t
test/recipes/30-test_evp.t
test/recipes/30-test_evp_extra.t
test/recipes/95-test_external_krb5.t

index 46f2302f837f3cf8acf4923c153f990a0ff7e0d4..0bc1492eeace38476f660b9f0722cf64f86b5816 100644 (file)
@@ -435,10 +435,12 @@ test : tests
         DEFINE BLDTOP {- builddir() -}
         DEFINE RESULT_D {- builddir(qw(test test-runs)) -}
         DEFINE OPENSSL_ENGINES {- builddir("engines") -}
+        DEFINE OPENSSL_MODULES {- builddir("providers") -}
         DEFINE OPENSSL_DEBUG_MEMORY "on"
         IF "$(VERBOSE)" .NES. "" THEN DEFINE VERBOSE "$(VERBOSE)"
         $(PERL) {- sourcefile("test", "run_tests.pl") -} $(TESTS)
         DEASSIGN OPENSSL_DEBUG_MEMORY
+        DEASSIGN OPENSSL_MODULES
         DEASSIGN OPENSSL_ENGINES
         DEASSIGN BLDTOP
         DEASSIGN SRCTOP
index 45f53cc5465983556a2c932e7967d0c76f5bef9f..1e8a84f946d5c4a4d5e2faad8598d9f46978ad03 100644 (file)
@@ -352,6 +352,7 @@ test: tests
          PERL="$(PERL)" \
          EXE_EXT={- platform->binext() -} \
          OPENSSL_ENGINES=`cd ../$(BLDDIR)/engines 2>/dev/null && pwd` \
+         OPENSSL_MODULES=`cd ../$(BLDDIR)/providers 2>/dev/null && pwd` \
          OPENSSL_DEBUG_MEMORY=on \
            $(PERL) ../$(SRCDIR)/test/run_tests.pl $(TESTS) )
        @ : {- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
index 3c8d51b6114124310592952c0f8214d99117a6ee..a211c2277db8371a04b87a7040f17403672dde7b 100644 (file)
@@ -369,6 +369,7 @@ test: tests
        set RESULT_D=$(BLDDIR)\test\test-runs
        set PERL=$(PERL)
        set OPENSSL_ENGINES=$(MAKEDIR)\engines
+       set OPENSSL_MODULES=$(MAKEDIR)\providers
        set OPENSSL_DEBUG_MEMORY=on
        "$(PERL)" "$(SRCDIR)\test\run_tests.pl" $(TESTS)
        @{- if ($disabled{tests}) { output_on(); } else { output_off(); } "" -}
index e60e7912f3d79c3afce81730c029bf782aa671fc..00caba54dd6d96f3f98b0cdff85854dd2a57f463 100644 (file)
@@ -12,6 +12,4 @@ use OpenSSL::Test qw/:DEFAULT bldtop_dir/;
 
 setup("test_md2");
 
-$ENV{OPENSSL_MODULES} = bldtop_dir("providers");
-
 simple_test("test_md2", "md2test", "md2");
index 495a146e353c4c62fcf50d38d3bf90ee789bf8c8..18d9539ddb296724baebb19ed84741a440ffd2a0 100644 (file)
@@ -21,6 +21,4 @@ if (disabled("mdc2") || disabled("legacy")) {
 
 plan tests => 1;
 
-$ENV{OPENSSL_MODULES} = bldtop_dir("providers");
-
 ok(run(test(["mdc2test"])), "running mdc2test");
index 580ea0320de59627166adcd085df9fc1e56575f4..7e0be81b1e716d0093366188694f5fbeed791f94 100644 (file)
@@ -29,8 +29,6 @@ my @defltfiles = qw( evpencod.txt evpkdf.txt evppkey_kdf.txt evpmac.txt
 
 plan tests => (scalar(@configs) * scalar(@files)) + scalar(@defltfiles);
 
-$ENV{OPENSSL_MODULES} = bldtop_dir("providers");
-
 foreach (@configs) {
     $ENV{OPENSSL_CONF} = srctop_file("test", $_);
 
index b6fd97afd82875744279d0311d37152d1f6c97cf..3f4b963fdbc058e20112134ce04b19d621c7cda2 100644 (file)
@@ -16,6 +16,4 @@ setup("test_evp_extra");
 
 plan tests => 1;
 
-$ENV{OPENSSL_MODULES} = bldtop_dir("providers");
-
 ok(run(test(["evp_extra_test"])), "running evp_extra_test");
index abbd8c46b57a2ce6f0cb6a60992be703a0574129..0f2be87902d66e32d2aa64dcdd01f1caff4ac21f 100644 (file)
@@ -20,7 +20,6 @@ plan skip_all => "krb5 not available"
 
 plan tests => 1;
 
-$ENV{OPENSSL_MODULES} = bldtop_dir("providers");
 $ENV{OPENSSL_CONF} = srctop_file("test", "default-and-legacy.cnf");
 
 ok(run(cmd([data_file("krb5.sh")])), "running krb5 tests");