]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/build.info
Add Client CA names tests
[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 \
629192c1 15 sanitytest exdatatest bntest \
d90a6beb 16 ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
816060d2 17 md2test \
a2121e14 18 hmactest \
c5055adf 19 rc2test rc4test rc5test \
d90a6beb 20 destest sha1test sha256t sha512t \
816060d2 21 mdc2test \
d90a6beb
MC
22 randtest dhtest enginetest casttest \
23 bftest ssltest_old dsatest exptest rsa_test \
e417070c 24 evp_test evp_extra_test igetest v3nametest v3ext \
816060d2 25 crltest danetest bad_dtls_test \
d90a6beb 26 constant_time_test verify_extra_test clienthellotest \
98374961 27 packettest asynctest secmemtest srptest memleaktest stack_test \
d90a6beb 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 \
c1074ce0 31 pkey_meth_test uitest cipherbytes_test x509_time_test recordlentest
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
629192c1
RS
41 SOURCE[exdatatest]=exdatatest.c
42 INCLUDE[exdatatest]=../include
43 DEPEND[exdatatest]=../libcrypto
44
8d1ebff4 45 SOURCE[bntest]=bntest.c testutil.c test_main_custom.c
0483f586 46 INCLUDE[bntest]=.. ../crypto/include ../include
d90a6beb
MC
47 DEPEND[bntest]=../libcrypto
48
49 SOURCE[ectest]=ectest.c
2f0ca54c 50 INCLUDE[ectest]=.. ../include
d90a6beb
MC
51 DEPEND[ectest]=../libcrypto
52
53 SOURCE[ecdsatest]=ecdsatest.c
0483f586 54 INCLUDE[ecdsatest]=../include
d90a6beb
MC
55 DEPEND[ecdsatest]=../libcrypto
56
57 SOURCE[ecdhtest]=ecdhtest.c
0483f586 58 INCLUDE[ecdhtest]=../include
d90a6beb
MC
59 DEPEND[ecdhtest]=../libcrypto
60
61 SOURCE[gmdifftest]=gmdifftest.c
0483f586 62 INCLUDE[gmdifftest]=../include
d90a6beb
MC
63 DEPEND[gmdifftest]=../libcrypto
64
65 SOURCE[pbelutest]=pbelutest.c
0483f586 66 INCLUDE[pbelutest]=../include
d90a6beb
MC
67 DEPEND[pbelutest]=../libcrypto
68
69 SOURCE[ideatest]=ideatest.c
0483f586 70 INCLUDE[ideatest]=../include
d90a6beb
MC
71 DEPEND[ideatest]=../libcrypto
72
73 SOURCE[md2test]=md2test.c
0483f586 74 INCLUDE[md2test]=../include
d90a6beb
MC
75 DEPEND[md2test]=../libcrypto
76
d90a6beb 77 SOURCE[hmactest]=hmactest.c
0483f586 78 INCLUDE[hmactest]=../include
d90a6beb
MC
79 DEPEND[hmactest]=../libcrypto
80
d90a6beb 81 SOURCE[rc2test]=rc2test.c
0483f586 82 INCLUDE[rc2test]=../include
d90a6beb
MC
83 DEPEND[rc2test]=../libcrypto
84
85 SOURCE[rc4test]=rc4test.c
0483f586 86 INCLUDE[rc4test]=../include
d90a6beb
MC
87 DEPEND[rc4test]=../libcrypto
88
89 SOURCE[rc5test]=rc5test.c
0483f586 90 INCLUDE[rc5test]=../include
d90a6beb
MC
91 DEPEND[rc5test]=../libcrypto
92
93 SOURCE[destest]=destest.c
0483f586 94 INCLUDE[destest]=../include
d90a6beb
MC
95 DEPEND[destest]=../libcrypto
96
97 SOURCE[sha1test]=sha1test.c
0483f586 98 INCLUDE[sha1test]=../include
d90a6beb
MC
99 DEPEND[sha1test]=../libcrypto
100
101 SOURCE[sha256t]=sha256t.c
0483f586 102 INCLUDE[sha256t]=../include
d90a6beb
MC
103 DEPEND[sha256t]=../libcrypto
104
105 SOURCE[sha512t]=sha512t.c
0483f586 106 INCLUDE[sha512t]=../include
d90a6beb
MC
107 DEPEND[sha512t]=../libcrypto
108
109 SOURCE[mdc2test]=mdc2test.c
0483f586 110 INCLUDE[mdc2test]=../include
d90a6beb
MC
111 DEPEND[mdc2test]=../libcrypto
112
d90a6beb 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
2b406990
RS
165 SOURCE[crltest]=crltest.c testutil.c test_main.c
166 INCLUDE[crltest]=../include
167 DEPEND[crltest]=../libcrypto
168
e417070c 169 SOURCE[v3ext]=v3ext.c
0483f586 170 INCLUDE[v3ext]=../include
e417070c
RS
171 DEPEND[v3ext]=../libcrypto
172
d90a6beb 173 SOURCE[danetest]=danetest.c
0483f586 174 INCLUDE[danetest]=../include
d90a6beb 175 DEPEND[danetest]=../libcrypto ../libssl
777a2882 176
d90a6beb 177 SOURCE[constant_time_test]=constant_time_test.c
0483f586 178 INCLUDE[constant_time_test]=.. ../include
d90a6beb 179 DEPEND[constant_time_test]=../libcrypto
777a2882 180
d90a6beb 181 SOURCE[verify_extra_test]=verify_extra_test.c
0483f586 182 INCLUDE[verify_extra_test]=../include
d90a6beb 183 DEPEND[verify_extra_test]=../libcrypto
777a2882 184
6bc6ca62 185 SOURCE[clienthellotest]=clienthellotest.c testutil.c test_main_custom.c
0483f586 186 INCLUDE[clienthellotest]=../include
d90a6beb 187 DEPEND[clienthellotest]=../libcrypto ../libssl
777a2882 188
16938284 189 SOURCE[bad_dtls_test]=bad_dtls_test.c
9cc76cc4 190 INCLUDE[bad_dtls_test]=../include
16938284
DW
191 DEPEND[bad_dtls_test]=../libcrypto ../libssl
192
d90a6beb 193 SOURCE[packettest]=packettest.c
0483f586 194 INCLUDE[packettest]=../include
d90a6beb 195 DEPEND[packettest]=../libcrypto
777a2882 196
d90a6beb 197 SOURCE[asynctest]=asynctest.c
0483f586 198 INCLUDE[asynctest]=.. ../include
d90a6beb 199 DEPEND[asynctest]=../libcrypto
777a2882 200
d90a6beb 201 SOURCE[secmemtest]=secmemtest.c
0483f586 202 INCLUDE[secmemtest]=../include
d90a6beb 203 DEPEND[secmemtest]=../libcrypto
777a2882 204
d90a6beb 205 SOURCE[srptest]=srptest.c
0483f586 206 INCLUDE[srptest]=../include
d90a6beb 207 DEPEND[srptest]=../libcrypto
777a2882 208
d90a6beb 209 SOURCE[memleaktest]=memleaktest.c
0483f586 210 INCLUDE[memleaktest]=../include
d90a6beb 211 DEPEND[memleaktest]=../libcrypto
04949088 212
98374961
P
213 SOURCE[stack_test]=stack_test.c testutil.c test_main.c
214 INCLUDE[stack_test]=.. ../include
215 DEPEND[stack_test]=../libcrypto
216
d90a6beb 217 SOURCE[dtlsv1listentest]=dtlsv1listentest.c
0483f586 218 INCLUDE[dtlsv1listentest]=.. ../include
d90a6beb 219 DEPEND[dtlsv1listentest]=../libssl
9666ffb3 220
e364c3b2 221 SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.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
e364c3b2 233 SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
0483f586 234 INCLUDE[d2i_test]=.. ../include
d90a6beb 235 DEPEND[d2i_test]=../libcrypto
1400f013 236
e364c3b2 237 SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
0483f586 238 INCLUDE[ssl_test_ctx_test]=.. ../include
2e21539b 239 DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl
453dfd8d 240
e364c3b2 241 SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
0483f586 242 INCLUDE[ssl_test]=.. ../include
d90a6beb 243 DEPEND[ssl_test]=../libcrypto ../libssl
453dfd8d 244
e364c3b2 245 SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.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 265
e364c3b2 266 SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
f1b25aae 267 INCLUDE[sslapitest]=../include ..
5cdad22f 268 DEPEND[sslapitest]=../libcrypto ../libssl
6fc1748e 269
e364c3b2 270 SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
6fc1748e
MC
271 INCLUDE[dtlstest]=../include .
272 DEPEND[dtlstest]=../libcrypto ../libssl
e6ed2b91 273
c5a56992
AP
274 SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c
275 INCLUDE[sslcorrupttest]=../include .
276 DEPEND[sslcorrupttest]=../libcrypto ../libssl
277
e6ed2b91
AP
278 SOURCE[bio_enc_test]=bio_enc_test.c
279 INCLUDE[bio_enc_test]=../include
280 DEPEND[bio_enc_test]=../libcrypto
d6c4cc29 281
52fe14e6
DSH
282 SOURCE[pkey_meth_test]=pkey_meth_test.c testutil.c test_main.c
283 INCLUDE[pkey_meth_test]=../include
284 DEPEND[pkey_meth_test]=../libcrypto
285
80770da3
EK
286 SOURCE[x509_time_test]=x509_time_test.c testutil.c test_main.c
287 INCLUDE[x509_time_test]=.. ../include
288 DEPEND[x509_time_test]=../libcrypto
289
c1074ce0
MC
290 SOURCE[recordlentest]=recordlentest.c ssltestlib.c testutil.c test_main_custom.c
291 INCLUDE[recordlentest]=../include .
292 DEPEND[recordlentest]=../libcrypto ../libssl
293
02e22dd4
DW
294 IF[{- !$disabled{psk} -}]
295 PROGRAMS_NO_INST=dtls_mtu_test
296 SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
297 INCLUDE[dtls_mtu_test]=.. ../include
298 DEPEND[dtls_mtu_test]=../libcrypto ../libssl
299 ENDIF
300
9c89c846 301 IF[{- !$disabled{shared} -}]
b987d748
MC
302 PROGRAMS_NO_INST=shlibloadtest
303 SOURCE[shlibloadtest]=shlibloadtest.c
304 INCLUDE[shlibloadtest]=../include
305 ENDIF
306
d6c4cc29 307 IF[{- $disabled{shared} -}]
e463cb39 308 PROGRAMS_NO_INST=cipher_overhead_test
542dd9c5
DW
309 SOURCE[cipher_overhead_test]=cipher_overhead_test.c
310 INCLUDE[cipher_overhead_test]=.. ../include
311 DEPEND[cipher_overhead_test]=../libcrypto ../libssl
d6c4cc29 312 ENDIF
aeac2183 313
6a15d5b6
RL
314 SOURCE[uitest]=uitest.c testutil.c test_main_custom.c \
315 ../apps/apps.c ../apps/opt.c {- $apps_extra -}
66ed24b1
RL
316 INCLUDE[uitest]=.. ../include
317 DEPEND[uitest]=../libcrypto ../libssl
318
6e3dac19
BK
319 SOURCE[cipherbytes_test]=cipherbytes_test.c
320 INCLUDE[cipherbytes_test]=.. ../include
321 DEPEND[cipherbytes_test]=../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
ee6d9dfb
AP
337 IF[{- !$disabled{chacha} -}]
338 PROGRAMS_NO_INST=chacha_internal_test
339 ENDIF
3f5616d7
TS
340 IF[{- !$disabled{siphash} -}]
341 PROGRAMS_NO_INST=siphash_internal_test
342 ENDIF
cf551a51
RL
343
344 SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
345 INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
346 DEPEND[poly1305_internal_test]=../libcrypto.a
347
ee6d9dfb
AP
348 SOURCE[chacha_internal_test]=chacha_internal_test.c
349 INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
350 DEPEND[chacha_internal_test]=../libcrypto.a
351
cf551a51
RL
352 SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
353 INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
354 DEPEND[asn1_internal_test]=../libcrypto.a
355
356 SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
357 INCLUDE[modes_internal_test]=.. ../include
358 DEPEND[modes_internal_test]=../libcrypto.a
359
360 SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
361 INCLUDE[x509_internal_test]=.. ../include
362 DEPEND[x509_internal_test]=../libcrypto.a
f01675c6
MC
363
364 SOURCE[tls13encryptiontest]=tls13encryptiontest.c testutil.c test_main.c
365 INCLUDE[tls13encryptiontest]=.. ../include
366 DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a
e463cb39
MC
367
368 SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
369 INCLUDE[wpackettest]=../include
370 DEPEND[wpackettest]=../libcrypto ../libssl.a
3f5616d7
TS
371
372 SOURCE[siphash_internal_test]=siphash_internal_test.c testutil.c test_main_custom.c
373 INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
374 DEPEND[siphash_internal_test]=../libcrypto.a
aeac2183 375 ENDIF
2c166171 376
cf551a51
RL
377 IF[{- !$disabled{mdc2} -}]
378 PROGRAMS_NO_INST=mdc2_internal_test
f12d6273 379 ENDIF
97f1e971 380
e364c3b2 381 SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
97f1e971
RL
382 INCLUDE[mdc2_internal_test]=.. ../include
383 DEPEND[mdc2_internal_test]=../libcrypto
134bfe56
MC
384
385 # We disable this test completely in a shared build because it deliberately
386 # redefines some internal libssl symbols. This doesn't work in a non-shared
387 # build
388 IF[{- !$disabled{shared} -}]
389 PROGRAMS_NO_INST=tls13secretstest
fb83f20c 390 SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
134bfe56
MC
391 SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
392 INCLUDE[tls13secretstest]=.. ../include
393 DEPEND[tls13secretstest]=../libcrypto ../libssl
394 ENDIF
5cdad22f
RL
395ENDIF
396
397{-
0483f586 398 use File::Spec::Functions;
bffb1490
RL
399 use File::Basename;
400 use if $^O ne "VMS", 'File::Glob' => qw/glob/;
401
bffb1490
RL
402 my @nogo_headers = ( "asn1_mac.h",
403 "__decc_include_prologue.h",
404 "__decc_include_epilogue.h" );
405 my @headerfiles = glob catfile($sourcedir,
406 updir(), "include", "openssl", "*.h");
407
408 foreach my $headerfile (@headerfiles) {
409 my $name = basename($headerfile, ".h");
410 next if $disabled{$name};
411 next if grep { $_ eq lc("$name.h") } @nogo_headers;
412 $OUT .= <<"_____";
413
7218ae51 414 PROGRAMS_NO_INST=buildtest_$name
bffb1490
RL
415 GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
416 SOURCE[buildtest_$name]=buildtest_$name.c
0483f586 417 INCLUDE[buildtest_$name]=../include
bffb1490
RL
418 DEPEND[buildtest_$name]=../libssl ../libcrypto
419_____
420 }
5cdad22f 421-}