X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Ftestenc.com;h=5e6f521f9deac5852889ae05895bd6e8f2217820;hb=f5cbf8fbe10ad934c2ef38f08f7f4c1da242d34f;hp=0756e8badaaff49d6cdf554c5bee2db64e680aa8;hpb=7d7d2cbcb02206f3393681f2bce198e11e2e185b;p=openssl.git diff --git a/test/testenc.com b/test/testenc.com index 0756e8bada..5e6f521f9d 100644 --- a/test/testenc.com +++ b/test/testenc.com @@ -4,23 +4,29 @@ $ __arch := VAX $ if f$getsyi("cpu") .ge. 128 then __arch := AXP $ exe_dir := sys$disk:[-.'__arch'.exe.apps] $ -$ 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 $ 'cmd' enc -in 'test'-cipher -out 'test'-clear -$ difference/output=nl: 'test' 'test'-clear +$ backup/compare 'test' 'test'-clear $ if $severity .ne. 1 then exit 3 $ delete 'test'-cipher;*,'test'-clear;* $ $ write sys$output "base64" $ 'cmd' enc -a -e -in 'test' -out 'test'-cipher $ 'cmd' enc -a -d -in 'test'-cipher -out 'test'-clear -$ difference/output=nl: 'test' 'test'-clear +$ backup/compare 'test' 'test'-clear $ if $severity .ne. 1 then exit 3 $ delete 'test'-cipher;*,'test'-clear;* $ @@ -30,16 +36,22 @@ $ 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 -$ difference/output=nl: 'test' 'test'-'i'-clear +$ backup/compare 'test' 'test'-'i'-clear $ if $severity .ne. 1 then exit 3 $ delete 'test'-'i'-cipher;*,'test'-'i'-clear;* $ $ write sys$output i," base64" $ 'cmd' 'i' -bufsize 113 -a -e -k test -in 'test' -out 'test'-'i'-cipher $ 'cmd' 'i' -bufsize 157 -a -d -k test -in 'test'-'i'-cipher -out 'test'-'i'-clear -$ difference/output=nl: 'test' 'test'-'i'-clear +$ backup/compare 'test' 'test'-'i'-clear $ if $severity .ne. 1 then exit 3 $ delete 'test'-'i'-cipher;*,'test'-'i'-clear;* $