1#! /usr/bin/env perl 2 3use strict; 4use warnings; 5use OpenSSL::Test qw/:DEFAULT bldtop_dir data_file/; 6use OpenSSL::Test::Utils; 7use Cwd qw(abs_path); 8 9setup("test_includes"); 10 11plan skip_all => "test_includes doesn't work without posix-io" 12 if disabled("posix-io"); 13 14delete $ENV{OPENSSL_CONF_INCLUDE}; 15 16plan tests => # The number of tests being performed 17 7 18 + ($^O eq "VMS" ? 2 : 0); 19 20$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("providers")); 21 22ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes"); 23ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes"); 24ok(run(test(["conf_include_test", data_file("includes-eq.cnf")])), "test includes with equal character"); 25ok(run(test(["conf_include_test", data_file("includes-eq-ws.cnf")])), "test includes with equal and whitespaces"); 26if ($^O eq "VMS") { 27 ok(run(test(["conf_include_test", data_file("vms-includes.cnf")])), 28 "test directory includes, VMS syntax"); 29 ok(run(test(["conf_include_test", data_file("vms-includes-file.cnf")])), 30 "test file includes, VMS syntax"); 31} 32ok(run(test(["conf_include_test", "-f", data_file("includes-broken.cnf")])), "test broken includes"); 33ok(run(test(["conf_include_test", "-f", data_file("incdir.cnf")])), "test includedir"); 34 35SKIP: { 36 skip "Skipping legacy test", 1 37 if disabled("legacy"); 38 ok(run(test(["conf_include_test", "-providers", data_file("includes-prov-dir.cnf")])), 39 "test directory includes with provider configs"); 40} 41