Blame test/recipes/90-test_includes.t
|
Packit |
c4476c |
#! /usr/bin/perl
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
use strict;
|
|
Packit |
c4476c |
use warnings;
|
|
Packit |
c4476c |
use OpenSSL::Test qw/:DEFAULT data_file/;
|
|
Packit |
c4476c |
use OpenSSL::Test::Utils;
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
setup("test_includes");
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
plan skip_all => "test_includes doesn't work without posix-io"
|
|
Packit |
c4476c |
if disabled("posix-io");
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
plan tests => # The number of tests being performed
|
|
Packit |
c4476c |
5
|
|
Packit |
c4476c |
+ ($^O eq "VMS" ? 2 : 0);
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes");
|
|
Packit |
c4476c |
ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes");
|
|
Packit |
c4476c |
ok(run(test(["conf_include_test", data_file("includes-eq.cnf")])), "test includes with equal character");
|
|
Packit |
c4476c |
ok(run(test(["conf_include_test", data_file("includes-eq-ws.cnf")])), "test includes with equal and whitespaces");
|
|
Packit |
c4476c |
if ($^O eq "VMS") {
|
|
Packit |
c4476c |
ok(run(test(["conf_include_test", data_file("vms-includes.cnf")])),
|
|
Packit |
c4476c |
"test directory includes, VMS syntax");
|
|
Packit |
c4476c |
ok(run(test(["conf_include_test", data_file("vms-includes-file.cnf")])),
|
|
Packit |
c4476c |
"test file includes, VMS syntax");
|
|
Packit |
c4476c |
}
|
|
Packit |
c4476c |
ok(run(test(["conf_include_test", data_file("includes-broken.cnf"), "f"])), "test broken includes");
|