xref: /minix3/crypto/external/bsd/openssl/dist/test/tests.com (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1ebfedea0SLionel Sambuc$! TESTS.COM  --  Performs the necessary tests
2ebfedea0SLionel Sambuc$!
3ebfedea0SLionel Sambuc$! P1	tests to be performed.  Empty means all.
4ebfedea0SLionel Sambuc$! P2	Pointer size: "", "32", or "64".
5ebfedea0SLionel Sambuc$!
6ebfedea0SLionel Sambuc$! Announce/identify.
7ebfedea0SLionel Sambuc$!
8ebfedea0SLionel Sambuc$	proc = f$environment( "procedure")
9ebfedea0SLionel Sambuc$	write sys$output "@@@ "+ -
10ebfedea0SLionel Sambuc	 f$parse( proc, , , "name")+ f$parse( proc, , , "type")
11ebfedea0SLionel Sambuc$!
12ebfedea0SLionel Sambuc$	__proc = f$element(0,";",f$environment("procedure"))
13ebfedea0SLionel Sambuc$	__here = f$parse(f$parse("A.;",__proc) - "A.;","[]A.;") - "A.;"
14ebfedea0SLionel Sambuc$	__save_default = f$environment("default")
15ebfedea0SLionel Sambuc$	__arch = "VAX"
16ebfedea0SLionel Sambuc$	if f$getsyi("cpu") .ge. 128 then -
17ebfedea0SLionel Sambuc	   __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
18ebfedea0SLionel Sambuc$	if __arch .eqs. "" then __arch = "UNK"
19ebfedea0SLionel Sambuc$!
20ebfedea0SLionel Sambuc$	__archd = __arch
21ebfedea0SLionel Sambuc$       pointer_size = ""
22ebfedea0SLionel Sambuc$	if (p2 .eq. "64")
23ebfedea0SLionel Sambuc$	then
24ebfedea0SLionel Sambuc$	  pointer_size = "64"
25ebfedea0SLionel Sambuc$	  __archd = __arch+ "_64"
26ebfedea0SLionel Sambuc$	endif
27ebfedea0SLionel Sambuc$!
28ebfedea0SLionel Sambuc$	texe_dir := sys$disk:[-.'__archd'.exe.test]
29ebfedea0SLionel Sambuc$	exe_dir := sys$disk:[-.'__archd'.exe.apps]
30ebfedea0SLionel Sambuc$
31ebfedea0SLionel Sambuc$	set default '__here'
32ebfedea0SLionel Sambuc$
33ebfedea0SLionel Sambuc$       ROOT = F$PARSE("sys$disk:[-]A.;0",,,,"SYNTAX_ONLY,NO_CONCEAL") - "A.;0"
34ebfedea0SLionel Sambuc$       ROOT_DEV = F$PARSE(ROOT,,,"DEVICE","SYNTAX_ONLY")
35ebfedea0SLionel Sambuc$       ROOT_DIR = F$PARSE(ROOT,,,"DIRECTORY","SYNTAX_ONLY") -
36ebfedea0SLionel Sambuc                   - ".][000000" - "[000000." - "][" - "[" - "]"
37ebfedea0SLionel Sambuc$       ROOT = ROOT_DEV + "[" + ROOT_DIR
38ebfedea0SLionel Sambuc$       DEFINE/NOLOG SSLROOT 'ROOT'.APPS.] /TRANS=CONC
39ebfedea0SLionel Sambuc$	openssl_conf := sslroot:[000000]openssl-vms.cnf
40ebfedea0SLionel Sambuc$
41ebfedea0SLionel Sambuc$	on control_y then goto exit
42ebfedea0SLionel Sambuc$	on error then goto exit
43ebfedea0SLionel Sambuc$
44ebfedea0SLionel Sambuc$	if p1 .nes. ""
45ebfedea0SLionel Sambuc$	then
46ebfedea0SLionel Sambuc$	    tests = p1
47ebfedea0SLionel Sambuc$	else
48ebfedea0SLionel Sambuc$! NOTE: This list reflects the list of dependencies following the
49ebfedea0SLionel Sambuc$! "alltests" target in Makefile.  This should make it easy to see
50ebfedea0SLionel Sambuc$! if there's a difference that needs to be taken care of.
51ebfedea0SLionel Sambuc$	    tests := -
52ebfedea0SLionel Sambuc	test_des,test_idea,test_sha,test_md4,test_md5,test_hmac,-
53ebfedea0SLionel Sambuc	test_md2,test_mdc2,test_wp,-
54ebfedea0SLionel Sambuc	test_rmd,test_rc2,test_rc4,test_rc5,test_bf,test_cast,test_aes,-
55ebfedea0SLionel Sambuc	test_rand,test_bn,test_ec,test_ecdsa,test_ecdh,-
56ebfedea0SLionel Sambuc	test_enc,test_x509,test_rsa,test_crl,test_sid,-
57ebfedea0SLionel Sambuc	test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,-
58ebfedea0SLionel Sambuc	test_ss,test_ca,test_engine,test_evp,test_ssl,test_tsa,test_ige,-
59*0a6a1f1dSLionel Sambuc	test_jpake,test_srp,test_cms,test_heartbeat,test_constant_time
60ebfedea0SLionel Sambuc$	endif
61ebfedea0SLionel Sambuc$	tests = f$edit(tests,"COLLAPSE")
62ebfedea0SLionel Sambuc$
63ebfedea0SLionel Sambuc$	BNTEST :=	bntest
64ebfedea0SLionel Sambuc$	ECTEST :=	ectest
65ebfedea0SLionel Sambuc$	ECDSATEST :=	ecdsatest
66ebfedea0SLionel Sambuc$	ECDHTEST :=	ecdhtest
67ebfedea0SLionel Sambuc$	EXPTEST :=	exptest
68ebfedea0SLionel Sambuc$	IDEATEST :=	ideatest
69ebfedea0SLionel Sambuc$	SHATEST :=	shatest
70ebfedea0SLionel Sambuc$	SHA1TEST :=	sha1test
71ebfedea0SLionel Sambuc$	SHA256TEST :=	sha256t
72ebfedea0SLionel Sambuc$	SHA512TEST :=	sha512t
73ebfedea0SLionel Sambuc$	MDC2TEST :=	mdc2test
74ebfedea0SLionel Sambuc$	RMDTEST :=	rmdtest
75ebfedea0SLionel Sambuc$	MD2TEST :=	md2test
76ebfedea0SLionel Sambuc$	MD4TEST :=	md4test
77ebfedea0SLionel Sambuc$	MD5TEST :=	md5test
78ebfedea0SLionel Sambuc$	HMACTEST :=	hmactest
79ebfedea0SLionel Sambuc$	WPTEST :=	wp_test
80ebfedea0SLionel Sambuc$	RC2TEST :=	rc2test
81ebfedea0SLionel Sambuc$	RC4TEST :=	rc4test
82ebfedea0SLionel Sambuc$	RC5TEST :=	rc5test
83ebfedea0SLionel Sambuc$	BFTEST :=	bftest
84ebfedea0SLionel Sambuc$	CASTTEST :=	casttest
85ebfedea0SLionel Sambuc$	DESTEST :=	destest
86ebfedea0SLionel Sambuc$	RANDTEST :=	randtest
87ebfedea0SLionel Sambuc$	DHTEST :=	dhtest
88ebfedea0SLionel Sambuc$	DSATEST :=	dsatest
89ebfedea0SLionel Sambuc$	METHTEST :=	methtest
90ebfedea0SLionel Sambuc$	SSLTEST :=	ssltest
91ebfedea0SLionel Sambuc$	RSATEST :=	rsa_test
92ebfedea0SLionel Sambuc$	ENGINETEST :=	enginetest
93ebfedea0SLionel Sambuc$	EVPTEST :=	evp_test
94ebfedea0SLionel Sambuc$	IGETEST :=	igetest
95ebfedea0SLionel Sambuc$	JPAKETEST :=	jpaketest
96ebfedea0SLionel Sambuc$	SRPTEST :=	srptest
97ebfedea0SLionel Sambuc$	ASN1TEST :=	asn1test
98*0a6a1f1dSLionel Sambuc$	HEARTBEATTEST := heartbeat_test
99*0a6a1f1dSLionel Sambuc$	CONSTTIMETEST := constant_time_test
100ebfedea0SLionel Sambuc$!
101ebfedea0SLionel Sambuc$	tests_i = 0
102ebfedea0SLionel Sambuc$ loop_tests:
103ebfedea0SLionel Sambuc$	tests_e = f$element(tests_i,",",tests)
104ebfedea0SLionel Sambuc$	tests_i = tests_i + 1
105ebfedea0SLionel Sambuc$	if tests_e .eqs. "," then goto exit
106ebfedea0SLionel Sambuc$	write sys$output "---> ''tests_e'"
107ebfedea0SLionel Sambuc$	gosub 'tests_e'
108ebfedea0SLionel Sambuc$	goto loop_tests
109ebfedea0SLionel Sambuc$
110ebfedea0SLionel Sambuc$ test_evp:
111ebfedea0SLionel Sambuc$	mcr 'texe_dir''evptest' 'ROOT'.CRYPTO.EVP]evptests.txt
112ebfedea0SLionel Sambuc$	return
113ebfedea0SLionel Sambuc$ test_des:
114ebfedea0SLionel Sambuc$	mcr 'texe_dir''destest'
115ebfedea0SLionel Sambuc$	return
116ebfedea0SLionel Sambuc$ test_idea:
117ebfedea0SLionel Sambuc$	mcr 'texe_dir''ideatest'
118ebfedea0SLionel Sambuc$	return
119ebfedea0SLionel Sambuc$ test_sha:
120ebfedea0SLionel Sambuc$	mcr 'texe_dir''shatest'
121ebfedea0SLionel Sambuc$	mcr 'texe_dir''sha1test'
122ebfedea0SLionel Sambuc$	mcr 'texe_dir''sha256test'
123ebfedea0SLionel Sambuc$	mcr 'texe_dir''sha512test'
124ebfedea0SLionel Sambuc$	return
125ebfedea0SLionel Sambuc$ test_mdc2:
126ebfedea0SLionel Sambuc$	mcr 'texe_dir''mdc2test'
127ebfedea0SLionel Sambuc$	return
128ebfedea0SLionel Sambuc$ test_md5:
129ebfedea0SLionel Sambuc$	mcr 'texe_dir''md5test'
130ebfedea0SLionel Sambuc$	return
131ebfedea0SLionel Sambuc$ test_md4:
132ebfedea0SLionel Sambuc$	mcr 'texe_dir''md4test'
133ebfedea0SLionel Sambuc$	return
134ebfedea0SLionel Sambuc$ test_hmac:
135ebfedea0SLionel Sambuc$	mcr 'texe_dir''hmactest'
136ebfedea0SLionel Sambuc$	return
137ebfedea0SLionel Sambuc$ test_wp:
138ebfedea0SLionel Sambuc$	mcr 'texe_dir''wptest'
139ebfedea0SLionel Sambuc$	return
140ebfedea0SLionel Sambuc$ test_md2:
141ebfedea0SLionel Sambuc$	mcr 'texe_dir''md2test'
142ebfedea0SLionel Sambuc$	return
143ebfedea0SLionel Sambuc$ test_rmd:
144ebfedea0SLionel Sambuc$	mcr 'texe_dir''rmdtest'
145ebfedea0SLionel Sambuc$	return
146ebfedea0SLionel Sambuc$ test_bf:
147ebfedea0SLionel Sambuc$	mcr 'texe_dir''bftest'
148ebfedea0SLionel Sambuc$	return
149ebfedea0SLionel Sambuc$ test_cast:
150ebfedea0SLionel Sambuc$	mcr 'texe_dir''casttest'
151ebfedea0SLionel Sambuc$	return
152ebfedea0SLionel Sambuc$ test_rc2:
153ebfedea0SLionel Sambuc$	mcr 'texe_dir''rc2test'
154ebfedea0SLionel Sambuc$	return
155ebfedea0SLionel Sambuc$ test_rc4:
156ebfedea0SLionel Sambuc$	mcr 'texe_dir''rc4test'
157ebfedea0SLionel Sambuc$	return
158ebfedea0SLionel Sambuc$ test_rc5:
159ebfedea0SLionel Sambuc$	mcr 'texe_dir''rc5test'
160ebfedea0SLionel Sambuc$	return
161ebfedea0SLionel Sambuc$ test_rand:
162ebfedea0SLionel Sambuc$	mcr 'texe_dir''randtest'
163ebfedea0SLionel Sambuc$	return
164ebfedea0SLionel Sambuc$ test_enc:
165ebfedea0SLionel Sambuc$	@testenc.com 'pointer_size'
166ebfedea0SLionel Sambuc$	return
167ebfedea0SLionel Sambuc$ test_x509:
168ebfedea0SLionel Sambuc$	set noon
169ebfedea0SLionel Sambuc$	define sys$error test_x509.err
170ebfedea0SLionel Sambuc$	write sys$output "test normal x509v1 certificate"
171ebfedea0SLionel Sambuc$	@tx509.com "" 'pointer_size'
172ebfedea0SLionel Sambuc$	write sys$output "test first x509v3 certificate"
173ebfedea0SLionel Sambuc$	@tx509.com v3-cert1.pem 'pointer_size'
174ebfedea0SLionel Sambuc$	write sys$output "test second x509v3 certificate"
175ebfedea0SLionel Sambuc$	@tx509.com v3-cert2.pem 'pointer_size'
176ebfedea0SLionel Sambuc$	deassign sys$error
177ebfedea0SLionel Sambuc$	set on
178ebfedea0SLionel Sambuc$	return
179ebfedea0SLionel Sambuc$ test_rsa:
180ebfedea0SLionel Sambuc$	set noon
181ebfedea0SLionel Sambuc$	define sys$error test_rsa.err
182ebfedea0SLionel Sambuc$	@trsa.com "" 'pointer_size'
183ebfedea0SLionel Sambuc$	deassign sys$error
184ebfedea0SLionel Sambuc$	mcr 'texe_dir''rsatest'
185ebfedea0SLionel Sambuc$	set on
186ebfedea0SLionel Sambuc$	return
187ebfedea0SLionel Sambuc$ test_crl:
188ebfedea0SLionel Sambuc$	set noon
189ebfedea0SLionel Sambuc$	define sys$error test_crl.err
190ebfedea0SLionel Sambuc$	@tcrl.com "" 'pointer_size'
191ebfedea0SLionel Sambuc$	deassign sys$error
192ebfedea0SLionel Sambuc$	set on
193ebfedea0SLionel Sambuc$	return
194ebfedea0SLionel Sambuc$ test_sid:
195ebfedea0SLionel Sambuc$	set noon
196ebfedea0SLionel Sambuc$	define sys$error test_sid.err
197ebfedea0SLionel Sambuc$	@tsid.com "" 'pointer_size'
198ebfedea0SLionel Sambuc$	deassign sys$error
199ebfedea0SLionel Sambuc$	set on
200ebfedea0SLionel Sambuc$	return
201ebfedea0SLionel Sambuc$ test_req:
202ebfedea0SLionel Sambuc$	set noon
203ebfedea0SLionel Sambuc$	define sys$error test_req.err
204ebfedea0SLionel Sambuc$	@treq.com "" 'pointer_size'
205ebfedea0SLionel Sambuc$	@treq.com testreq2.pem 'pointer_size'
206ebfedea0SLionel Sambuc$	deassign sys$error
207ebfedea0SLionel Sambuc$	set on
208ebfedea0SLionel Sambuc$	return
209ebfedea0SLionel Sambuc$ test_pkcs7:
210ebfedea0SLionel Sambuc$	set noon
211ebfedea0SLionel Sambuc$	define sys$error test_pkcs7.err
212ebfedea0SLionel Sambuc$	@tpkcs7.com "" 'pointer_size'
213ebfedea0SLionel Sambuc$	@tpkcs7d.com "" 'pointer_size'
214ebfedea0SLionel Sambuc$	deassign sys$error
215ebfedea0SLionel Sambuc$	set on
216ebfedea0SLionel Sambuc$	return
217ebfedea0SLionel Sambuc$ test_bn:
218ebfedea0SLionel Sambuc$	write sys$output -
219ebfedea0SLionel Sambuc	      "starting big number library test, could take a while..."
220ebfedea0SLionel Sambuc$	set noon
221ebfedea0SLionel Sambuc$	define sys$error test_bn.err
222ebfedea0SLionel Sambuc$	define sys$output test_bn.out
223ebfedea0SLionel Sambuc$	@ bctest.com
224ebfedea0SLionel Sambuc$	status = $status
225ebfedea0SLionel Sambuc$	deassign sys$error
226ebfedea0SLionel Sambuc$	deassign sys$output
227ebfedea0SLionel Sambuc$	set on
228ebfedea0SLionel Sambuc$	if (status)
229ebfedea0SLionel Sambuc$	then
230ebfedea0SLionel Sambuc$	    create /fdl = sys$input bntest-vms.tmp
231ebfedea0SLionel SambucFILE
232ebfedea0SLionel Sambuc	ORGANIZATION	sequential
233ebfedea0SLionel SambucRECORD
234ebfedea0SLionel Sambuc	FORMAT		stream_lf
235ebfedea0SLionel Sambuc$	    define /user_mode sys$output bntest-vms.tmp
236ebfedea0SLionel Sambuc$	    mcr 'texe_dir''bntest'
237ebfedea0SLionel Sambuc$	    define /user_mode sys$input bntest-vms.tmp
238ebfedea0SLionel Sambuc$	    define /user_mode sys$output bntest-vms.out
239ebfedea0SLionel Sambuc$	    bc
240ebfedea0SLionel Sambuc$	    @ bntest.com bntest-vms.out
241ebfedea0SLionel Sambuc$	    status = $status
242ebfedea0SLionel Sambuc$	    if (status)
243ebfedea0SLionel Sambuc$	    then
244ebfedea0SLionel Sambuc$		delete bntest-vms.out;*
245ebfedea0SLionel Sambuc$		delete bntest-vms.tmp;*
246ebfedea0SLionel Sambuc$	    endif
247ebfedea0SLionel Sambuc$	else
248ebfedea0SLionel Sambuc$	    create /fdl = sys$input bntest-vms.sh
249ebfedea0SLionel SambucFILE
250ebfedea0SLionel Sambuc	ORGANIZATION	sequential
251ebfedea0SLionel SambucRECORD
252ebfedea0SLionel Sambuc	FORMAT		stream_lf
253ebfedea0SLionel Sambuc$	    open /append bntest_file bntest-vms.sh
254ebfedea0SLionel Sambuc$	    type /output = bntest_file sys$input:
255ebfedea0SLionel Sambuc<< __FOO__ sh -c "`sh ./bctest`" | perl -e '$i=0; while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $1";} elsif (!/^0$/) {die "\nFailed! bc: $_";} else {print STDERR "."; $i++;}} print STDERR "\n$i tests passed\n"'
256ebfedea0SLionel Sambuc$	    define /user_mode sys$output bntest-vms.tmp
257ebfedea0SLionel Sambuc$	    mcr 'texe_dir''bntest'
258ebfedea0SLionel Sambuc$	    copy bntest-vms.tmp bntest_file
259ebfedea0SLionel Sambuc$	    delete bntest-vms.tmp;*
260ebfedea0SLionel Sambuc$	    type /output = bntest_file sys$input:
261ebfedea0SLionel Sambuc__FOO__
262ebfedea0SLionel Sambuc$	    close bntest_file
263ebfedea0SLionel Sambuc$	    write sys$output "-- copy the [.test]bntest-vms.sh and [.test]bctest files to a Unix system and"
264ebfedea0SLionel Sambuc$	    write sys$output "-- run bntest-vms.sh through sh or bash to verify that the bignum operations"
265ebfedea0SLionel Sambuc$	    write sys$output "-- went well."
266ebfedea0SLionel Sambuc$	    write sys$output ""
267ebfedea0SLionel Sambuc$	endif
268ebfedea0SLionel Sambuc$	write sys$output "test a^b%c implementations"
269ebfedea0SLionel Sambuc$	mcr 'texe_dir''exptest'
270ebfedea0SLionel Sambuc$	return
271ebfedea0SLionel Sambuc$ test_ec:
272ebfedea0SLionel Sambuc$	write sys$output "test elliptic curves"
273ebfedea0SLionel Sambuc$	mcr 'texe_dir''ectest'
274ebfedea0SLionel Sambuc$	return
275ebfedea0SLionel Sambuc$ test_ecdsa:
276ebfedea0SLionel Sambuc$	write sys$output "test ecdsa"
277ebfedea0SLionel Sambuc$	mcr 'texe_dir''ecdsatest'
278ebfedea0SLionel Sambuc$	return
279ebfedea0SLionel Sambuc$ test_ecdh:
280ebfedea0SLionel Sambuc$	write sys$output "test ecdh"
281ebfedea0SLionel Sambuc$	mcr 'texe_dir''ecdhtest'
282ebfedea0SLionel Sambuc$	return
283ebfedea0SLionel Sambuc$ test_verify:
284ebfedea0SLionel Sambuc$	write sys$output "The following command should have some OK's and some failures"
285ebfedea0SLionel Sambuc$	write sys$output "There are definitly a few expired certificates"
286ebfedea0SLionel Sambuc$	@tverify.com 'pointer_size'
287ebfedea0SLionel Sambuc$	return
288ebfedea0SLionel Sambuc$ test_dh:
289ebfedea0SLionel Sambuc$	write sys$output "Generate a set of DH parameters"
290ebfedea0SLionel Sambuc$	mcr 'texe_dir''dhtest'
291ebfedea0SLionel Sambuc$	return
292ebfedea0SLionel Sambuc$ test_dsa:
293ebfedea0SLionel Sambuc$	write sys$output "Generate a set of DSA parameters"
294ebfedea0SLionel Sambuc$	mcr 'texe_dir''dsatest'
295ebfedea0SLionel Sambuc$	return
296ebfedea0SLionel Sambuc$ test_gen:
297ebfedea0SLionel Sambuc$	write sys$output "Generate and verify a certificate request"
298ebfedea0SLionel Sambuc$	@testgen.com 'pointer_size'
299ebfedea0SLionel Sambuc$	return
300ebfedea0SLionel Sambuc$ maybe_test_ss:
301ebfedea0SLionel Sambuc$	testss_RDT = f$cvtime(f$file_attributes("testss.com","RDT"))
302ebfedea0SLionel Sambuc$	if f$cvtime(f$file_attributes("keyU.ss","RDT")) .les. testss_RDT then -
303ebfedea0SLionel Sambuc		goto test_ss
304ebfedea0SLionel Sambuc$	if f$cvtime(f$file_attributes("certU.ss","RDT")) .les. testss_RDT then -
305ebfedea0SLionel Sambuc		goto test_ss
306ebfedea0SLionel Sambuc$	if f$cvtime(f$file_attributes("certCA.ss","RDT")) .les. testss_RDT then -
307ebfedea0SLionel Sambuc		goto test_ss
308ebfedea0SLionel Sambuc$	return
309ebfedea0SLionel Sambuc$ test_ss:
310ebfedea0SLionel Sambuc$	write sys$output "Generate and certify a test certificate"
311ebfedea0SLionel Sambuc$	@testss.com 'pointer_size'
312ebfedea0SLionel Sambuc$	return
313ebfedea0SLionel Sambuc$ test_engine:
314ebfedea0SLionel Sambuc$	write sys$output "Manipulate the ENGINE structures"
315ebfedea0SLionel Sambuc$	mcr 'texe_dir''enginetest'
316ebfedea0SLionel Sambuc$	return
317ebfedea0SLionel Sambuc$ test_ssl:
318ebfedea0SLionel Sambuc$	write sys$output "test SSL protocol"
319ebfedea0SLionel Sambuc$	gosub maybe_test_ss
320ebfedea0SLionel Sambuc$	@testssl.com keyU.ss certU.ss certCA.ss 'pointer_size'
321ebfedea0SLionel Sambuc$	return
322ebfedea0SLionel Sambuc$ test_ca:
323ebfedea0SLionel Sambuc$	set noon
324ebfedea0SLionel Sambuc$	define /user_mode sys$output test_ca.out
325ebfedea0SLionel Sambuc$	mcr 'exe_dir'openssl no-rsa
326ebfedea0SLionel Sambuc$	save_severity=$SEVERITY
327ebfedea0SLionel Sambuc$	set on
328ebfedea0SLionel Sambuc$	if save_severity
329ebfedea0SLionel Sambuc$	then
330ebfedea0SLionel Sambuc$	    write sys$output "skipping CA.com test -- requires RSA"
331ebfedea0SLionel Sambuc$	else
332ebfedea0SLionel Sambuc$	    write sys$output "Generate and certify a test certificate via the 'ca' program"
333ebfedea0SLionel Sambuc$	    @testca.com 'pointer_size'
334ebfedea0SLionel Sambuc$	endif
335ebfedea0SLionel Sambuc$	return
336ebfedea0SLionel Sambuc$ test_aes:
337ebfedea0SLionel Sambuc$!	write sys$output "test AES"
338ebfedea0SLionel Sambuc$!	!mcr 'texe_dir''aestest'
339ebfedea0SLionel Sambuc$	return
340ebfedea0SLionel Sambuc$ test_tsa:
341ebfedea0SLionel Sambuc$	set noon
342ebfedea0SLionel Sambuc$	define /user_mode sys$output nla0:
343ebfedea0SLionel Sambuc$	mcr 'exe_dir'openssl no-rsa
344ebfedea0SLionel Sambuc$	save_severity=$SEVERITY
345ebfedea0SLionel Sambuc$	set on
346ebfedea0SLionel Sambuc$	if save_severity
347ebfedea0SLionel Sambuc$	then
348ebfedea0SLionel Sambuc$	    write sys$output "skipping testtsa.com test -- requires RSA"
349ebfedea0SLionel Sambuc$	else
350ebfedea0SLionel Sambuc$	    @testtsa.com "" "" "" 'pointer_size'
351ebfedea0SLionel Sambuc$	endif
352ebfedea0SLionel Sambuc$	return
353ebfedea0SLionel Sambuc$ test_ige:
354ebfedea0SLionel Sambuc$	write sys$output "Test IGE mode"
355ebfedea0SLionel Sambuc$	mcr 'texe_dir''igetest'
356ebfedea0SLionel Sambuc$	return
357ebfedea0SLionel Sambuc$ test_jpake:
358ebfedea0SLionel Sambuc$	write sys$output "Test JPAKE"
359ebfedea0SLionel Sambuc$	mcr 'texe_dir''jpaketest'
360ebfedea0SLionel Sambuc$	return
361ebfedea0SLionel Sambuc$ test_cms:
362ebfedea0SLionel Sambuc$	write sys$output "CMS consistency test"
363ebfedea0SLionel Sambuc$	! Define the logical name used to find openssl.exe in the perl script.
364ebfedea0SLionel Sambuc$	define /user_mode osslx 'exe_dir'
365ebfedea0SLionel Sambuc$	perl CMS-TEST.PL
366ebfedea0SLionel Sambuc$	return
367ebfedea0SLionel Sambuc$ test_srp:
368ebfedea0SLionel Sambuc$	write sys$output "Test SRP"
369ebfedea0SLionel Sambuc$	mcr 'texe_dir''srptest'
370ebfedea0SLionel Sambuc$	return
371*0a6a1f1dSLionel Sambuc$ test_heartbeat:
372*0a6a1f1dSLionel Sambuc$       write sys$output "Test HEARTBEAT"
373*0a6a1f1dSLionel Sambuc$       mcr 'texe_dir''heartbeattest'
374*0a6a1f1dSLionel Sambuc$       return
375*0a6a1f1dSLionel Sambuc$ test_constant_time:
376*0a6a1f1dSLionel Sambuc$       write sys$output "Test constant time utilities"
377*0a6a1f1dSLionel Sambuc$       mcr 'texe_dir''consttimetest'
378*0a6a1f1dSLionel Sambuc$       return
379ebfedea0SLionel Sambuc$
380ebfedea0SLionel Sambuc$
381ebfedea0SLionel Sambuc$ exit:
382*0a6a1f1dSLionel Sambuc$	on error then goto exit2 ! In case openssl.exe didn't build.
383ebfedea0SLionel Sambuc$	mcr 'exe_dir'openssl version -a
384*0a6a1f1dSLionel Sambuc$ exit2:
385ebfedea0SLionel Sambuc$	set default '__save_default'
386ebfedea0SLionel Sambuc$	deassign sslroot
387ebfedea0SLionel Sambuc$	exit
388