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