Merge remote-tracking branch 'trevp/pemfix' into trev-pem-fix
[openssl.git] / test / treq.com
index 5524e485ba3d9fa54bf3522f8f690c11ee1da0e1..acf08b79efda0cd6d11575e3164754ec3bb8f97e 100644 (file)
@@ -1,12 +1,17 @@
 $! TREQ.COM  --  Tests req keys
 $
-$      __arch := VAX
-$      if f$getsyi("cpu") .ge. 128 then __arch := AXP
-$      exe_dir := sys$disk:[-.'__arch'.exe.apps]
+$      __arch = "VAX"
+$      if f$getsyi("cpu") .ge. 128 then -
+          __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
+$      if __arch .eqs. "" then __arch = "UNK"
+$!
+$      if (p2 .eqs. "64") then __arch = __arch+ "_64"
+$!
+$      exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
 $
-$      cmd := mcr 'exe_dir'openssl req -config [-.apps]openssl-vms.cnf
+$      cmd = "mcr ''exe_dir'openssl req -config [-.apps]openssl-vms.cnf"
 $
-$      t := testreq.pem
+$      t = "testreq.pem"
 $      if p1 .nes. "" then t = p1
 $
 $      write sys$output "testing req conversions"