90-test_includes.t 1.1 KB

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