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