]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/trsa.com
Add -d debug option to save preprocessed files.
[thirdparty/openssl.git] / test / trsa.com
CommitLineData
7d7d2cbc
UM
1$! TRSA.COM -- Tests rsa keys
2$
3$ __arch := VAX
48f48d96 4$ if f$getsyi("cpu") .ge. 128 then -
3acd3158 5 __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
48f48d96 6$ if __arch .eqs. "" then __arch := UNK
7d7d2cbc
UM
7$ exe_dir := sys$disk:[-.'__arch'.exe.apps]
8$
c13ee214
RL
9$ set noon
10$ define/user sys$output nla0:
11$ mcr 'exe_dir'openssl no-rsa
12$ save_severity=$SEVERITY
13$ set on
14$ if save_severity
bc23b70e 15$ then
c13ee214
RL
16$ write sys$output "skipping RSA conversion test"
17$ exit
bc23b70e 18$ endif
bc23b70e 19$
7d7d2cbc
UM
20$ cmd := mcr 'exe_dir'openssl rsa
21$
22$ t := testrsa.pem
23$ if p1 .nes. "" then t = p1
24$
25$ write sys$output "testing RSA conversions"
921c9bd5
RL
26$ if f$search("fff.*") .nes "" then delete fff.*;*
27$ if f$search("ff.*") .nes "" then delete ff.*;*
28$ if f$search("f.*") .nes "" then delete f.*;*
b4406973
RL
29$ convert/fdl=sys$input: 't' fff.p
30RECORD
31 FORMAT STREAM_LF
7d7d2cbc
UM
32$
33$ write sys$output "p -> d"
34$ 'cmd' -in fff.p -inform p -outform d -out f.d
35$ if $severity .ne. 1 then exit 3
36$! write sys$output "p -> t"
37$! 'cmd' -in fff.p -inform p -outform t -out f.t
38$! if $severity .ne. 1 then exit 3
39$ write sys$output "p -> p"
40$ 'cmd' -in fff.p -inform p -outform p -out f.p
41$ if $severity .ne. 1 then exit 3
42$
43$ write sys$output "d -> d"
44$ 'cmd' -in f.d -inform d -outform d -out ff.d1
45$ if $severity .ne. 1 then exit 3
46$! write sys$output "t -> d"
47$! 'cmd' -in f.t -inform t -outform d -out ff.d2
48$! if $severity .ne. 1 then exit 3
49$ write sys$output "p -> d"
50$ 'cmd' -in f.p -inform p -outform d -out ff.d3
51$ if $severity .ne. 1 then exit 3
52$
53$! write sys$output "d -> t"
54$! 'cmd' -in f.d -inform d -outform t -out ff.t1
55$! if $severity .ne. 1 then exit 3
56$! write sys$output "t -> t"
57$! 'cmd' -in f.t -inform t -outform t -out ff.t2
58$! if $severity .ne. 1 then exit 3
59$! write sys$output "p -> t"
60$! 'cmd' -in f.p -inform p -outform t -out ff.t3
61$! if $severity .ne. 1 then exit 3
62$
63$ write sys$output "d -> p"
64$ 'cmd' -in f.d -inform d -outform p -out ff.p1
65$ if $severity .ne. 1 then exit 3
66$! write sys$output "t -> p"
67$! 'cmd' -in f.t -inform t -outform p -out ff.p2
68$! if $severity .ne. 1 then exit 3
69$ write sys$output "p -> p"
70$ 'cmd' -in f.p -inform p -outform p -out ff.p3
71$ if $severity .ne. 1 then exit 3
72$
13427e45 73$ backup/compare fff.p f.p
7d7d2cbc 74$ if $severity .ne. 1 then exit 3
13427e45 75$ backup/compare fff.p ff.p1
7d7d2cbc 76$ if $severity .ne. 1 then exit 3
13427e45 77$! backup/compare fff.p ff.p2
7d7d2cbc 78$! if $severity .ne. 1 then exit 3
13427e45 79$ backup/compare fff.p ff.p3
7d7d2cbc
UM
80$ if $severity .ne. 1 then exit 3
81$
13427e45 82$! backup/compare f.t ff.t1
7d7d2cbc 83$! if $severity .ne. 1 then exit 3
13427e45 84$! backup/compare f.t ff.t2
7d7d2cbc 85$! if $severity .ne. 1 then exit 3
13427e45 86$! backup/compare f.t ff.t3
7d7d2cbc
UM
87$! if $severity .ne. 1 then exit 3
88$
13427e45 89$ backup/compare f.p ff.p1
7d7d2cbc 90$ if $severity .ne. 1 then exit 3
13427e45 91$! backup/compare f.p ff.p2
7d7d2cbc 92$! if $severity .ne. 1 then exit 3
13427e45 93$ backup/compare f.p ff.p3
7d7d2cbc
UM
94$ if $severity .ne. 1 then exit 3
95$
96$ delete f.*;*,ff.*;*,fff.*;*