hkdf: when HMAC key is all zeros, still set a valid key length
[openssl.git] / test / recipes / 90-test_includes.t
1 #! /usr/bin/env perl
2
3 use strict;
4 use warnings;
5 use OpenSSL::Test qw/:DEFAULT bldtop_dir data_file/;
6 use OpenSSL::Test::Utils;
7 use Cwd qw(abs_path);
8
9 setup("test_includes");
10
11 plan skip_all => "test_includes doesn't work without posix-io"
12     if disabled("posix-io");
13
14 delete $ENV{OPENSSL_CONF_INCLUDE};
15
16 plan 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
22 ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes");
23 ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes");
24 ok(run(test(["conf_include_test", data_file("includes-eq.cnf")])), "test includes with equal character");
25 ok(run(test(["conf_include_test", data_file("includes-eq-ws.cnf")])), "test includes with equal and whitespaces");
26 if ($^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 }
32 ok(run(test(["conf_include_test", "-f", data_file("includes-broken.cnf")])), "test broken includes");
33 ok(run(test(["conf_include_test",  "-f", data_file("incdir.cnf")])), "test includedir");
34
35 SKIP: {
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 }