]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/build.info
Remove memcpy unrolling in bn_lib.c
[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 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
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 \
80770da3 31 pkey_meth_test uitest cipherbytes_test x509_time_test
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
d90a6beb 73 SOURCE[hmactest]=hmactest.c
0483f586 74 INCLUDE[hmactest]=../include
d90a6beb
MC
75 DEPEND[hmactest]=../libcrypto
76
d90a6beb 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
d90a6beb 109 SOURCE[randtest]=randtest.c
0483f586 110 INCLUDE[randtest]=../include
d90a6beb 111 DEPEND[randtest]=../libcrypto
777a2882 112
d90a6beb 113 SOURCE[dhtest]=dhtest.c
0483f586 114 INCLUDE[dhtest]=../include
d90a6beb 115 DEPEND[dhtest]=../libcrypto
777a2882 116
d90a6beb 117 SOURCE[enginetest]=enginetest.c
0483f586 118 INCLUDE[enginetest]=../include
d90a6beb 119 DEPEND[enginetest]=../libcrypto
777a2882 120
d90a6beb 121 SOURCE[casttest]=casttest.c
0483f586 122 INCLUDE[casttest]=../include
d90a6beb 123 DEPEND[casttest]=../libcrypto
777a2882 124
d90a6beb 125 SOURCE[bftest]=bftest.c
0483f586 126 INCLUDE[bftest]=../include
d90a6beb 127 DEPEND[bftest]=../libcrypto
777a2882 128
d90a6beb 129 SOURCE[ssltest_old]=ssltest_old.c
0483f586 130 INCLUDE[ssltest_old]=.. ../include
d90a6beb 131 DEPEND[ssltest_old]=../libcrypto ../libssl
777a2882 132
d90a6beb 133 SOURCE[dsatest]=dsatest.c
0483f586 134 INCLUDE[dsatest]=../include
d90a6beb 135 DEPEND[dsatest]=../libcrypto
777a2882 136
d90a6beb 137 SOURCE[exptest]=exptest.c
0483f586 138 INCLUDE[exptest]=../include
d90a6beb 139 DEPEND[exptest]=../libcrypto
777a2882 140
d90a6beb 141 SOURCE[rsa_test]=rsa_test.c
0483f586 142 INCLUDE[rsa_test]=.. ../include
d90a6beb 143 DEPEND[rsa_test]=../libcrypto
777a2882 144
d90a6beb 145 SOURCE[evp_test]=evp_test.c
0483f586 146 INCLUDE[evp_test]=../include
d90a6beb 147 DEPEND[evp_test]=../libcrypto
777a2882 148
d90a6beb 149 SOURCE[evp_extra_test]=evp_extra_test.c
0483f586 150 INCLUDE[evp_extra_test]=../include
d90a6beb 151 DEPEND[evp_extra_test]=../libcrypto
777a2882 152
d90a6beb 153 SOURCE[igetest]=igetest.c
0483f586 154 INCLUDE[igetest]=.. ../include
d90a6beb 155 DEPEND[igetest]=../libcrypto
777a2882 156
d90a6beb 157 SOURCE[v3nametest]=v3nametest.c
0483f586 158 INCLUDE[v3nametest]=../include
d90a6beb 159 DEPEND[v3nametest]=../libcrypto
777a2882 160
2b406990
RS
161 SOURCE[crltest]=crltest.c testutil.c test_main.c
162 INCLUDE[crltest]=../include
163 DEPEND[crltest]=../libcrypto
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[constant_time_test]=constant_time_test.c
0483f586 174 INCLUDE[constant_time_test]=.. ../include
d90a6beb 175 DEPEND[constant_time_test]=../libcrypto
777a2882 176
d90a6beb 177 SOURCE[verify_extra_test]=verify_extra_test.c
0483f586 178 INCLUDE[verify_extra_test]=../include
d90a6beb 179 DEPEND[verify_extra_test]=../libcrypto
777a2882 180
d90a6beb 181 SOURCE[clienthellotest]=clienthellotest.c
0483f586 182 INCLUDE[clienthellotest]=../include
d90a6beb 183 DEPEND[clienthellotest]=../libcrypto ../libssl
777a2882 184
16938284 185 SOURCE[bad_dtls_test]=bad_dtls_test.c
9cc76cc4 186 INCLUDE[bad_dtls_test]=../include
16938284
DW
187 DEPEND[bad_dtls_test]=../libcrypto ../libssl
188
d90a6beb 189 SOURCE[packettest]=packettest.c
0483f586 190 INCLUDE[packettest]=../include
d90a6beb 191 DEPEND[packettest]=../libcrypto
777a2882 192
d90a6beb 193 SOURCE[asynctest]=asynctest.c
0483f586 194 INCLUDE[asynctest]=.. ../include
d90a6beb 195 DEPEND[asynctest]=../libcrypto
777a2882 196
d90a6beb 197 SOURCE[secmemtest]=secmemtest.c
0483f586 198 INCLUDE[secmemtest]=../include
d90a6beb 199 DEPEND[secmemtest]=../libcrypto
777a2882 200
d90a6beb 201 SOURCE[srptest]=srptest.c
0483f586 202 INCLUDE[srptest]=../include
d90a6beb 203 DEPEND[srptest]=../libcrypto
777a2882 204
d90a6beb 205 SOURCE[memleaktest]=memleaktest.c
0483f586 206 INCLUDE[memleaktest]=../include
d90a6beb 207 DEPEND[memleaktest]=../libcrypto
04949088 208
d90a6beb 209 SOURCE[dtlsv1listentest]=dtlsv1listentest.c
0483f586 210 INCLUDE[dtlsv1listentest]=.. ../include
d90a6beb 211 DEPEND[dtlsv1listentest]=../libssl
9666ffb3 212
e364c3b2 213 SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.c
0483f586 214 INCLUDE[ct_test]=../crypto/include ../include
d90a6beb 215 DEPEND[ct_test]=../libcrypto
71a04cfc 216
d90a6beb 217 SOURCE[threadstest]=threadstest.c
0483f586 218 INCLUDE[threadstest]=.. ../include
d90a6beb 219 DEPEND[threadstest]=../libcrypto
b37d6abf 220
d90a6beb 221 SOURCE[afalgtest]=afalgtest.c
0483f586 222 INCLUDE[afalgtest]=.. ../include
d90a6beb 223 DEPEND[afalgtest]=../libcrypto
d2458440 224
e364c3b2 225 SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
0483f586 226 INCLUDE[d2i_test]=.. ../include
d90a6beb 227 DEPEND[d2i_test]=../libcrypto
1400f013 228
e364c3b2 229 SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
0483f586 230 INCLUDE[ssl_test_ctx_test]=.. ../include
d90a6beb 231 DEPEND[ssl_test_ctx_test]=../libcrypto
453dfd8d 232
e364c3b2 233 SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
0483f586 234 INCLUDE[ssl_test]=.. ../include
d90a6beb 235 DEPEND[ssl_test]=../libcrypto ../libssl
453dfd8d 236
e364c3b2 237 SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.c
0483f586 238 INCLUDE[cipherlist_test]=.. ../include
5a22cf96
EK
239 DEPEND[cipherlist_test]=../libcrypto ../libssl
240
d90a6beb 241 INCLUDE[testutil.o]=..
0483f586
RL
242 INCLUDE[ssl_test_ctx.o]=../include
243 INCLUDE[handshake_helper.o]=../include
244 INCLUDE[ssltestlib.o]=../include
fde2257f
VD
245
246 SOURCE[x509aux]=x509aux.c
0483f586 247 INCLUDE[x509aux]=../include
fde2257f 248 DEPEND[x509aux]=../libcrypto
d7295cd6 249
2cb4b5f6 250 SOURCE[asynciotest]=asynciotest.c ssltestlib.c
0483f586 251 INCLUDE[asynciotest]=../include
d7295cd6 252 DEPEND[asynciotest]=../libcrypto ../libssl
f8f686ec
MC
253
254 SOURCE[bioprinttest]=bioprinttest.c
0483f586 255 INCLUDE[bioprinttest]=../include
f8f686ec 256 DEPEND[bioprinttest]=../libcrypto
5cdad22f 257
e364c3b2 258 SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
f1b25aae 259 INCLUDE[sslapitest]=../include ..
5cdad22f 260 DEPEND[sslapitest]=../libcrypto ../libssl
6fc1748e 261
e364c3b2 262 SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
6fc1748e
MC
263 INCLUDE[dtlstest]=../include .
264 DEPEND[dtlstest]=../libcrypto ../libssl
e6ed2b91 265
c5a56992
AP
266 SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c
267 INCLUDE[sslcorrupttest]=../include .
268 DEPEND[sslcorrupttest]=../libcrypto ../libssl
269
e6ed2b91
AP
270 SOURCE[bio_enc_test]=bio_enc_test.c
271 INCLUDE[bio_enc_test]=../include
272 DEPEND[bio_enc_test]=../libcrypto
d6c4cc29 273
52fe14e6
DSH
274 SOURCE[pkey_meth_test]=pkey_meth_test.c testutil.c test_main.c
275 INCLUDE[pkey_meth_test]=../include
276 DEPEND[pkey_meth_test]=../libcrypto
277
80770da3
EK
278 SOURCE[x509_time_test]=x509_time_test.c testutil.c test_main.c
279 INCLUDE[x509_time_test]=.. ../include
280 DEPEND[x509_time_test]=../libcrypto
281
02e22dd4
DW
282 IF[{- !$disabled{psk} -}]
283 PROGRAMS_NO_INST=dtls_mtu_test
284 SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
285 INCLUDE[dtls_mtu_test]=.. ../include
286 DEPEND[dtls_mtu_test]=../libcrypto ../libssl
287 ENDIF
288
9c89c846 289 IF[{- !$disabled{shared} -}]
b987d748
MC
290 PROGRAMS_NO_INST=shlibloadtest
291 SOURCE[shlibloadtest]=shlibloadtest.c
292 INCLUDE[shlibloadtest]=../include
293 ENDIF
294
d6c4cc29 295 IF[{- $disabled{shared} -}]
e463cb39 296 PROGRAMS_NO_INST=cipher_overhead_test
542dd9c5
DW
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
6a15d5b6
RL
302 SOURCE[uitest]=uitest.c testutil.c test_main_custom.c \
303 ../apps/apps.c ../apps/opt.c {- $apps_extra -}
66ed24b1
RL
304 INCLUDE[uitest]=.. ../include
305 DEPEND[uitest]=../libcrypto ../libssl
306
6e3dac19
BK
307 SOURCE[cipherbytes_test]=cipherbytes_test.c
308 INCLUDE[cipherbytes_test]=.. ../include
309 DEPEND[cipherbytes_test]=../libcrypto ../libssl
310
b5b7c61f 311 # Internal test programs. These are essentially a collection of internal
cf551a51
RL
312 # test routines. Some of them need to reach internal symbols that aren't
313 # available through the shared library (at least on Linux, Solaris, Windows
314 # and VMS, where the exported symbols are those listed in util/*.num), these
315 # programs are forcebly linked with the static libraries, where all symbols
316 # are always available. This excludes linking these programs natively on
317 # Windows when building shared libraries, since the static libraries share
318 # names with the DLL import libraries.
319 IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
f01675c6 320 PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
e463cb39 321 tls13encryptiontest wpackettest
cf551a51
RL
322 IF[{- !$disabled{poly1305} -}]
323 PROGRAMS_NO_INST=poly1305_internal_test
324 ENDIF
3f5616d7
TS
325 IF[{- !$disabled{siphash} -}]
326 PROGRAMS_NO_INST=siphash_internal_test
327 ENDIF
cf551a51
RL
328
329 SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
330 INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
331 DEPEND[poly1305_internal_test]=../libcrypto.a
332
333 SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
334 INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
335 DEPEND[asn1_internal_test]=../libcrypto.a
336
337 SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
338 INCLUDE[modes_internal_test]=.. ../include
339 DEPEND[modes_internal_test]=../libcrypto.a
340
341 SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
342 INCLUDE[x509_internal_test]=.. ../include
343 DEPEND[x509_internal_test]=../libcrypto.a
f01675c6
MC
344
345 SOURCE[tls13encryptiontest]=tls13encryptiontest.c testutil.c test_main.c
346 INCLUDE[tls13encryptiontest]=.. ../include
347 DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a
e463cb39
MC
348
349 SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
350 INCLUDE[wpackettest]=../include
351 DEPEND[wpackettest]=../libcrypto ../libssl.a
3f5616d7
TS
352
353 SOURCE[siphash_internal_test]=siphash_internal_test.c testutil.c test_main_custom.c
354 INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
355 DEPEND[siphash_internal_test]=../libcrypto.a
aeac2183 356 ENDIF
2c166171 357
cf551a51
RL
358 IF[{- !$disabled{mdc2} -}]
359 PROGRAMS_NO_INST=mdc2_internal_test
f12d6273 360 ENDIF
97f1e971 361
e364c3b2 362 SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
97f1e971
RL
363 INCLUDE[mdc2_internal_test]=.. ../include
364 DEPEND[mdc2_internal_test]=../libcrypto
134bfe56
MC
365
366 # We disable this test completely in a shared build because it deliberately
367 # redefines some internal libssl symbols. This doesn't work in a non-shared
368 # build
369 IF[{- !$disabled{shared} -}]
370 PROGRAMS_NO_INST=tls13secretstest
fb83f20c 371 SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
134bfe56
MC
372 SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
373 INCLUDE[tls13secretstest]=.. ../include
374 DEPEND[tls13secretstest]=../libcrypto ../libssl
375 ENDIF
5cdad22f
RL
376ENDIF
377
378{-
0483f586 379 use File::Spec::Functions;
bffb1490
RL
380 use File::Basename;
381 use if $^O ne "VMS", 'File::Glob' => qw/glob/;
382
bffb1490
RL
383 my @nogo_headers = ( "asn1_mac.h",
384 "__decc_include_prologue.h",
385 "__decc_include_epilogue.h" );
386 my @headerfiles = glob catfile($sourcedir,
387 updir(), "include", "openssl", "*.h");
388
389 foreach my $headerfile (@headerfiles) {
390 my $name = basename($headerfile, ".h");
391 next if $disabled{$name};
392 next if grep { $_ eq lc("$name.h") } @nogo_headers;
393 $OUT .= <<"_____";
394
7218ae51 395 PROGRAMS_NO_INST=buildtest_$name
bffb1490
RL
396 GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
397 SOURCE[buildtest_$name]=buildtest_$name.c
0483f586 398 INCLUDE[buildtest_$name]=../include
bffb1490
RL
399 DEPEND[buildtest_$name]=../libssl ../libcrypto
400_____
401 }
5cdad22f 402-}