xref: /minix3/crypto/external/bsd/openssl/dist/ms/test.bat (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc@echo off
2*ebfedea0SLionel Sambuc
3*ebfedea0SLionel Sambucset test=..\ms
4*ebfedea0SLionel Sambucset opath=%PATH%
5*ebfedea0SLionel SambucPATH=..\ms;%PATH%
6*ebfedea0SLionel Sambucset OPENSSL_CONF=..\apps\openssl.cnf
7*ebfedea0SLionel Sambuc
8*ebfedea0SLionel Sambucrem run this from inside the bin directory
9*ebfedea0SLionel Sambuc
10*ebfedea0SLionel Sambucecho rsa_test
11*ebfedea0SLionel Sambucrsa_test
12*ebfedea0SLionel Sambucif errorlevel 1 goto done
13*ebfedea0SLionel Sambuc
14*ebfedea0SLionel Sambucecho destest
15*ebfedea0SLionel Sambucdestest
16*ebfedea0SLionel Sambucif errorlevel 1 goto done
17*ebfedea0SLionel Sambuc
18*ebfedea0SLionel Sambucecho ideatest
19*ebfedea0SLionel Sambucideatest
20*ebfedea0SLionel Sambucif errorlevel 1 goto done
21*ebfedea0SLionel Sambuc
22*ebfedea0SLionel Sambucecho bftest
23*ebfedea0SLionel Sambucbftest
24*ebfedea0SLionel Sambucif errorlevel 1 goto done
25*ebfedea0SLionel Sambuc
26*ebfedea0SLionel Sambucecho shatest
27*ebfedea0SLionel Sambucshatest
28*ebfedea0SLionel Sambucif errorlevel 1 goto done
29*ebfedea0SLionel Sambuc
30*ebfedea0SLionel Sambucecho sha1test
31*ebfedea0SLionel Sambucsha1test
32*ebfedea0SLionel Sambucif errorlevel 1 goto done
33*ebfedea0SLionel Sambuc
34*ebfedea0SLionel Sambucecho md5test
35*ebfedea0SLionel Sambucmd5test
36*ebfedea0SLionel Sambucif errorlevel 1 goto done
37*ebfedea0SLionel Sambuc
38*ebfedea0SLionel Sambucecho rc2test
39*ebfedea0SLionel Sambucrc2test
40*ebfedea0SLionel Sambucif errorlevel 1 goto done
41*ebfedea0SLionel Sambuc
42*ebfedea0SLionel Sambucecho rc4test
43*ebfedea0SLionel Sambucrc4test
44*ebfedea0SLionel Sambucif errorlevel 1 goto done
45*ebfedea0SLionel Sambuc
46*ebfedea0SLionel Sambucecho randtest
47*ebfedea0SLionel Sambucrandtest
48*ebfedea0SLionel Sambucif errorlevel 1 goto done
49*ebfedea0SLionel Sambuc
50*ebfedea0SLionel Sambucecho dhtest
51*ebfedea0SLionel Sambucdhtest
52*ebfedea0SLionel Sambucif errorlevel 1 goto done
53*ebfedea0SLionel Sambuc
54*ebfedea0SLionel Sambucecho exptest
55*ebfedea0SLionel Sambucexptest
56*ebfedea0SLionel Sambucif errorlevel 1 goto done
57*ebfedea0SLionel Sambuc
58*ebfedea0SLionel Sambucecho dsatest
59*ebfedea0SLionel Sambucdsatest
60*ebfedea0SLionel Sambucif errorlevel 1 goto done
61*ebfedea0SLionel Sambuc
62*ebfedea0SLionel Sambucecho ectest
63*ebfedea0SLionel Sambucectest
64*ebfedea0SLionel Sambucif errorlevel 1 goto done
65*ebfedea0SLionel Sambuc
66*ebfedea0SLionel Sambucecho testenc
67*ebfedea0SLionel Sambuccall %test%\testenc openssl
68*ebfedea0SLionel Sambucif errorlevel 1 goto done
69*ebfedea0SLionel Sambuc
70*ebfedea0SLionel Sambucecho testpem
71*ebfedea0SLionel Sambuccall %test%\testpem openssl
72*ebfedea0SLionel Sambucif errorlevel 1 goto done
73*ebfedea0SLionel Sambuc
74*ebfedea0SLionel Sambucecho testss
75*ebfedea0SLionel Sambuccall %test%\testss openssl
76*ebfedea0SLionel Sambucif errorlevel 1 goto done
77*ebfedea0SLionel Sambuc
78*ebfedea0SLionel Sambucset SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss
79*ebfedea0SLionel Sambuc
80*ebfedea0SLionel Sambucecho test sslv2
81*ebfedea0SLionel Sambucssltest -ssl2
82*ebfedea0SLionel Sambucif errorlevel 1 goto done
83*ebfedea0SLionel Sambuc
84*ebfedea0SLionel Sambucecho test sslv2 with server authentication
85*ebfedea0SLionel Sambuc%SSL_TEST% -ssl2 -server_auth
86*ebfedea0SLionel Sambucif errorlevel 1 goto done
87*ebfedea0SLionel Sambuc
88*ebfedea0SLionel Sambucecho test sslv2 with client authentication
89*ebfedea0SLionel Sambuc%SSL_TEST% -ssl2 -client_auth
90*ebfedea0SLionel Sambucif errorlevel 1 goto done
91*ebfedea0SLionel Sambuc
92*ebfedea0SLionel Sambucecho test sslv2 with both client and server authentication
93*ebfedea0SLionel Sambuc%SSL_TEST% -ssl2 -server_auth -client_auth
94*ebfedea0SLionel Sambucif errorlevel 1 goto done
95*ebfedea0SLionel Sambuc
96*ebfedea0SLionel Sambucecho test sslv3
97*ebfedea0SLionel Sambucssltest -ssl3
98*ebfedea0SLionel Sambucif errorlevel 1 goto done
99*ebfedea0SLionel Sambuc
100*ebfedea0SLionel Sambucecho test sslv3 with server authentication
101*ebfedea0SLionel Sambuc%SSL_TEST% -ssl3 -server_auth
102*ebfedea0SLionel Sambucif errorlevel 1 goto done
103*ebfedea0SLionel Sambuc
104*ebfedea0SLionel Sambucecho test sslv3 with client authentication
105*ebfedea0SLionel Sambuc%SSL_TEST% -ssl3 -client_auth
106*ebfedea0SLionel Sambucif errorlevel 1 goto done
107*ebfedea0SLionel Sambuc
108*ebfedea0SLionel Sambucecho test sslv3 with both client and server authentication
109*ebfedea0SLionel Sambuc%SSL_TEST% -ssl3 -server_auth -client_auth
110*ebfedea0SLionel Sambucif errorlevel 1 goto done
111*ebfedea0SLionel Sambuc
112*ebfedea0SLionel Sambucecho test sslv2/sslv3
113*ebfedea0SLionel Sambucssltest
114*ebfedea0SLionel Sambucif errorlevel 1 goto done
115*ebfedea0SLionel Sambuc
116*ebfedea0SLionel Sambucecho test sslv2/sslv3 with server authentication
117*ebfedea0SLionel Sambuc%SSL_TEST% -server_auth
118*ebfedea0SLionel Sambucif errorlevel 1 goto done
119*ebfedea0SLionel Sambuc
120*ebfedea0SLionel Sambucecho test sslv2/sslv3 with client authentication
121*ebfedea0SLionel Sambuc%SSL_TEST% -client_auth
122*ebfedea0SLionel Sambucif errorlevel 1 goto done
123*ebfedea0SLionel Sambuc
124*ebfedea0SLionel Sambucecho test sslv2/sslv3 with both client and server authentication
125*ebfedea0SLionel Sambuc%SSL_TEST% -server_auth -client_auth
126*ebfedea0SLionel Sambucif errorlevel 1 goto done
127*ebfedea0SLionel Sambuc
128*ebfedea0SLionel Sambucecho test sslv2 via BIO pair
129*ebfedea0SLionel Sambucssltest -bio_pair -ssl2
130*ebfedea0SLionel Sambucif errorlevel 1 goto done
131*ebfedea0SLionel Sambuc
132*ebfedea0SLionel Sambucecho test sslv2/sslv3 with 1024 bit DHE via BIO pair
133*ebfedea0SLionel Sambucssltest -bio_pair -dhe1024dsa -v
134*ebfedea0SLionel Sambucif errorlevel 1 goto done
135*ebfedea0SLionel Sambuc
136*ebfedea0SLionel Sambucecho test sslv2 with server authentication via BIO pair
137*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -ssl2 -server_auth
138*ebfedea0SLionel Sambucif errorlevel 1 goto done
139*ebfedea0SLionel Sambuc
140*ebfedea0SLionel Sambucecho test sslv2 with client authentication via BIO pair
141*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -ssl2 -client_auth
142*ebfedea0SLionel Sambucif errorlevel 1 goto done
143*ebfedea0SLionel Sambuc
144*ebfedea0SLionel Sambucecho test sslv2 with both client and server authentication via BIO pair
145*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth
146*ebfedea0SLionel Sambucif errorlevel 1 goto done
147*ebfedea0SLionel Sambuc
148*ebfedea0SLionel Sambucecho test sslv3 via BIO pair
149*ebfedea0SLionel Sambucssltest -bio_pair -ssl3
150*ebfedea0SLionel Sambucif errorlevel 1 goto done
151*ebfedea0SLionel Sambuc
152*ebfedea0SLionel Sambucecho test sslv3 with server authentication via BIO pair
153*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -ssl3 -server_auth
154*ebfedea0SLionel Sambucif errorlevel 1 goto done
155*ebfedea0SLionel Sambuc
156*ebfedea0SLionel Sambucecho test sslv3 with client authentication  via BIO pair
157*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -ssl3 -client_auth
158*ebfedea0SLionel Sambucif errorlevel 1 goto done
159*ebfedea0SLionel Sambuc
160*ebfedea0SLionel Sambucecho test sslv3 with both client and server authentication via BIO pair
161*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth
162*ebfedea0SLionel Sambucif errorlevel 1 goto done
163*ebfedea0SLionel Sambuc
164*ebfedea0SLionel Sambucecho test sslv2/sslv3 via BIO pair
165*ebfedea0SLionel Sambucssltest -bio_pair
166*ebfedea0SLionel Sambucif errorlevel 1 goto done
167*ebfedea0SLionel Sambuc
168*ebfedea0SLionel Sambucecho test sslv2/sslv3 with server authentication
169*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -server_auth
170*ebfedea0SLionel Sambucif errorlevel 1 goto done
171*ebfedea0SLionel Sambuc
172*ebfedea0SLionel Sambucecho test sslv2/sslv3 with client authentication via BIO pair
173*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -client_auth
174*ebfedea0SLionel Sambucif errorlevel 1 goto done
175*ebfedea0SLionel Sambuc
176*ebfedea0SLionel Sambucecho test sslv2/sslv3 with both client and server authentication via BIO pair
177*ebfedea0SLionel Sambuc%SSL_TEST% -bio_pair -server_auth -client_auth
178*ebfedea0SLionel Sambucif errorlevel 1 goto done
179*ebfedea0SLionel Sambuc
180*ebfedea0SLionel Sambucecho passed all tests
181*ebfedea0SLionel Sambucgoto end
182*ebfedea0SLionel Sambuc:done
183*ebfedea0SLionel Sambucecho problems.....
184*ebfedea0SLionel Sambuc:end
185*ebfedea0SLionel SambucPATH=%opath%
186