]>
Commit | Line | Data |
---|---|---|
b524b808 TM |
1 | #! /usr/bin/perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | use OpenSSL::Test qw/:DEFAULT data_file/; | |
6 | use OpenSSL::Test::Utils; | |
7 | ||
8 | setup("test_includes"); | |
9 | ||
10 | plan skip_all => "test_includes doesn't work without posix-io" | |
11 | if disabled("posix-io"); | |
12 | ||
86a227ee | 13 | plan tests => # The number of tests being performed |
9d556033 | 14 | 5 |
86a227ee | 15 | + ($^O eq "VMS" ? 2 : 0); |
b524b808 TM |
16 | |
17 | ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes"); | |
18 | ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes"); | |
9d556033 TM |
19 | ok(run(test(["conf_include_test", data_file("includes-eq.cnf")])), "test includes with equal character"); |
20 | ok(run(test(["conf_include_test", data_file("includes-eq-ws.cnf")])), "test includes with equal and whitespaces"); | |
86a227ee RL |
21 | if ($^O eq "VMS") { |
22 | ok(run(test(["conf_include_test", data_file("vms-includes.cnf")])), | |
23 | "test directory includes, VMS syntax"); | |
24 | ok(run(test(["conf_include_test", data_file("vms-includes-file.cnf")])), | |
25 | "test file includes, VMS syntax"); | |
26 | } | |
a43ce58f | 27 | ok(run(test(["conf_include_test", "-f", data_file("includes-broken.cnf")])), "test broken includes"); |