X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Ftestenc.com;h=75acd6f07fa0bd44aa7ff7052633b6ab4135f0ab;hp=9e902a2bf738d99047488b6c5a07c71aa18e3b82;hb=be16cc23c63043e3095a9f6c3bed38f284c5c32b;hpb=41f0aae69ba76ef2e0f0422920375077a55087cc diff --git a/test/testenc.com b/test/testenc.com index 9e902a2bf7..75acd6f07f 100644 --- a/test/testenc.com +++ b/test/testenc.com @@ -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;* @@ -28,9 +34,9 @@ $ backup/compare 'test' 'test'-clear $ if $severity .ne. 1 then exit 3 $ delete 'test'-cipher;*,'test'-clear;* $ -$ define/user sys$output 'test'-cipher-commands. +$ define/user sys$output 'test'-cipher-commands $ 'cmd' list-cipher-commands -$ open/read f 'test'-cipher-commands. +$ open/read f 'test'-cipher-commands $ loop_cipher_commands: $ read/end=loop_cipher_commands_end f i $ write sys$output i @@ -56,5 +62,5 @@ $ $ goto loop_cipher_commands $ loop_cipher_commands_end: $ close f -$ delete 'test'-cipher-commands.;* +$ delete 'test'-cipher-commands;* $ delete 'test';*