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