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