]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/build.info
Refactor SSL_bytes_to_cipher_list()
[thirdparty/openssl.git] / test / build.info
CommitLineData
b93cb165
RL
1{-
2 use File::Spec::Functions;
3 sub rebase_files
4 {
5 my ($base, $files) = @_;
6 return join(" ", map { "$base/$_" } split(/\s+/, $files));
7 }
6a15d5b6
RL
8 our $apps_extra =
9 $config{target} =~ /^vms-/ ? "../apps/vms_term_sock.c" : "";
10 ""
b93cb165 11-}
d90a6beb 12IF[{- !$disabled{tests} -}]
7218ae51 13 PROGRAMS_NO_INST=\
d90a6beb 14 aborttest \
cc75cbc4 15 sanitytest bntest \
d90a6beb
MC
16 ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
17 md2test md4test md5test \
18 hmactest wp_test \
19 rc2test rc4test rc5test \
20 destest sha1test sha256t sha512t \
21 mdc2test rmdtest \
22 randtest dhtest enginetest casttest \
23 bftest ssltest_old dsatest exptest rsa_test \
e417070c 24 evp_test evp_extra_test igetest v3nametest v3ext \
2b406990 25 crltest danetest p5_crpt2_test bad_dtls_test \
d90a6beb
MC
26 constant_time_test verify_extra_test clienthellotest \
27 packettest asynctest secmemtest srptest memleaktest \
28 dtlsv1listentest ct_test threadstest afalgtest d2i_test \
f8f686ec 29 ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
52fe14e6 30 bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
66ed24b1 31 pkey_meth_test uitest
d90a6beb
MC
32
33 SOURCE[aborttest]=aborttest.c
0483f586 34 INCLUDE[aborttest]=../include
d90a6beb
MC
35 DEPEND[aborttest]=../libcrypto
36
cc75cbc4
RS
37 SOURCE[sanitytest]=sanitytest.c
38 INCLUDE[sanitytest]=../include
39 DEPEND[sanitytest]=../libcrypto
d90a6beb 40
8d1ebff4 41 SOURCE[bntest]=bntest.c testutil.c test_main_custom.c
0483f586 42 INCLUDE[bntest]=.. ../crypto/include ../include
d90a6beb
MC
43 DEPEND[bntest]=../libcrypto
44
45 SOURCE[ectest]=ectest.c
0483f586 46 INCLUDE[ectest]=../include
d90a6beb
MC
47 DEPEND[ectest]=../libcrypto
48
49 SOURCE[ecdsatest]=ecdsatest.c
0483f586 50 INCLUDE[ecdsatest]=../include
d90a6beb
MC
51 DEPEND[ecdsatest]=../libcrypto
52
53 SOURCE[ecdhtest]=ecdhtest.c
0483f586 54 INCLUDE[ecdhtest]=../include
d90a6beb
MC
55 DEPEND[ecdhtest]=../libcrypto
56
57 SOURCE[gmdifftest]=gmdifftest.c
0483f586 58 INCLUDE[gmdifftest]=../include
d90a6beb
MC
59 DEPEND[gmdifftest]=../libcrypto
60
61 SOURCE[pbelutest]=pbelutest.c
0483f586 62 INCLUDE[pbelutest]=../include
d90a6beb
MC
63 DEPEND[pbelutest]=../libcrypto
64
65 SOURCE[ideatest]=ideatest.c
0483f586 66 INCLUDE[ideatest]=../include
d90a6beb
MC
67 DEPEND[ideatest]=../libcrypto
68
69 SOURCE[md2test]=md2test.c
0483f586 70 INCLUDE[md2test]=../include
d90a6beb
MC
71 DEPEND[md2test]=../libcrypto
72
73 SOURCE[md4test]=md4test.c
0483f586 74 INCLUDE[md4test]=../include
d90a6beb
MC
75 DEPEND[md4test]=../libcrypto
76
77 SOURCE[md5test]=md5test.c
0483f586 78 INCLUDE[md5test]=../include
d90a6beb
MC
79 DEPEND[md5test]=../libcrypto
80
81 SOURCE[hmactest]=hmactest.c
0483f586 82 INCLUDE[hmactest]=../include
d90a6beb
MC
83 DEPEND[hmactest]=../libcrypto
84
85 SOURCE[wp_test]=wp_test.c
0483f586 86 INCLUDE[wp_test]=../include
d90a6beb
MC
87 DEPEND[wp_test]=../libcrypto
88
89 SOURCE[rc2test]=rc2test.c
0483f586 90 INCLUDE[rc2test]=../include
d90a6beb
MC
91 DEPEND[rc2test]=../libcrypto
92
93 SOURCE[rc4test]=rc4test.c
0483f586 94 INCLUDE[rc4test]=../include
d90a6beb
MC
95 DEPEND[rc4test]=../libcrypto
96
97 SOURCE[rc5test]=rc5test.c
0483f586 98 INCLUDE[rc5test]=../include
d90a6beb
MC
99 DEPEND[rc5test]=../libcrypto
100
101 SOURCE[destest]=destest.c
0483f586 102 INCLUDE[destest]=../include
d90a6beb
MC
103 DEPEND[destest]=../libcrypto
104
105 SOURCE[sha1test]=sha1test.c
0483f586 106 INCLUDE[sha1test]=../include
d90a6beb
MC
107 DEPEND[sha1test]=../libcrypto
108
109 SOURCE[sha256t]=sha256t.c
0483f586 110 INCLUDE[sha256t]=../include
d90a6beb
MC
111 DEPEND[sha256t]=../libcrypto
112
113 SOURCE[sha512t]=sha512t.c
0483f586 114 INCLUDE[sha512t]=../include
d90a6beb
MC
115 DEPEND[sha512t]=../libcrypto
116
117 SOURCE[mdc2test]=mdc2test.c
0483f586 118 INCLUDE[mdc2test]=../include
d90a6beb
MC
119 DEPEND[mdc2test]=../libcrypto
120
121 SOURCE[rmdtest]=rmdtest.c
0483f586 122 INCLUDE[rmdtest]=../include
d90a6beb
MC
123 DEPEND[rmdtest]=../libcrypto
124
125 SOURCE[randtest]=randtest.c
0483f586 126 INCLUDE[randtest]=../include
d90a6beb 127 DEPEND[randtest]=../libcrypto
777a2882 128
d90a6beb 129 SOURCE[dhtest]=dhtest.c
0483f586 130 INCLUDE[dhtest]=../include
d90a6beb 131 DEPEND[dhtest]=../libcrypto
777a2882 132
d90a6beb 133 SOURCE[enginetest]=enginetest.c
0483f586 134 INCLUDE[enginetest]=../include
d90a6beb 135 DEPEND[enginetest]=../libcrypto
777a2882 136
d90a6beb 137 SOURCE[casttest]=casttest.c
0483f586 138 INCLUDE[casttest]=../include
d90a6beb 139 DEPEND[casttest]=../libcrypto
777a2882 140
d90a6beb 141 SOURCE[bftest]=bftest.c
0483f586 142 INCLUDE[bftest]=../include
d90a6beb 143 DEPEND[bftest]=../libcrypto
777a2882 144
d90a6beb 145 SOURCE[ssltest_old]=ssltest_old.c
0483f586 146 INCLUDE[ssltest_old]=.. ../include
d90a6beb 147 DEPEND[ssltest_old]=../libcrypto ../libssl
777a2882 148
d90a6beb 149 SOURCE[dsatest]=dsatest.c
0483f586 150 INCLUDE[dsatest]=../include
d90a6beb 151 DEPEND[dsatest]=../libcrypto
777a2882 152
d90a6beb 153 SOURCE[exptest]=exptest.c
0483f586 154 INCLUDE[exptest]=../include
d90a6beb 155 DEPEND[exptest]=../libcrypto
777a2882 156
d90a6beb 157 SOURCE[rsa_test]=rsa_test.c
0483f586 158 INCLUDE[rsa_test]=.. ../include
d90a6beb 159 DEPEND[rsa_test]=../libcrypto
777a2882 160
d90a6beb 161 SOURCE[evp_test]=evp_test.c
0483f586 162 INCLUDE[evp_test]=../include
d90a6beb 163 DEPEND[evp_test]=../libcrypto
777a2882 164
d90a6beb 165 SOURCE[evp_extra_test]=evp_extra_test.c
0483f586 166 INCLUDE[evp_extra_test]=../include
d90a6beb 167 DEPEND[evp_extra_test]=../libcrypto
777a2882 168
d90a6beb 169 SOURCE[igetest]=igetest.c
0483f586 170 INCLUDE[igetest]=.. ../include
d90a6beb 171 DEPEND[igetest]=../libcrypto
777a2882 172
d90a6beb 173 SOURCE[v3nametest]=v3nametest.c
0483f586 174 INCLUDE[v3nametest]=../include
d90a6beb 175 DEPEND[v3nametest]=../libcrypto
777a2882 176
2b406990
RS
177 SOURCE[crltest]=crltest.c testutil.c test_main.c
178 INCLUDE[crltest]=../include
179 DEPEND[crltest]=../libcrypto
180
e417070c 181 SOURCE[v3ext]=v3ext.c
0483f586 182 INCLUDE[v3ext]=../include
e417070c
RS
183 DEPEND[v3ext]=../libcrypto
184
d90a6beb 185 SOURCE[danetest]=danetest.c
0483f586 186 INCLUDE[danetest]=../include
d90a6beb 187 DEPEND[danetest]=../libcrypto ../libssl
777a2882 188
d90a6beb 189 SOURCE[p5_crpt2_test]=p5_crpt2_test.c
0483f586 190 INCLUDE[p5_crpt2_test]=../include
d90a6beb 191 DEPEND[p5_crpt2_test]=../libcrypto
777a2882 192
d90a6beb 193 SOURCE[constant_time_test]=constant_time_test.c
0483f586 194 INCLUDE[constant_time_test]=.. ../include
d90a6beb 195 DEPEND[constant_time_test]=../libcrypto
777a2882 196
d90a6beb 197 SOURCE[verify_extra_test]=verify_extra_test.c
0483f586 198 INCLUDE[verify_extra_test]=../include
d90a6beb 199 DEPEND[verify_extra_test]=../libcrypto
777a2882 200
d90a6beb 201 SOURCE[clienthellotest]=clienthellotest.c
0483f586 202 INCLUDE[clienthellotest]=../include
d90a6beb 203 DEPEND[clienthellotest]=../libcrypto ../libssl
777a2882 204
16938284 205 SOURCE[bad_dtls_test]=bad_dtls_test.c
9cc76cc4 206 INCLUDE[bad_dtls_test]=../include
16938284
DW
207 DEPEND[bad_dtls_test]=../libcrypto ../libssl
208
d90a6beb 209 SOURCE[packettest]=packettest.c
0483f586 210 INCLUDE[packettest]=../include
d90a6beb 211 DEPEND[packettest]=../libcrypto
777a2882 212
d90a6beb 213 SOURCE[asynctest]=asynctest.c
0483f586 214 INCLUDE[asynctest]=.. ../include
d90a6beb 215 DEPEND[asynctest]=../libcrypto
777a2882 216
d90a6beb 217 SOURCE[secmemtest]=secmemtest.c
0483f586 218 INCLUDE[secmemtest]=../include
d90a6beb 219 DEPEND[secmemtest]=../libcrypto
777a2882 220
d90a6beb 221 SOURCE[srptest]=srptest.c
0483f586 222 INCLUDE[srptest]=../include
d90a6beb 223 DEPEND[srptest]=../libcrypto
777a2882 224
d90a6beb 225 SOURCE[memleaktest]=memleaktest.c
0483f586 226 INCLUDE[memleaktest]=../include
d90a6beb 227 DEPEND[memleaktest]=../libcrypto
04949088 228
d90a6beb 229 SOURCE[dtlsv1listentest]=dtlsv1listentest.c
0483f586 230 INCLUDE[dtlsv1listentest]=.. ../include
d90a6beb 231 DEPEND[dtlsv1listentest]=../libssl
9666ffb3 232
e364c3b2 233 SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.c
0483f586 234 INCLUDE[ct_test]=../crypto/include ../include
d90a6beb 235 DEPEND[ct_test]=../libcrypto
71a04cfc 236
d90a6beb 237 SOURCE[threadstest]=threadstest.c
0483f586 238 INCLUDE[threadstest]=.. ../include
d90a6beb 239 DEPEND[threadstest]=../libcrypto
b37d6abf 240
d90a6beb 241 SOURCE[afalgtest]=afalgtest.c
0483f586 242 INCLUDE[afalgtest]=.. ../include
d90a6beb 243 DEPEND[afalgtest]=../libcrypto
d2458440 244
e364c3b2 245 SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
0483f586 246 INCLUDE[d2i_test]=.. ../include
d90a6beb 247 DEPEND[d2i_test]=../libcrypto
1400f013 248
e364c3b2 249 SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
0483f586 250 INCLUDE[ssl_test_ctx_test]=.. ../include
d90a6beb 251 DEPEND[ssl_test_ctx_test]=../libcrypto
453dfd8d 252
e364c3b2 253 SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
0483f586 254 INCLUDE[ssl_test]=.. ../include
d90a6beb 255 DEPEND[ssl_test]=../libcrypto ../libssl
453dfd8d 256
e364c3b2 257 SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.c
0483f586 258 INCLUDE[cipherlist_test]=.. ../include
5a22cf96
EK
259 DEPEND[cipherlist_test]=../libcrypto ../libssl
260
d90a6beb 261 INCLUDE[testutil.o]=..
0483f586
RL
262 INCLUDE[ssl_test_ctx.o]=../include
263 INCLUDE[handshake_helper.o]=../include
264 INCLUDE[ssltestlib.o]=../include
fde2257f
VD
265
266 SOURCE[x509aux]=x509aux.c
0483f586 267 INCLUDE[x509aux]=../include
fde2257f 268 DEPEND[x509aux]=../libcrypto
d7295cd6 269
2cb4b5f6 270 SOURCE[asynciotest]=asynciotest.c ssltestlib.c
0483f586 271 INCLUDE[asynciotest]=../include
d7295cd6 272 DEPEND[asynciotest]=../libcrypto ../libssl
f8f686ec
MC
273
274 SOURCE[bioprinttest]=bioprinttest.c
0483f586 275 INCLUDE[bioprinttest]=../include
f8f686ec 276 DEPEND[bioprinttest]=../libcrypto
5cdad22f 277
e364c3b2 278 SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
f1b25aae 279 INCLUDE[sslapitest]=../include ..
5cdad22f 280 DEPEND[sslapitest]=../libcrypto ../libssl
6fc1748e 281
e364c3b2 282 SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
6fc1748e
MC
283 INCLUDE[dtlstest]=../include .
284 DEPEND[dtlstest]=../libcrypto ../libssl
e6ed2b91 285
c5a56992
AP
286 SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c
287 INCLUDE[sslcorrupttest]=../include .
288 DEPEND[sslcorrupttest]=../libcrypto ../libssl
289
e6ed2b91
AP
290 SOURCE[bio_enc_test]=bio_enc_test.c
291 INCLUDE[bio_enc_test]=../include
292 DEPEND[bio_enc_test]=../libcrypto
d6c4cc29 293
52fe14e6
DSH
294 SOURCE[pkey_meth_test]=pkey_meth_test.c testutil.c test_main.c
295 INCLUDE[pkey_meth_test]=../include
296 DEPEND[pkey_meth_test]=../libcrypto
297
02e22dd4
DW
298 IF[{- !$disabled{psk} -}]
299 PROGRAMS_NO_INST=dtls_mtu_test
300 SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
301 INCLUDE[dtls_mtu_test]=.. ../include
302 DEPEND[dtls_mtu_test]=../libcrypto ../libssl
303 ENDIF
304
9c89c846 305 IF[{- !$disabled{shared} -}]
b987d748
MC
306 PROGRAMS_NO_INST=shlibloadtest
307 SOURCE[shlibloadtest]=shlibloadtest.c
308 INCLUDE[shlibloadtest]=../include
309 ENDIF
310
d6c4cc29 311 IF[{- $disabled{shared} -}]
e463cb39 312 PROGRAMS_NO_INST=cipher_overhead_test
542dd9c5
DW
313 SOURCE[cipher_overhead_test]=cipher_overhead_test.c
314 INCLUDE[cipher_overhead_test]=.. ../include
315 DEPEND[cipher_overhead_test]=../libcrypto ../libssl
d6c4cc29 316 ENDIF
aeac2183 317
6a15d5b6
RL
318 SOURCE[uitest]=uitest.c testutil.c test_main_custom.c \
319 ../apps/apps.c ../apps/opt.c {- $apps_extra -}
66ed24b1
RL
320 INCLUDE[uitest]=.. ../include
321 DEPEND[uitest]=../libcrypto ../libssl
322
b5b7c61f 323 # Internal test programs. These are essentially a collection of internal
cf551a51
RL
324 # test routines. Some of them need to reach internal symbols that aren't
325 # available through the shared library (at least on Linux, Solaris, Windows
326 # and VMS, where the exported symbols are those listed in util/*.num), these
327 # programs are forcebly linked with the static libraries, where all symbols
328 # are always available. This excludes linking these programs natively on
329 # Windows when building shared libraries, since the static libraries share
330 # names with the DLL import libraries.
331 IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
f01675c6 332 PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
e463cb39 333 tls13encryptiontest wpackettest
cf551a51
RL
334 IF[{- !$disabled{poly1305} -}]
335 PROGRAMS_NO_INST=poly1305_internal_test
336 ENDIF
3f5616d7
TS
337 IF[{- !$disabled{siphash} -}]
338 PROGRAMS_NO_INST=siphash_internal_test
339 ENDIF
cf551a51
RL
340
341 SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
342 INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
343 DEPEND[poly1305_internal_test]=../libcrypto.a
344
345 SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
346 INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
347 DEPEND[asn1_internal_test]=../libcrypto.a
348
349 SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
350 INCLUDE[modes_internal_test]=.. ../include
351 DEPEND[modes_internal_test]=../libcrypto.a
352
353 SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
354 INCLUDE[x509_internal_test]=.. ../include
355 DEPEND[x509_internal_test]=../libcrypto.a
f01675c6
MC
356
357 SOURCE[tls13encryptiontest]=tls13encryptiontest.c testutil.c test_main.c
358 INCLUDE[tls13encryptiontest]=.. ../include
359 DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a
e463cb39
MC
360
361 SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
362 INCLUDE[wpackettest]=../include
363 DEPEND[wpackettest]=../libcrypto ../libssl.a
3f5616d7
TS
364
365 SOURCE[siphash_internal_test]=siphash_internal_test.c testutil.c test_main_custom.c
366 INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
367 DEPEND[siphash_internal_test]=../libcrypto.a
aeac2183 368 ENDIF
2c166171 369
cf551a51
RL
370 IF[{- !$disabled{mdc2} -}]
371 PROGRAMS_NO_INST=mdc2_internal_test
f12d6273 372 ENDIF
97f1e971 373
e364c3b2 374 SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
97f1e971
RL
375 INCLUDE[mdc2_internal_test]=.. ../include
376 DEPEND[mdc2_internal_test]=../libcrypto
134bfe56
MC
377
378 # We disable this test completely in a shared build because it deliberately
379 # redefines some internal libssl symbols. This doesn't work in a non-shared
380 # build
381 IF[{- !$disabled{shared} -}]
382 PROGRAMS_NO_INST=tls13secretstest
fb83f20c 383 SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
134bfe56
MC
384 SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
385 INCLUDE[tls13secretstest]=.. ../include
386 DEPEND[tls13secretstest]=../libcrypto ../libssl
387 ENDIF
5cdad22f
RL
388ENDIF
389
390{-
0483f586 391 use File::Spec::Functions;
bffb1490
RL
392 use File::Basename;
393 use if $^O ne "VMS", 'File::Glob' => qw/glob/;
394
bffb1490
RL
395 my @nogo_headers = ( "asn1_mac.h",
396 "__decc_include_prologue.h",
397 "__decc_include_epilogue.h" );
398 my @headerfiles = glob catfile($sourcedir,
399 updir(), "include", "openssl", "*.h");
400
401 foreach my $headerfile (@headerfiles) {
402 my $name = basename($headerfile, ".h");
403 next if $disabled{$name};
404 next if grep { $_ eq lc("$name.h") } @nogo_headers;
405 $OUT .= <<"_____";
406
7218ae51 407 PROGRAMS_NO_INST=buildtest_$name
bffb1490
RL
408 GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
409 SOURCE[buildtest_$name]=buildtest_$name.c
0483f586 410 INCLUDE[buildtest_$name]=../include
bffb1490
RL
411 DEPEND[buildtest_$name]=../libssl ../libcrypto
412_____
413 }
5cdad22f 414-}