summaryrefslogtreecommitdiffstats
path: root/test/recipes/90-test_includes.t
diff options
context:
space:
mode:
authorVeronika Hanulíková <vhanulik@redhat.com>2023-10-12 14:38:06 +0200
committerTomas Mraz <tomas@openssl.org>2023-11-09 13:27:56 +0100
commite389f56faeecad6b80f06695c0b753b355b0a5fc (patch)
tree27c130576415784f9e19ea5ea8156c0fcfb23c65 /test/recipes/90-test_includes.t
parent4d4657cb6ba364dfa60681948b0a30c40bee31ca (diff)
Add config tests for including provider config files
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22598)
Diffstat (limited to 'test/recipes/90-test_includes.t')
-rw-r--r--test/recipes/90-test_includes.t14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/recipes/90-test_includes.t b/test/recipes/90-test_includes.t
index b931d4ec4a..5ff61910c5 100644
--- a/test/recipes/90-test_includes.t
+++ b/test/recipes/90-test_includes.t
@@ -2,8 +2,9 @@
use strict;
use warnings;
-use OpenSSL::Test qw/:DEFAULT data_file/;
+use OpenSSL::Test qw/:DEFAULT bldtop_dir data_file/;
use OpenSSL::Test::Utils;
+use Cwd qw(abs_path);
setup("test_includes");
@@ -13,9 +14,11 @@ plan skip_all => "test_includes doesn't work without posix-io"
delete $ENV{OPENSSL_CONF_INCLUDE};
plan tests => # The number of tests being performed
- 6
+ 7
+ ($^O eq "VMS" ? 2 : 0);
+$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("providers"));
+
ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes");
ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes");
ok(run(test(["conf_include_test", data_file("includes-eq.cnf")])), "test includes with equal character");
@@ -28,3 +31,10 @@ if ($^O eq "VMS") {
}
ok(run(test(["conf_include_test", "-f", data_file("includes-broken.cnf")])), "test broken includes");
ok(run(test(["conf_include_test", "-f", data_file("incdir.cnf")])), "test includedir");
+
+SKIP: {
+ skip "Skipping legacy test", 1
+ if disabled("legacy");
+ ok(run(test(["conf_include_test", "-providers", data_file("includes-prov-dir.cnf")])),
+ "test directory includes with provider configs");
+}