X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=test%2Ftestenc.com;h=621d9a21264288af4a8183609d8c6f7619ea52a7;hb=bc0ecd202ab37f02b9d7dd610cbb0cf98db9fb52;hp=5a1fc478f3ed5648d8430f1f531a77f02f90355b;hpb=13427e4561d93442c061eeb850420315be4fd437;p=openssl.git diff --git a/test/testenc.com b/test/testenc.com index 5a1fc478f3..621d9a2126 100644 --- a/test/testenc.com +++ b/test/testenc.com @@ -1,14 +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] +$ if f$getsyi("cpu") .ge. 128 then - + __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE") +$ if __arch .eqs. "" then __arch := UNK $ -$ testsrc := makefile.ssl +$ testsrc := makefile. $ test := p.txt $ cmd := mcr 'exe_dir'openssl $ -$ copy 'testsrc' 'test' +$ if f$search(test) .nes. "" then delete '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;* $ $ write sys$output "cat" $ 'cmd' enc -in 'test' -out 'test'-cipher @@ -30,6 +37,12 @@ $ open/read f 'test'-cipher-commands $ loop_cipher_commands: $ read/end=loop_cipher_commands_end f i $ write sys$output i +$ +$ if f$search(test+"-"+i+"-cipher") .nes. "" then - + delete 'test'-'i'-cipher;* +$ if f$search(test+"-"+i+"-clear") .nes. "" then - + delete 'test'-'i'-clear;* +$ $ 'cmd' 'i' -bufsize 113 -e -k test -in 'test' -out 'test'-'i'-cipher $ 'cmd' 'i' -bufsize 157 -d -k test -in 'test'-'i'-cipher -out 'test'-'i'-clear $ backup/compare 'test' 'test'-'i'-clear