CONF inclusion test: Add VMS specific tests
authorRichard Levitte <levitte@openssl.org>
Sun, 11 Mar 2018 22:47:40 +0000 (23:47 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 12 Mar 2018 22:01:02 +0000 (23:01 +0100)
We want to see that VMS syntax paths are treated correctly.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5587)

test/recipes/90-test_includes.t
test/recipes/90-test_includes_data/vms-includes-file.cnf [new file with mode: 0644]
test/recipes/90-test_includes_data/vms-includes.cnf [new file with mode: 0644]

index 9cf75a1..5169700 100644 (file)
@@ -10,8 +10,16 @@ setup("test_includes");
 plan skip_all => "test_includes doesn't work without posix-io"
     if disabled("posix-io");
 
-plan tests => 3;                # The number of tests being performed
+plan tests =>                   # The number of tests being performed
+    3
+    + ($^O eq "VMS" ? 2 : 0);
 
 ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes");
 ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes");
+if ($^O eq "VMS") {
+    ok(run(test(["conf_include_test", data_file("vms-includes.cnf")])),
+       "test directory includes, VMS syntax");
+    ok(run(test(["conf_include_test", data_file("vms-includes-file.cnf")])),
+       "test file includes, VMS syntax");
+}
 ok(run(test(["conf_include_test", data_file("includes-broken.cnf"), "f"])), "test broken includes");
diff --git a/test/recipes/90-test_includes_data/vms-includes-file.cnf b/test/recipes/90-test_includes_data/vms-includes-file.cnf
new file mode 100644 (file)
index 0000000..f3b72e7
--- /dev/null
@@ -0,0 +1,5 @@
+#
+# Example configuration file using includes.
+#
+
+.include vms-includes.cnf
diff --git a/test/recipes/90-test_includes_data/vms-includes.cnf b/test/recipes/90-test_includes_data/vms-includes.cnf
new file mode 100644 (file)
index 0000000..ed4367b
--- /dev/null
@@ -0,0 +1,5 @@
+#
+# Example configuration file using includes.
+#
+
+.include [.conf-includes]