]> git.ipfire.org Git - thirdparty/openssl.git/blame - ms/test.bat
Fix Win32 test-suit.
[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
42echo mdc2test\r
43mdc2test\r
44if errorlevel 1 goto done\r
45\r
46echo rc2test\r
47rc2test\r
48if errorlevel 1 goto done\r
49\r
50echo rc4test\r
51rc4test\r
52if errorlevel 1 goto done\r
53\r
54echo randtest\r
55randtest\r
56if errorlevel 1 goto done\r
57\r
58echo dhtest\r
59dhtest\r
60if errorlevel 1 goto done\r
61\r
62echo exptest\r
63exptest\r
64if errorlevel 1 goto done\r
65\r
66echo dsatest\r
67dsatest\r
68if errorlevel 1 goto done\r
69\r
c8252b71
UM
70echo ectest\r
71ectest\r
72if errorlevel 1 goto done\r
73\r
dfeab068 74echo testenc\r
d4d2f98c 75call %test%\testenc openssl\r
dfeab068
RE
76if errorlevel 1 goto done\r
77\r
78echo testpem\r
d4d2f98c 79call %test%\testpem openssl\r
dfeab068
RE
80if errorlevel 1 goto done\r
81\r
82echo verify\r
83copy ..\certs\*.pem cert.tmp >nul\r
d4d2f98c 84openssl verify -CAfile cert.tmp ..\certs\*.pem\r
dfeab068
RE
85\r
86echo testss\r
d4d2f98c 87call %test%\testss openssl\r
dfeab068
RE
88if errorlevel 1 goto done\r
89\r
09ef94d2
AP
90set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss\r
91\r
dfeab068
RE
92echo test sslv2\r
93ssltest -ssl2\r
94if errorlevel 1 goto done\r
95\r
96echo test sslv2 with server authentication\r
09ef94d2 97%SSL_TEST% -ssl2 -server_auth\r
dfeab068
RE
98if errorlevel 1 goto done\r
99\r
95d29597 100echo test sslv2 with client authentication\r
09ef94d2 101%SSL_TEST% -ssl2 -client_auth\r
dfeab068
RE
102if errorlevel 1 goto done\r
103\r
104echo test sslv2 with both client and server authentication\r
09ef94d2 105%SSL_TEST% -ssl2 -server_auth -client_auth\r
dfeab068
RE
106if errorlevel 1 goto done\r
107\r
108echo test sslv3\r
109ssltest -ssl3\r
110if errorlevel 1 goto done\r
111\r
112echo test sslv3 with server authentication\r
09ef94d2 113%SSL_TEST% -ssl3 -server_auth\r
dfeab068
RE
114if errorlevel 1 goto done\r
115\r
95d29597 116echo test sslv3 with client authentication\r
09ef94d2 117%SSL_TEST% -ssl3 -client_auth\r
dfeab068
RE
118if errorlevel 1 goto done\r
119\r
120echo test sslv3 with both client and server authentication\r
09ef94d2 121%SSL_TEST% -ssl3 -server_auth -client_auth\r
dfeab068
RE
122if errorlevel 1 goto done\r
123\r
124echo test sslv2/sslv3\r
125ssltest\r
126if errorlevel 1 goto done\r
127\r
128echo test sslv2/sslv3 with server authentication\r
09ef94d2 129%SSL_TEST% -server_auth\r
dfeab068
RE
130if errorlevel 1 goto done\r
131\r
95d29597 132echo test sslv2/sslv3 with client authentication\r
09ef94d2 133%SSL_TEST% -client_auth\r
dfeab068
RE
134if errorlevel 1 goto done\r
135\r
136echo test sslv2/sslv3 with both client and server authentication\r
09ef94d2 137%SSL_TEST% -server_auth -client_auth\r
dfeab068
RE
138if errorlevel 1 goto done\r
139\r
95d29597
BM
140echo test sslv2 via BIO pair\r
141ssltest -bio_pair -ssl2\r
142if errorlevel 1 goto done\r
143\r
a87030a1 144echo test sslv2/sslv3 with 1024 bit DHE via BIO pair\r
e4589582 145ssltest -bio_pair -dhe1024dsa -v\r
a87030a1
BM
146if errorlevel 1 goto done\r
147\r
95d29597 148echo test sslv2 with server authentication via BIO pair\r
09ef94d2 149%SSL_TEST% -bio_pair -ssl2 -server_auth\r
95d29597
BM
150if errorlevel 1 goto done\r
151\r
152echo test sslv2 with client authentication via BIO pair\r
09ef94d2 153%SSL_TEST% -bio_pair -ssl2 -client_auth\r
95d29597
BM
154if errorlevel 1 goto done\r
155\r
156echo test sslv2 with both client and server authentication via BIO pair\r
09ef94d2 157%SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth\r
95d29597
BM
158if errorlevel 1 goto done\r
159\r
160echo test sslv3 via BIO pair\r
161ssltest -bio_pair -ssl3\r
162if errorlevel 1 goto done\r
163\r
164echo test sslv3 with server authentication via BIO pair\r
09ef94d2 165%SSL_TEST% -bio_pair -ssl3 -server_auth\r
95d29597
BM
166if errorlevel 1 goto done\r
167\r
168echo test sslv3 with client authentication via BIO pair\r
09ef94d2 169%SSL_TEST% -bio_pair -ssl3 -client_auth\r
95d29597
BM
170if errorlevel 1 goto done\r
171\r
172echo test sslv3 with both client and server authentication via BIO pair\r
09ef94d2 173%SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth\r
95d29597
BM
174if errorlevel 1 goto done\r
175\r
176echo test sslv2/sslv3 via BIO pair\r
09ef94d2 177ssltest -bio_pair\r
95d29597
BM
178if errorlevel 1 goto done\r
179\r
180echo test sslv2/sslv3 with server authentication\r
09ef94d2 181%SSL_TEST% -bio_pair -server_auth\r
95d29597
BM
182if errorlevel 1 goto done\r
183\r
184echo test sslv2/sslv3 with client authentication via BIO pair\r
09ef94d2 185%SSL_TEST% -bio_pair -client_auth\r
95d29597
BM
186if errorlevel 1 goto done\r
187\r
188echo test sslv2/sslv3 with both client and server authentication via BIO pair\r
09ef94d2 189%SSL_TEST% -bio_pair -server_auth -client_auth\r
95d29597 190if errorlevel 1 goto done\r
dfeab068
RE
191\r
192del cert.tmp\r
193\r
194echo passed all tests\r
195goto end\r
196:done\r
197echo problems.....\r
198:end\r
199PATH=%opath%\r