Add support for .include directive in config files
[openssl.git] / test / recipes / 90-test_includes.t
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
13 plan tests => 3;                # The number of tests being performed
14
15 ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes");
16 ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes");
17 ok(run(test(["conf_include_test", data_file("includes-broken.cnf"), "f"])), "test broken includes");