]> git.ipfire.org Git - thirdparty/openssl.git/blame - ms/test.bat
As x86ms.pl is out, remove do_masm.bat and mention to it in INSTALL.W32.
[thirdparty/openssl.git] / ms / test.bat
CommitLineData
0acc90e5 1@echo off\r
dfeab068 2\r
d4d2f98c 3set test=..\ms\r
dfeab068 4set opath=%PATH%\r
d4d2f98c
DSH
5PATH=..\ms;%PATH%\r
6set OPENSSL_CONF=..\apps\openssl.cnf\r
dfeab068
RE
7\r
8rem run this from inside the bin directory\r
9\r
721b5b2a
UM
10echo rsa_test\r
11rsa_test\r
35f7324c
DSH
12if errorlevel 1 goto done\r
13\r
dfeab068
RE
14echo destest\r
15destest\r
16if errorlevel 1 goto done\r
17\r
18echo ideatest\r
19ideatest\r
20if errorlevel 1 goto done\r
21\r
22echo bftest\r
23bftest\r
24if errorlevel 1 goto done\r
25\r
26echo shatest\r
27shatest\r
28if errorlevel 1 goto done\r
29\r
30echo sha1test\r
31sha1test\r
32if errorlevel 1 goto done\r
33\r
34echo md5test\r
35md5test\r
36if errorlevel 1 goto done\r
37\r
38echo md2test\r
39md2test\r
40if errorlevel 1 goto done\r
41\r
dfeab068
RE
42echo rc2test\r
43rc2test\r
44if errorlevel 1 goto done\r
45\r
46echo rc4test\r
47rc4test\r
48if errorlevel 1 goto done\r
49\r
50echo randtest\r
51randtest\r
52if errorlevel 1 goto done\r
53\r
54echo dhtest\r
55dhtest\r
56if errorlevel 1 goto done\r
57\r
58echo exptest\r
59exptest\r
60if errorlevel 1 goto done\r
61\r
62echo dsatest\r
63dsatest\r
64if errorlevel 1 goto done\r
65\r
c8252b71
UM
66echo ectest\r
67ectest\r
68if errorlevel 1 goto done\r
69\r
dfeab068 70echo testenc\r
d4d2f98c 71call %test%\testenc openssl\r
dfeab068
RE
72if errorlevel 1 goto done\r
73\r
74echo testpem\r
d4d2f98c 75call %test%\testpem openssl\r
dfeab068
RE
76if errorlevel 1 goto done\r
77\r
78echo verify\r
79copy ..\certs\*.pem cert.tmp >nul\r
d4d2f98c 80openssl verify -CAfile cert.tmp ..\certs\*.pem\r
dfeab068
RE
81\r
82echo testss\r
d4d2f98c 83call %test%\testss openssl\r
dfeab068
RE
84if errorlevel 1 goto done\r
85\r
09ef94d2
AP
86set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss\r
87\r
dfeab068
RE
88echo test sslv2\r
89ssltest -ssl2\r
90if errorlevel 1 goto done\r
91\r
92echo test sslv2 with server authentication\r
09ef94d2 93%SSL_TEST% -ssl2 -server_auth\r
dfeab068
RE
94if errorlevel 1 goto done\r
95\r
95d29597 96echo test sslv2 with client authentication\r
09ef94d2 97%SSL_TEST% -ssl2 -client_auth\r
dfeab068
RE
98if errorlevel 1 goto done\r
99\r
100echo test sslv2 with both client and server authentication\r
09ef94d2 101%SSL_TEST% -ssl2 -server_auth -client_auth\r
dfeab068
RE
102if errorlevel 1 goto done\r
103\r
104echo test sslv3\r
105ssltest -ssl3\r
106if errorlevel 1 goto done\r
107\r
108echo test sslv3 with server authentication\r
09ef94d2 109%SSL_TEST% -ssl3 -server_auth\r
dfeab068
RE
110if errorlevel 1 goto done\r
111\r
95d29597 112echo test sslv3 with client authentication\r
09ef94d2 113%SSL_TEST% -ssl3 -client_auth\r
dfeab068
RE
114if errorlevel 1 goto done\r
115\r
116echo test sslv3 with both client and server authentication\r
09ef94d2 117%SSL_TEST% -ssl3 -server_auth -client_auth\r
dfeab068
RE
118if errorlevel 1 goto done\r
119\r
120echo test sslv2/sslv3\r
121ssltest\r
122if errorlevel 1 goto done\r
123\r
124echo test sslv2/sslv3 with server authentication\r
09ef94d2 125%SSL_TEST% -server_auth\r
dfeab068
RE
126if errorlevel 1 goto done\r
127\r
95d29597 128echo test sslv2/sslv3 with client authentication\r
09ef94d2 129%SSL_TEST% -client_auth\r
dfeab068
RE
130if errorlevel 1 goto done\r
131\r
132echo test sslv2/sslv3 with both client and server authentication\r
09ef94d2 133%SSL_TEST% -server_auth -client_auth\r
dfeab068
RE
134if errorlevel 1 goto done\r
135\r
95d29597
BM
136echo test sslv2 via BIO pair\r
137ssltest -bio_pair -ssl2\r
138if errorlevel 1 goto done\r
139\r
a87030a1 140echo test sslv2/sslv3 with 1024 bit DHE via BIO pair\r
e4589582 141ssltest -bio_pair -dhe1024dsa -v\r
a87030a1
BM
142if errorlevel 1 goto done\r
143\r
95d29597 144echo test sslv2 with server authentication via BIO pair\r
09ef94d2 145%SSL_TEST% -bio_pair -ssl2 -server_auth\r
95d29597
BM
146if errorlevel 1 goto done\r
147\r
148echo test sslv2 with client authentication via BIO pair\r
09ef94d2 149%SSL_TEST% -bio_pair -ssl2 -client_auth\r
95d29597
BM
150if errorlevel 1 goto done\r
151\r
152echo test sslv2 with both client and server authentication via BIO pair\r
09ef94d2 153%SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth\r
95d29597
BM
154if errorlevel 1 goto done\r
155\r
156echo test sslv3 via BIO pair\r
157ssltest -bio_pair -ssl3\r
158if errorlevel 1 goto done\r
159\r
160echo test sslv3 with server authentication via BIO pair\r
09ef94d2 161%SSL_TEST% -bio_pair -ssl3 -server_auth\r
95d29597
BM
162if errorlevel 1 goto done\r
163\r
164echo test sslv3 with client authentication via BIO pair\r
09ef94d2 165%SSL_TEST% -bio_pair -ssl3 -client_auth\r
95d29597
BM
166if errorlevel 1 goto done\r
167\r
168echo test sslv3 with both client and server authentication via BIO pair\r
09ef94d2 169%SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth\r
95d29597
BM
170if errorlevel 1 goto done\r
171\r
172echo test sslv2/sslv3 via BIO pair\r
09ef94d2 173ssltest -bio_pair\r
95d29597
BM
174if errorlevel 1 goto done\r
175\r
176echo test sslv2/sslv3 with server authentication\r
09ef94d2 177%SSL_TEST% -bio_pair -server_auth\r
95d29597
BM
178if errorlevel 1 goto done\r
179\r
180echo test sslv2/sslv3 with client authentication via BIO pair\r
09ef94d2 181%SSL_TEST% -bio_pair -client_auth\r
95d29597
BM
182if errorlevel 1 goto done\r
183\r
184echo test sslv2/sslv3 with both client and server authentication via BIO pair\r
09ef94d2 185%SSL_TEST% -bio_pair -server_auth -client_auth\r
95d29597 186if errorlevel 1 goto done\r
dfeab068
RE
187\r
188del cert.tmp\r
189\r
190echo passed all tests\r
191goto end\r
192:done\r
193echo problems.....\r
194:end\r
195PATH=%opath%\r