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