Fix a bug in the new PACKET implementation
[openssl.git] / test / testenc.com
index 3b66f2e0d0614f5de4ac0a88b01094c8d69eda03..fcd66399d6aea050b8a9604c9feb9743030efa4e 100644 (file)
@@ -1,15 +1,21 @@
 $! 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';*
-$      copy 'testsrc' 'test'
+$      convert/fdl=sys$input: 'testsrc' 'test'
+RECORD
+       FORMAT STREAM_LF
 $
 $      if f$search(test+"-cipher") .nes. "" then delete 'test'-cipher;*
 $      if f$search(test+"-clear") .nes. "" then delete 'test'-clear;*
@@ -29,7 +35,7 @@ $     if $severity .ne. 1 then exit 3
 $      delete 'test'-cipher;*,'test'-clear;*
 $
 $      define/user sys$output 'test'-cipher-commands
-$      'cmd' list-cipher-commands
+$      'cmd' list -cipher-commands
 $      open/read f 'test'-cipher-commands
 $ loop_cipher_commands:
 $      read/end=loop_cipher_commands_end f i