1 $! TESTS.COM -- Performs the necessary tests
3 $! P1 tests to be performed. Empty means all.
5 $ __proc = f$element(0,";",f$environment("procedure"))
6 $ __here = f$parse(f$parse("A.;",__proc) - "A.;","[]A.;") - "A.;"
7 $ __save_default = f$environment("default")
9 $ if f$getsyi("cpu") .ge. 128 then __arch := AXP
10 $ texe_dir := sys$disk:[-.'__arch'.exe.test]
11 $ exe_dir := sys$disk:[-.'__arch'.exe.apps]
13 $ set default '__here'
14 $ on control_y then goto exit
15 $ on error then goto exit
22 test_des,test_idea,test_sha,test_md5,test_hmac,test_md2,test_mdc2,-
23 test_rc2,test_rc4,test_rc5,test_bf,test_cast,-
24 test_rand,test_bn,test_enc,test_x509,test_rsa,test_crl,test_sid,-
25 test_reqgen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,-
26 test_ss,test_ssl,test_ca
28 $ tests = f$edit(tests,"COLLAPSE")
32 $ IDEATEST := ideatest
34 $ SHA1TEST := sha1test
35 $ MDC2TEST := mdc2test
39 $ HMACTEST := hmactest
44 $ CASTTEST := casttest
46 $ RANDTEST := randtest
49 $ METHTEST := methtest
51 $ RSATEST := rsa_oaep_test
55 $ tests_e = f$element(tests_i,",",tests)
56 $ tests_i = tests_i + 1
57 $ if tests_e .eqs. "," then goto exit
61 $ mcr 'texe_dir''destest'
64 $ mcr 'texe_dir''ideatest'
67 $ mcr 'texe_dir''shatest'
68 $ mcr 'texe_dir''sha1test'
71 $ mcr 'texe_dir''mdc2test'
74 $ mcr 'texe_dir''md5test'
77 $ mcr 'texe_dir''hmactest'
80 $ mcr 'texe_dir''md2test'
83 $ mcr 'texe_dir''rmdtest'
86 $ mcr 'texe_dir''bftest'
89 $ mcr 'texe_dir''casttest'
92 $ mcr 'texe_dir''rc2test'
95 $ mcr 'texe_dir''rc4test'
98 $ mcr 'texe_dir''rc5test'
101 $ mcr 'texe_dir''randtest'
107 $ define sys$error nla0:
108 $ write sys$output "test normal x509v1 certificate"
110 $ write sys$output "test first x509v3 certificate"
111 $ @tx509.com v3-cert1.pem
112 $ write sys$output "test second x509v3 certificate"
113 $ @tx509.com v3-cert2.pem
117 $ define sys$error nla0:
120 $ mcr 'texe_dir''rsatest'
123 $ define sys$error nla0:
128 $ define sys$error nla0:
133 $ define sys$error nla0:
135 $ @treq.com testreq2.pem
139 $ define sys$error nla0:
145 $ write sys$output "starting big number library test, could take a while..."
146 $ create bntest-vms.fdl
148 ORGANIZATION sequential
151 $ create/fdl=bntest-vms.fdl bntest-vms.sh
152 $ open/append foo bntest-vms.sh
153 $ type/output=foo: sys$input:
154 << __FOO__ bc | awk '{ \
155 if ($$0 != "0") {print "error"; exit(1); } \
156 if (((NR+1)%64) == 0) print NR+1," tests done"; }'
157 $ define/user sys$output bntest-vms.tmp
158 $ mcr 'texe_dir''bntest'
159 $ copy bntest-vms.tmp foo:
160 $ delete bntest-vms.tmp;*
161 $ type/output=foo: sys$input:
164 $ write sys$output "-- copy the [.test]bntest-vms.sh file to a Unix system and run it"
165 $ write sys$output "-- through sh or bash to verify that the bignum operations went well."
166 $ write sys$output ""
167 $ write sys$output "test a^b%c implementations"
168 $ mcr 'texe_dir''exptest'
171 $ write sys$output "The following command should have some OK's and some failures"
172 $ write sys$output "There are definitly a few expired certificates"
176 $ write sys$output "Generate as set of DH parameters"
177 $ mcr 'texe_dir''dhtest'
180 $ write sys$output "Generate as set of DSA parameters"
181 $ mcr 'texe_dir''dsatest'
184 $ write sys$output "Generate and verify a certificate request"
188 $ write sys$output "Generate and certify a test certificate"
192 $ write sys$output "test SSL protocol"
196 $ write sys$output "Generate and certify a test certificate via the 'ca' program"
202 $ set default '__save_default'