]>
Commit | Line | Data |
---|---|---|
d90a6beb | 1 | IF[{- !$disabled{tests} -}] |
7218ae51 | 2 | PROGRAMS_NO_INST=\ |
d90a6beb | 3 | aborttest \ |
cc75cbc4 | 4 | sanitytest bntest \ |
d90a6beb MC |
5 | ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \ |
6 | md2test md4test md5test \ | |
7 | hmactest wp_test \ | |
8 | rc2test rc4test rc5test \ | |
9 | destest sha1test sha256t sha512t \ | |
10 | mdc2test rmdtest \ | |
11 | randtest dhtest enginetest casttest \ | |
12 | bftest ssltest_old dsatest exptest rsa_test \ | |
e417070c | 13 | evp_test evp_extra_test igetest v3nametest v3ext \ |
16938284 | 14 | danetest heartbeat_test p5_crpt2_test bad_dtls_test \ |
d90a6beb MC |
15 | constant_time_test verify_extra_test clienthellotest \ |
16 | packettest asynctest secmemtest srptest memleaktest \ | |
17 | dtlsv1listentest ct_test threadstest afalgtest d2i_test \ | |
f8f686ec | 18 | ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \ |
e6ed2b91 | 19 | bioprinttest sslapitest dtlstest bio_enc_test |
d90a6beb MC |
20 | |
21 | SOURCE[aborttest]=aborttest.c | |
0483f586 | 22 | INCLUDE[aborttest]=../include |
d90a6beb MC |
23 | DEPEND[aborttest]=../libcrypto |
24 | ||
cc75cbc4 RS |
25 | SOURCE[sanitytest]=sanitytest.c |
26 | INCLUDE[sanitytest]=../include | |
27 | DEPEND[sanitytest]=../libcrypto | |
d90a6beb MC |
28 | |
29 | SOURCE[bntest]=bntest.c | |
0483f586 | 30 | INCLUDE[bntest]=.. ../crypto/include ../include |
d90a6beb MC |
31 | DEPEND[bntest]=../libcrypto |
32 | ||
33 | SOURCE[ectest]=ectest.c | |
0483f586 | 34 | INCLUDE[ectest]=../include |
d90a6beb MC |
35 | DEPEND[ectest]=../libcrypto |
36 | ||
37 | SOURCE[ecdsatest]=ecdsatest.c | |
0483f586 | 38 | INCLUDE[ecdsatest]=../include |
d90a6beb MC |
39 | DEPEND[ecdsatest]=../libcrypto |
40 | ||
41 | SOURCE[ecdhtest]=ecdhtest.c | |
0483f586 | 42 | INCLUDE[ecdhtest]=../include |
d90a6beb MC |
43 | DEPEND[ecdhtest]=../libcrypto |
44 | ||
45 | SOURCE[gmdifftest]=gmdifftest.c | |
0483f586 | 46 | INCLUDE[gmdifftest]=../include |
d90a6beb MC |
47 | DEPEND[gmdifftest]=../libcrypto |
48 | ||
49 | SOURCE[pbelutest]=pbelutest.c | |
0483f586 | 50 | INCLUDE[pbelutest]=../include |
d90a6beb MC |
51 | DEPEND[pbelutest]=../libcrypto |
52 | ||
53 | SOURCE[ideatest]=ideatest.c | |
0483f586 | 54 | INCLUDE[ideatest]=../include |
d90a6beb MC |
55 | DEPEND[ideatest]=../libcrypto |
56 | ||
57 | SOURCE[md2test]=md2test.c | |
0483f586 | 58 | INCLUDE[md2test]=../include |
d90a6beb MC |
59 | DEPEND[md2test]=../libcrypto |
60 | ||
61 | SOURCE[md4test]=md4test.c | |
0483f586 | 62 | INCLUDE[md4test]=../include |
d90a6beb MC |
63 | DEPEND[md4test]=../libcrypto |
64 | ||
65 | SOURCE[md5test]=md5test.c | |
0483f586 | 66 | INCLUDE[md5test]=../include |
d90a6beb MC |
67 | DEPEND[md5test]=../libcrypto |
68 | ||
69 | SOURCE[hmactest]=hmactest.c | |
0483f586 | 70 | INCLUDE[hmactest]=../include |
d90a6beb MC |
71 | DEPEND[hmactest]=../libcrypto |
72 | ||
73 | SOURCE[wp_test]=wp_test.c | |
0483f586 | 74 | INCLUDE[wp_test]=../include |
d90a6beb MC |
75 | DEPEND[wp_test]=../libcrypto |
76 | ||
77 | SOURCE[rc2test]=rc2test.c | |
0483f586 | 78 | INCLUDE[rc2test]=../include |
d90a6beb MC |
79 | DEPEND[rc2test]=../libcrypto |
80 | ||
81 | SOURCE[rc4test]=rc4test.c | |
0483f586 | 82 | INCLUDE[rc4test]=../include |
d90a6beb MC |
83 | DEPEND[rc4test]=../libcrypto |
84 | ||
85 | SOURCE[rc5test]=rc5test.c | |
0483f586 | 86 | INCLUDE[rc5test]=../include |
d90a6beb MC |
87 | DEPEND[rc5test]=../libcrypto |
88 | ||
89 | SOURCE[destest]=destest.c | |
0483f586 | 90 | INCLUDE[destest]=../include |
d90a6beb MC |
91 | DEPEND[destest]=../libcrypto |
92 | ||
93 | SOURCE[sha1test]=sha1test.c | |
0483f586 | 94 | INCLUDE[sha1test]=../include |
d90a6beb MC |
95 | DEPEND[sha1test]=../libcrypto |
96 | ||
97 | SOURCE[sha256t]=sha256t.c | |
0483f586 | 98 | INCLUDE[sha256t]=../include |
d90a6beb MC |
99 | DEPEND[sha256t]=../libcrypto |
100 | ||
101 | SOURCE[sha512t]=sha512t.c | |
0483f586 | 102 | INCLUDE[sha512t]=../include |
d90a6beb MC |
103 | DEPEND[sha512t]=../libcrypto |
104 | ||
105 | SOURCE[mdc2test]=mdc2test.c | |
0483f586 | 106 | INCLUDE[mdc2test]=../include |
d90a6beb MC |
107 | DEPEND[mdc2test]=../libcrypto |
108 | ||
109 | SOURCE[rmdtest]=rmdtest.c | |
0483f586 | 110 | INCLUDE[rmdtest]=../include |
d90a6beb MC |
111 | DEPEND[rmdtest]=../libcrypto |
112 | ||
113 | SOURCE[randtest]=randtest.c | |
0483f586 | 114 | INCLUDE[randtest]=../include |
d90a6beb | 115 | DEPEND[randtest]=../libcrypto |
777a2882 | 116 | |
d90a6beb | 117 | SOURCE[dhtest]=dhtest.c |
0483f586 | 118 | INCLUDE[dhtest]=../include |
d90a6beb | 119 | DEPEND[dhtest]=../libcrypto |
777a2882 | 120 | |
d90a6beb | 121 | SOURCE[enginetest]=enginetest.c |
0483f586 | 122 | INCLUDE[enginetest]=../include |
d90a6beb | 123 | DEPEND[enginetest]=../libcrypto |
777a2882 | 124 | |
d90a6beb | 125 | SOURCE[casttest]=casttest.c |
0483f586 | 126 | INCLUDE[casttest]=../include |
d90a6beb | 127 | DEPEND[casttest]=../libcrypto |
777a2882 | 128 | |
d90a6beb | 129 | SOURCE[bftest]=bftest.c |
0483f586 | 130 | INCLUDE[bftest]=../include |
d90a6beb | 131 | DEPEND[bftest]=../libcrypto |
777a2882 | 132 | |
d90a6beb | 133 | SOURCE[ssltest_old]=ssltest_old.c |
0483f586 | 134 | INCLUDE[ssltest_old]=.. ../include |
d90a6beb | 135 | DEPEND[ssltest_old]=../libcrypto ../libssl |
777a2882 | 136 | |
d90a6beb | 137 | SOURCE[dsatest]=dsatest.c |
0483f586 | 138 | INCLUDE[dsatest]=../include |
d90a6beb | 139 | DEPEND[dsatest]=../libcrypto |
777a2882 | 140 | |
d90a6beb | 141 | SOURCE[exptest]=exptest.c |
0483f586 | 142 | INCLUDE[exptest]=../include |
d90a6beb | 143 | DEPEND[exptest]=../libcrypto |
777a2882 | 144 | |
d90a6beb | 145 | SOURCE[rsa_test]=rsa_test.c |
0483f586 | 146 | INCLUDE[rsa_test]=.. ../include |
d90a6beb | 147 | DEPEND[rsa_test]=../libcrypto |
777a2882 | 148 | |
d90a6beb | 149 | SOURCE[evp_test]=evp_test.c |
0483f586 | 150 | INCLUDE[evp_test]=../include |
d90a6beb | 151 | DEPEND[evp_test]=../libcrypto |
777a2882 | 152 | |
d90a6beb | 153 | SOURCE[evp_extra_test]=evp_extra_test.c |
0483f586 | 154 | INCLUDE[evp_extra_test]=../include |
d90a6beb | 155 | DEPEND[evp_extra_test]=../libcrypto |
777a2882 | 156 | |
d90a6beb | 157 | SOURCE[igetest]=igetest.c |
0483f586 | 158 | INCLUDE[igetest]=.. ../include |
d90a6beb | 159 | DEPEND[igetest]=../libcrypto |
777a2882 | 160 | |
d90a6beb | 161 | SOURCE[v3nametest]=v3nametest.c |
0483f586 | 162 | INCLUDE[v3nametest]=../include |
d90a6beb | 163 | DEPEND[v3nametest]=../libcrypto |
777a2882 | 164 | |
e417070c | 165 | SOURCE[v3ext]=v3ext.c |
0483f586 | 166 | INCLUDE[v3ext]=../include |
e417070c RS |
167 | DEPEND[v3ext]=../libcrypto |
168 | ||
d90a6beb | 169 | SOURCE[danetest]=danetest.c |
0483f586 | 170 | INCLUDE[danetest]=../include |
d90a6beb | 171 | DEPEND[danetest]=../libcrypto ../libssl |
777a2882 | 172 | |
d90a6beb | 173 | SOURCE[heartbeat_test]=heartbeat_test.c testutil.c |
0483f586 | 174 | INCLUDE[heartbeat_test]=.. ../include |
d90a6beb | 175 | DEPEND[heartbeat_test]=../libcrypto ../libssl |
777a2882 | 176 | |
d90a6beb | 177 | SOURCE[p5_crpt2_test]=p5_crpt2_test.c |
0483f586 | 178 | INCLUDE[p5_crpt2_test]=../include |
d90a6beb | 179 | DEPEND[p5_crpt2_test]=../libcrypto |
777a2882 | 180 | |
d90a6beb | 181 | SOURCE[constant_time_test]=constant_time_test.c |
0483f586 | 182 | INCLUDE[constant_time_test]=.. ../include |
d90a6beb | 183 | DEPEND[constant_time_test]=../libcrypto |
777a2882 | 184 | |
d90a6beb | 185 | SOURCE[verify_extra_test]=verify_extra_test.c |
0483f586 | 186 | INCLUDE[verify_extra_test]=../include |
d90a6beb | 187 | DEPEND[verify_extra_test]=../libcrypto |
777a2882 | 188 | |
d90a6beb | 189 | SOURCE[clienthellotest]=clienthellotest.c |
0483f586 | 190 | INCLUDE[clienthellotest]=../include |
d90a6beb | 191 | DEPEND[clienthellotest]=../libcrypto ../libssl |
777a2882 | 192 | |
16938284 | 193 | SOURCE[bad_dtls_test]=bad_dtls_test.c |
9cc76cc4 | 194 | INCLUDE[bad_dtls_test]=../include |
16938284 DW |
195 | DEPEND[bad_dtls_test]=../libcrypto ../libssl |
196 | ||
d90a6beb | 197 | SOURCE[packettest]=packettest.c |
0483f586 | 198 | INCLUDE[packettest]=../include |
d90a6beb | 199 | DEPEND[packettest]=../libcrypto |
777a2882 | 200 | |
d90a6beb | 201 | SOURCE[asynctest]=asynctest.c |
0483f586 | 202 | INCLUDE[asynctest]=.. ../include |
d90a6beb | 203 | DEPEND[asynctest]=../libcrypto |
777a2882 | 204 | |
d90a6beb | 205 | SOURCE[secmemtest]=secmemtest.c |
0483f586 | 206 | INCLUDE[secmemtest]=../include |
d90a6beb | 207 | DEPEND[secmemtest]=../libcrypto |
777a2882 | 208 | |
d90a6beb | 209 | SOURCE[srptest]=srptest.c |
0483f586 | 210 | INCLUDE[srptest]=../include |
d90a6beb | 211 | DEPEND[srptest]=../libcrypto |
777a2882 | 212 | |
d90a6beb | 213 | SOURCE[memleaktest]=memleaktest.c |
0483f586 | 214 | INCLUDE[memleaktest]=../include |
d90a6beb | 215 | DEPEND[memleaktest]=../libcrypto |
04949088 | 216 | |
d90a6beb | 217 | SOURCE[dtlsv1listentest]=dtlsv1listentest.c |
0483f586 | 218 | INCLUDE[dtlsv1listentest]=.. ../include |
d90a6beb | 219 | DEPEND[dtlsv1listentest]=../libssl |
9666ffb3 | 220 | |
d90a6beb | 221 | SOURCE[ct_test]=ct_test.c testutil.c |
0483f586 | 222 | INCLUDE[ct_test]=../crypto/include ../include |
d90a6beb | 223 | DEPEND[ct_test]=../libcrypto |
71a04cfc | 224 | |
d90a6beb | 225 | SOURCE[threadstest]=threadstest.c |
0483f586 | 226 | INCLUDE[threadstest]=.. ../include |
d90a6beb | 227 | DEPEND[threadstest]=../libcrypto |
b37d6abf | 228 | |
d90a6beb | 229 | SOURCE[afalgtest]=afalgtest.c |
0483f586 | 230 | INCLUDE[afalgtest]=.. ../include |
d90a6beb | 231 | DEPEND[afalgtest]=../libcrypto |
d2458440 | 232 | |
d90a6beb | 233 | SOURCE[d2i_test]=d2i_test.c testutil.c |
0483f586 | 234 | INCLUDE[d2i_test]=.. ../include |
d90a6beb | 235 | DEPEND[d2i_test]=../libcrypto |
1400f013 | 236 | |
d90a6beb | 237 | SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c |
0483f586 | 238 | INCLUDE[ssl_test_ctx_test]=.. ../include |
d90a6beb | 239 | DEPEND[ssl_test_ctx_test]=../libcrypto |
453dfd8d | 240 | |
d90a6beb | 241 | SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c |
0483f586 | 242 | INCLUDE[ssl_test]=.. ../include |
d90a6beb | 243 | DEPEND[ssl_test]=../libcrypto ../libssl |
453dfd8d | 244 | |
5a22cf96 | 245 | SOURCE[cipherlist_test]=cipherlist_test.c testutil.c |
0483f586 | 246 | INCLUDE[cipherlist_test]=.. ../include |
5a22cf96 EK |
247 | DEPEND[cipherlist_test]=../libcrypto ../libssl |
248 | ||
d90a6beb | 249 | INCLUDE[testutil.o]=.. |
0483f586 RL |
250 | INCLUDE[ssl_test_ctx.o]=../include |
251 | INCLUDE[handshake_helper.o]=../include | |
252 | INCLUDE[ssltestlib.o]=../include | |
fde2257f VD |
253 | |
254 | SOURCE[x509aux]=x509aux.c | |
0483f586 | 255 | INCLUDE[x509aux]=../include |
fde2257f | 256 | DEPEND[x509aux]=../libcrypto |
d7295cd6 | 257 | |
2cb4b5f6 | 258 | SOURCE[asynciotest]=asynciotest.c ssltestlib.c |
0483f586 | 259 | INCLUDE[asynciotest]=../include |
d7295cd6 | 260 | DEPEND[asynciotest]=../libcrypto ../libssl |
f8f686ec MC |
261 | |
262 | SOURCE[bioprinttest]=bioprinttest.c | |
0483f586 | 263 | INCLUDE[bioprinttest]=../include |
f8f686ec | 264 | DEPEND[bioprinttest]=../libcrypto |
5cdad22f RL |
265 | |
266 | SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c | |
267 | INCLUDE[sslapitest]=../include | |
268 | DEPEND[sslapitest]=../libcrypto ../libssl | |
6fc1748e MC |
269 | |
270 | SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c | |
271 | INCLUDE[dtlstest]=../include . | |
272 | DEPEND[dtlstest]=../libcrypto ../libssl | |
e6ed2b91 AP |
273 | |
274 | SOURCE[bio_enc_test]=bio_enc_test.c | |
275 | INCLUDE[bio_enc_test]=../include | |
276 | DEPEND[bio_enc_test]=../libcrypto | |
d6c4cc29 | 277 | |
02e22dd4 DW |
278 | IF[{- !$disabled{psk} -}] |
279 | PROGRAMS_NO_INST=dtls_mtu_test | |
280 | SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c | |
281 | INCLUDE[dtls_mtu_test]=.. ../include | |
282 | DEPEND[dtls_mtu_test]=../libcrypto ../libssl | |
283 | ENDIF | |
284 | ||
9c89c846 | 285 | IF[{- !$disabled{shared} -}] |
b987d748 MC |
286 | PROGRAMS_NO_INST=shlibloadtest |
287 | SOURCE[shlibloadtest]=shlibloadtest.c | |
288 | INCLUDE[shlibloadtest]=../include | |
289 | ENDIF | |
290 | ||
d6c4cc29 | 291 | IF[{- $disabled{shared} -}] |
542dd9c5 | 292 | PROGRAMS_NO_INST=wpackettest cipher_overhead_test |
d6c4cc29 MC |
293 | SOURCE[wpackettest]=wpackettest.c testutil.c |
294 | INCLUDE[wpackettest]=../include | |
295 | DEPEND[wpackettest]=../libcrypto ../libssl | |
542dd9c5 DW |
296 | |
297 | SOURCE[cipher_overhead_test]=cipher_overhead_test.c | |
298 | INCLUDE[cipher_overhead_test]=.. ../include | |
299 | DEPEND[cipher_overhead_test]=../libcrypto ../libssl | |
d6c4cc29 | 300 | ENDIF |
aeac2183 | 301 | |
b5b7c61f RL |
302 | # Internal test programs. These are essentially a collection of internal |
303 | # test routines. Because they sometimes need to reach internal symbols that | |
304 | # aren't available through the shared library (at least on Linux, Solaris, | |
305 | # Windows and VMS, where the exported symbols are those listed in util/*.num), | |
306 | # these programs may be built on files directly picked from inside crypto/ | |
307 | # or ssl/, to test using symbols that exist in those specific files. These | |
308 | # programs will also be linked with libcrypto / libssl, so we don't pick | |
309 | # out more specific files than necessary. | |
310 | # This might mean we have multiply defined symbols, but since linking is | |
311 | # ordered with object files first and libraries after, the symbols from the | |
312 | # object files will be chosen before those in the libraries. This is handled | |
313 | # properly by all linkers. | |
314 | # Note that when building with static libraries, none of those extra files | |
315 | # are needed, since all symbols are available anyway, regardless of what's | |
316 | # listed in util/*.num. | |
2c166171 | 317 | PROGRAMS_NO_INST=asn1_internal_test |
aeac2183 RL |
318 | IF[{- !$disabled{poly1305} -}] |
319 | PROGRAMS_NO_INST=poly1305_internal_test | |
320 | ENDIF | |
321 | ||
322 | SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c | |
323 | IF[{- !$disabled{shared} -}] | |
324 | SOURCE[poly1305_internal_test]= ../crypto/poly1305/poly1305.c \ | |
325 | {- $target{poly1305_asm_src} ? "../crypto/poly1305/".$target{poly1305_asm_src} : "" -} \ | |
326 | {- $target{cpuid_asm_src} ? "../crypto/".$target{cpuid_asm_src} : "" -} \ | |
327 | ../crypto/cryptlib.c | |
328 | ENDIF | |
329 | INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include | |
330 | DEPEND[poly1305_internal_test]=../libcrypto | |
2c166171 RL |
331 | |
332 | SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c | |
333 | IF[{- !$disabled{shared} -}] | |
334 | SOURCE[asn1_internal_test]= ../crypto/asn1/a_strnid.c \ | |
335 | ../crypto/rsa/rsa_ameth.c ../crypto/dsa/dsa_ameth.c \ | |
336 | ../crypto/dh/dh_ameth.c ../crypto/ec/ec_ameth.c \ | |
337 | ../crypto/hmac/hm_ameth.c ../crypto/cmac/cm_ameth.c \ | |
338 | ../crypto/ec/ecx_meth.c ../crypto/ec/curve25519.c | |
339 | ENDIF | |
340 | INCLUDE[asn1_internal_test]=.. ../include ../crypto/include | |
341 | DEPEND[asn1_internal_test]=../libcrypto | |
5cdad22f RL |
342 | ENDIF |
343 | ||
344 | {- | |
0483f586 | 345 | use File::Spec::Functions; |
bffb1490 RL |
346 | use File::Basename; |
347 | use if $^O ne "VMS", 'File::Glob' => qw/glob/; | |
348 | ||
bffb1490 RL |
349 | my @nogo_headers = ( "asn1_mac.h", |
350 | "__decc_include_prologue.h", | |
351 | "__decc_include_epilogue.h" ); | |
352 | my @headerfiles = glob catfile($sourcedir, | |
353 | updir(), "include", "openssl", "*.h"); | |
354 | ||
355 | foreach my $headerfile (@headerfiles) { | |
356 | my $name = basename($headerfile, ".h"); | |
357 | next if $disabled{$name}; | |
358 | next if grep { $_ eq lc("$name.h") } @nogo_headers; | |
359 | $OUT .= <<"_____"; | |
360 | ||
7218ae51 | 361 | PROGRAMS_NO_INST=buildtest_$name |
bffb1490 RL |
362 | GENERATE[buildtest_$name.c]=generate_buildtest.pl $name |
363 | SOURCE[buildtest_$name]=buildtest_$name.c | |
0483f586 | 364 | INCLUDE[buildtest_$name]=../include |
bffb1490 RL |
365 | DEPEND[buildtest_$name]=../libssl ../libcrypto |
366 | _____ | |
367 | } | |
5cdad22f | 368 | -} |