X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Ftpkcs7.com;h=3fc4982bb009563e8bca2cc65491cdb4bb98b671;hp=5ed920ac34581075c95dff54006367dc60ca0ad2;hb=4b64e0cbdb563e13a6f7cd8631b31532c04f1234;hpb=7d7d2cbcb02206f3393681f2bce198e11e2e185b diff --git a/test/tpkcs7.com b/test/tpkcs7.com index 5ed920ac34..3fc4982bb0 100644 --- a/test/tpkcs7.com +++ b/test/tpkcs7.com @@ -1,16 +1,26 @@ $! TPKCS7.COM -- Tests pkcs7 keys $ -$ __arch := VAX -$ if f$getsyi("cpu") .ge. 128 then __arch := AXP -$ exe_dir := sys$disk:[-.'__arch'.exe.apps] -$ -$ cmd := mcr 'exe_dir'openssl pkcs7 -$ -$ t := testp7.pem +$ __arch = "VAX" +$ if f$getsyi("cpu") .ge. 128 then - + __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE") +$ if __arch .eqs. "" then __arch = "UNK" +$! +$ if (p2 .eqs. "64") then __arch = __arch+ "_64" +$! +$ exe_dir = "sys$disk:[-.''__arch'.exe.apps]" +$ +$ cmd = "mcr ''exe_dir'openssl pkcs7" +$ +$ t = "testp7.pem" $ if p1 .nes. "" then t = p1 $ $ write sys$output "testing PKCS7 conversions" -$ copy 't' fff.p +$ if f$search("fff.*") .nes "" then delete fff.*;* +$ if f$search("ff.*") .nes "" then delete ff.*;* +$ if f$search("f.*") .nes "" then delete f.*;* +$ convert/fdl=sys$input: 't' fff.p +RECORD + FORMAT STREAM_LF $ $ write sys$output "p -> d" $ 'cmd' -in fff.p -inform p -outform d -out f.d @@ -34,16 +44,16 @@ $ write sys$output "p -> p" $ 'cmd' -in f.p -inform p -outform p -out ff.p3 $ if $severity .ne. 1 then exit 3 $ -$ difference/output=nl: fff.p f.p +$ backup/compare fff.p f.p $ if $severity .ne. 1 then exit 3 -$ difference/output=nl: fff.p ff.p1 +$ backup/compare fff.p ff.p1 $ if $severity .ne. 1 then exit 3 -$ difference/output=nl: fff.p ff.p3 +$ backup/compare fff.p ff.p3 $ if $severity .ne. 1 then exit 3 $ -$ difference/output=nl: f.p ff.p1 +$ backup/compare f.p ff.p1 $ if $severity .ne. 1 then exit 3 -$ difference/output=nl: f.p ff.p3 +$ backup/compare f.p ff.p3 $ if $severity .ne. 1 then exit 3 $ $ delete f.*;*,ff.*;*,fff.*;*