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