diff options
author | beck <> | 2002-05-15 02:29:21 +0000 |
---|---|---|
committer | beck <> | 2002-05-15 02:29:21 +0000 |
commit | b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9 (patch) | |
tree | fa27cf82a1250b64ed3bf5f4a18c7354d470bbcc /src/lib/libssl/test/tests.com | |
parent | e471e1ea98d673597b182ea85f29e30c97cd08b5 (diff) | |
download | openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.gz openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.bz2 openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.zip |
OpenSSL 0.9.7 stable 2002 05 08 merge
Diffstat (limited to 'src/lib/libssl/test/tests.com')
-rw-r--r-- | src/lib/libssl/test/tests.com | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/src/lib/libssl/test/tests.com b/src/lib/libssl/test/tests.com index df8f46e75d..07a3c7f16d 100644 --- a/src/lib/libssl/test/tests.com +++ b/src/lib/libssl/test/tests.com | |||
@@ -21,14 +21,15 @@ $ else | |||
21 | $ tests := - | 21 | $ tests := - |
22 | test_des,test_idea,test_sha,test_md4,test_md5,test_hmac,- | 22 | test_des,test_idea,test_sha,test_md4,test_md5,test_hmac,- |
23 | test_md2,test_mdc2,- | 23 | test_md2,test_mdc2,- |
24 | test_rmd,test_rc2,test_rc4,test_rc5,test_bf,test_cast,- | 24 | test_rmd,test_rc2,test_rc4,test_rc5,test_bf,test_cast,test_rd,- |
25 | test_rand,test_bn,test_enc,test_x509,test_rsa,test_crl,test_sid,- | 25 | test_rand,test_bn,test_ec,test_enc,test_x509,test_rsa,test_crl,test_sid,- |
26 | test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,- | 26 | test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,- |
27 | test_ss,test_ca,test_ssl | 27 | test_ss,test_ca,test_engine,test_ssl,test_evp |
28 | $ endif | 28 | $ endif |
29 | $ tests = f$edit(tests,"COLLAPSE") | 29 | $ tests = f$edit(tests,"COLLAPSE") |
30 | $ | 30 | $ |
31 | $ BNTEST := bntest | 31 | $ BNTEST := bntest |
32 | $ ECTEST := ectest | ||
32 | $ EXPTEST := exptest | 33 | $ EXPTEST := exptest |
33 | $ IDEATEST := ideatest | 34 | $ IDEATEST := ideatest |
34 | $ SHATEST := shatest | 35 | $ SHATEST := shatest |
@@ -51,6 +52,8 @@ $ DSATEST := dsatest | |||
51 | $ METHTEST := methtest | 52 | $ METHTEST := methtest |
52 | $ SSLTEST := ssltest | 53 | $ SSLTEST := ssltest |
53 | $ RSATEST := rsa_test | 54 | $ RSATEST := rsa_test |
55 | $ ENGINETEST := enginetest | ||
56 | $ EVPTEST := evp_test | ||
54 | $ | 57 | $ |
55 | $ tests_i = 0 | 58 | $ tests_i = 0 |
56 | $ loop_tests: | 59 | $ loop_tests: |
@@ -60,6 +63,9 @@ $ if tests_e .eqs. "," then goto exit | |||
60 | $ gosub 'tests_e' | 63 | $ gosub 'tests_e' |
61 | $ goto loop_tests | 64 | $ goto loop_tests |
62 | $ | 65 | $ |
66 | $ test_evp: | ||
67 | $ mcr 'texe_dir''evptest' evptests.txt | ||
68 | $ return | ||
63 | $ test_des: | 69 | $ test_des: |
64 | $ mcr 'texe_dir''destest' | 70 | $ mcr 'texe_dir''destest' |
65 | $ return | 71 | $ return |
@@ -157,7 +163,7 @@ RECORD | |||
157 | $ create/fdl=bntest-vms.fdl bntest-vms.sh | 163 | $ create/fdl=bntest-vms.fdl bntest-vms.sh |
158 | $ open/append foo bntest-vms.sh | 164 | $ open/append foo bntest-vms.sh |
159 | $ type/output=foo: sys$input: | 165 | $ type/output=foo: sys$input: |
160 | << __FOO__ bc | perl -e 'while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $1";} elsif (!/^0$/) {die "\nFailed! bc: $_";} print STDERR "."; $i++;} print STDERR "\n$i tests passed\n"' | 166 | << __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"' |
161 | $ define/user sys$output bntest-vms.tmp | 167 | $ define/user sys$output bntest-vms.tmp |
162 | $ mcr 'texe_dir''bntest' | 168 | $ mcr 'texe_dir''bntest' |
163 | $ copy bntest-vms.tmp foo: | 169 | $ copy bntest-vms.tmp foo: |
@@ -165,12 +171,17 @@ $ delete bntest-vms.tmp;* | |||
165 | $ type/output=foo: sys$input: | 171 | $ type/output=foo: sys$input: |
166 | __FOO__ | 172 | __FOO__ |
167 | $ close foo | 173 | $ close foo |
168 | $ write sys$output "-- copy the [.test]bntest-vms.sh file to a Unix system and run it" | 174 | $ write sys$output "-- copy the [.test]bntest-vms.sh and [.test]bctest files to a Unix system and" |
169 | $ write sys$output "-- through sh or bash to verify that the bignum operations went well." | 175 | $ write sys$output "-- run bntest-vms.sh through sh or bash to verify that the bignum operations" |
176 | $ write sys$output "-- went well." | ||
170 | $ write sys$output "" | 177 | $ write sys$output "" |
171 | $ write sys$output "test a^b%c implementations" | 178 | $ write sys$output "test a^b%c implementations" |
172 | $ mcr 'texe_dir''exptest' | 179 | $ mcr 'texe_dir''exptest' |
173 | $ return | 180 | $ return |
181 | $ test_ec: | ||
182 | $ write sys$output "test elliptic curves" | ||
183 | $ mcr 'texe_dir''ectest' | ||
184 | $ return | ||
174 | $ test_verify: | 185 | $ test_verify: |
175 | $ write sys$output "The following command should have some OK's and some failures" | 186 | $ write sys$output "The following command should have some OK's and some failures" |
176 | $ write sys$output "There are definitly a few expired certificates" | 187 | $ write sys$output "There are definitly a few expired certificates" |
@@ -201,6 +212,10 @@ $ test_ss: | |||
201 | $ write sys$output "Generate and certify a test certificate" | 212 | $ write sys$output "Generate and certify a test certificate" |
202 | $ @testss.com | 213 | $ @testss.com |
203 | $ return | 214 | $ return |
215 | $ test_engine: | ||
216 | $ write sys$output "Manipulate the ENGINE structures" | ||
217 | $ mcr 'texe_dir''enginetest' | ||
218 | $ return | ||
204 | $ test_ssl: | 219 | $ test_ssl: |
205 | $ write sys$output "test SSL protocol" | 220 | $ write sys$output "test SSL protocol" |
206 | $ gosub maybe_test_ss | 221 | $ gosub maybe_test_ss |
@@ -220,6 +235,10 @@ $ write sys$output "Generate and certify a test certificate via the 'ca' pro | |||
220 | $ @testca.com | 235 | $ @testca.com |
221 | $ endif | 236 | $ endif |
222 | $ return | 237 | $ return |
238 | $ test_rd: | ||
239 | $ write sys$output "test Rijndael" | ||
240 | $ !mcr 'texe_dir''rdtest' | ||
241 | $ return | ||
223 | $ | 242 | $ |
224 | $ | 243 | $ |
225 | $ exit: | 244 | $ exit: |