summaryrefslogtreecommitdiff
path: root/VMS
diff options
context:
space:
mode:
authorlevitte <levitte>2000-01-18 08:10:28 +0000
committerlevitte <levitte>2000-01-18 08:10:28 +0000
commit0cc21b0e4e6f8527acc720986f0c69b6687c7a89 (patch)
treeb15e71cb091ea8b2d677ff6319b70f285bd06290 /VMS
parent48e3a809a30b94d3c7ff169072032086eedbf152 (diff)
downloadopenssl-0cc21b0e4e6f8527acc720986f0c69b6687c7a89.tar.gz
A test script to check on the header files
Diffstat (limited to 'VMS')
-rw-r--r--VMS/test-includes.com28
1 files changed, 28 insertions, 0 deletions
diff --git a/VMS/test-includes.com b/VMS/test-includes.com
new file mode 100644
index 000000000..c1d7ccd0e
--- /dev/null
+++ b/VMS/test-includes.com
@@ -0,0 +1,28 @@
+$! Quick script to check how well including individual header files works
+$! on VMS, even when the VMS macro isn't defined.
+$
+$ sav_def = f$env("DEFAULT")
+$ here = f$parse("A.;0",f$ENV("PROCEDURE")) - "A.;0"
+$ set default 'here'
+$ set default [-.include.openssl]
+$ define openssl 'f$env("DEFAULT")'
+$ set default [--]
+$
+$ loop:
+$ f = f$search("openssl:*.h")
+$ if f .eqs. "" then goto loop_end
+$ write sys$output "Checking ",f
+$ open/write foo foo.c
+$ write foo "#undef VMS"
+$ write foo "#include <stdio.h>"
+$ write foo "#include <openssl/",f$parse(f,,,"NAME"),".h>"
+$ write foo "main()"
+$ write foo "{printf(""foo\n"");}"
+$ close foo
+$ cc/STANDARD=ANSI89/NOLIST/PREFIX=ALL foo.c
+$ delete foo.c;
+$ goto loop
+$ loop_end:
+$ set default 'save_def'
+$ exit
+