test/Makefile: allow emulated test (e.g. under wine).
[openssl.git] / test / testenc.com
index c24fa388c06a01fddb705e3676bf294513fe352f..75acd6f07fa0bd44aa7ff7052633b6ab4135f0ab 100644 (file)
@@ -1,12 +1,16 @@
 $! TESTENC.COM  --  Test encoding and decoding
 $
-$      __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 (p1 .eqs. 64) then __arch = __arch+ "_64"
 $
-$      testsrc := makefile.ssl
-$      test := p.txt
-$      cmd := mcr 'exe_dir'openssl
+$      exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
+$      testsrc = "makefile."
+$      test = "p.txt"
+$      cmd = "mcr ''exe_dir'openssl"
 $
 $      if f$search(test) .nes. "" then delete 'test';*
 $      convert/fdl=sys$input: 'testsrc' 'test'