2018-02-27 12:55:35 +00:00
|
|
|
#! /usr/bin/perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use OpenSSL::Test qw/:DEFAULT data_file/;
|
|
|
|
use OpenSSL::Test::Utils;
|
|
|
|
|
|
|
|
setup("test_includes");
|
|
|
|
|
|
|
|
plan skip_all => "test_includes doesn't work without posix-io"
|
|
|
|
if disabled("posix-io");
|
|
|
|
|
2018-03-11 22:47:40 +00:00
|
|
|
plan tests => # The number of tests being performed
|
|
|
|
3
|
|
|
|
+ ($^O eq "VMS" ? 2 : 0);
|
2018-02-27 12:55:35 +00:00
|
|
|
|
|
|
|
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");
|
2018-03-11 22:47:40 +00:00
|
|
|
if ($^O eq "VMS") {
|
|
|
|
ok(run(test(["conf_include_test", data_file("vms-includes.cnf")])),
|
|
|
|
"test directory includes, VMS syntax");
|
|
|
|
ok(run(test(["conf_include_test", data_file("vms-includes-file.cnf")])),
|
|
|
|
"test file includes, VMS syntax");
|
|
|
|
}
|
2018-02-27 12:55:35 +00:00
|
|
|
ok(run(test(["conf_include_test", data_file("includes-broken.cnf"), "f"])), "test broken includes");
|