aboutsummaryrefslogtreecommitdiffstats
path: root/test/tests.com
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests.com')
-rw-r--r--test/tests.com89
1 files changed, 34 insertions, 55 deletions
diff --git a/test/tests.com b/test/tests.com
index 4237b330ba9..040dafab8dc 100644
--- a/test/tests.com
+++ b/test/tests.com
@@ -23,7 +23,7 @@ $ tests := -
test_rmd,test_rc2,test_rc4,test_rc5,test_bf,test_cast,-
test_rand,test_bn,test_enc,test_x509,test_rsa,test_crl,test_sid,-
test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,-
- test_ss,test_ca,test_ssl
+ test_ss,test_ssl,test_ca
$ endif
$ tests = f$edit(tests,"COLLAPSE")
$
@@ -55,55 +55,54 @@ $ loop_tests:
$ tests_e = f$element(tests_i,",",tests)
$ tests_i = tests_i + 1
$ if tests_e .eqs. "," then goto exit
-$ gosub 'tests_e'
-$ goto loop_tests
+$ goto 'tests_e'
$
$ test_des:
$ mcr 'texe_dir''destest'
-$ return
+$ goto loop_tests
$ test_idea:
$ mcr 'texe_dir''ideatest'
-$ return
+$ goto loop_tests
$ test_sha:
$ mcr 'texe_dir''shatest'
$ mcr 'texe_dir''sha1test'
-$ return
+$ goto loop_tests
$ test_mdc2:
$ mcr 'texe_dir''mdc2test'
-$ return
+$ goto loop_tests
$ test_md5:
$ mcr 'texe_dir''md5test'
-$ return
+$ goto loop_tests
$ test_hmac:
$ mcr 'texe_dir''hmactest'
-$ return
+$ goto loop_tests
$ test_md2:
$ mcr 'texe_dir''md2test'
-$ return
+$ goto loop_tests
$ test_rmd:
$ mcr 'texe_dir''rmdtest'
-$ return
+$ goto loop_tests
$ test_bf:
$ mcr 'texe_dir''bftest'
-$ return
+$ goto loop_tests
$ test_cast:
$ mcr 'texe_dir''casttest'
-$ return
+$ goto loop_tests
$ test_rc2:
$ mcr 'texe_dir''rc2test'
-$ return
+$ goto loop_tests
$ test_rc4:
$ mcr 'texe_dir''rc4test'
-$ return
+$ goto loop_tests
$ test_rc5:
$ mcr 'texe_dir''rc5test'
-$ return
+$ goto loop_tests
$ test_rand:
$ mcr 'texe_dir''randtest'
-$ return
+$ goto loop_tests
$ test_enc:
$ @testenc.com
-$ return
+$ goto loop_tests
$ test_x509:
$ define sys$error nla0:
$ write sys$output "test normal x509v1 certificate"
@@ -113,35 +112,35 @@ $ @tx509.com v3-cert1.pem
$ write sys$output "test second x509v3 certificate"
$ @tx509.com v3-cert2.pem
$ deassign sys$error
-$ return
+$ goto loop_tests
$ test_rsa:
$ define sys$error nla0:
$ @trsa.com
$ deassign sys$error
$ mcr 'texe_dir''rsatest'
-$ return
+$ goto loop_tests
$ test_crl:
$ define sys$error nla0:
$ @tcrl.com
$ deassign sys$error
-$ return
+$ goto loop_tests
$ test_sid:
$ define sys$error nla0:
$ @tsid.com
$ deassign sys$error
-$ return
+$ goto loop_tests
$ test_req:
$ define sys$error nla0:
$ @treq.com
$ @treq.com testreq2.pem
$ deassign sys$error
-$ return
+$ goto loop_tests
$ test_pkcs7:
$ define sys$error nla0:
$ @tpkcs7.com
$ @tpkcs7d.com
$ deassign sys$error
-$ return
+$ goto loop_tests
$ test_bn:
$ write sys$output "starting big number library test, could take a while..."
$ create bntest-vms.fdl
@@ -165,56 +164,36 @@ $ write sys$output "-- through sh or bash to verify that the bignum operations w
$ write sys$output ""
$ write sys$output "test a^b%c implementations"
$ mcr 'texe_dir''exptest'
-$ return
+$ goto loop_tests
$ test_verify:
$ write sys$output "The following command should have some OK's and some failures"
$ write sys$output "There are definitly a few expired certificates"
$ @tverify.com
-$ return
+$ goto loop_tests
$ test_dh:
$ write sys$output "Generate a set of DH parameters"
$ mcr 'texe_dir''dhtest'
-$ return
+$ goto loop_tests
$ test_dsa:
$ write sys$output "Generate a set of DSA parameters"
$ mcr 'texe_dir''dsatest'
-$ return
+$ goto loop_tests
$ test_gen:
$ write sys$output "Generate and verify a certificate request"
$ @testgen.com
-$ return
-$ maybe_test_ss:
-$ testss_RDT = f$cvtime(f$file_attributes("testss.com","RDT"))
-$ if f$cvtime(f$file_attributes("keyU.ss","RDT")) .les. testss_RDT then -
- goto test_ss
-$ if f$cvtime(f$file_attributes("certU.ss","RDT")) .les. testss_RDT then -
- goto test_ss
-$ if f$cvtime(f$file_attributes("certCA.ss","RDT")) .les. testss_RDT then -
- goto test_ss
-$ return
+$ goto loop_tests
$ test_ss:
$ write sys$output "Generate and certify a test certificate"
$ @testss.com
-$ return
+$ goto loop_tests
$ test_ssl:
$ write sys$output "test SSL protocol"
-$ gosub maybe_test_ss
-$ @testssl.com keyU.ss certU.ss certCA.ss
-$ return
+$ @testssl.com
+$ goto loop_tests
$ test_ca:
-$ set noon
-$ define/user sys$output nla0:
-$ mcr 'exe_dir'openssl no-rsa
-$ save_severity=$SEVERITY
-$ set on
-$ if save_severity
-$ then
-$ write sys$output "skipping CA.com test -- requires RSA"
-$ else
-$ write sys$output "Generate and certify a test certificate via the 'ca' program"
-$ @testca.com
-$ endif
-$ return
+$ write sys$output "Generate and certify a test certificate via the 'ca' program"
+$ @testca.com
+$ goto loop_tests
$
$
$ exit: