2
0

90-test_includes.t 883 B

12345678910111213141516171819202122232425
  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. 3
  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. if ($^O eq "VMS") {
  15. ok(run(test(["conf_include_test", data_file("vms-includes.cnf")])),
  16. "test directory includes, VMS syntax");
  17. ok(run(test(["conf_include_test", data_file("vms-includes-file.cnf")])),
  18. "test file includes, VMS syntax");
  19. }
  20. ok(run(test(["conf_include_test", data_file("includes-broken.cnf"), "f"])), "test broken includes");