80-test_ssl_new.t: Make 19-mac-then-encrypt.conf work without TLSv1.2
[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 IF[{- !$disabled{tests} -}]
10   PROGRAMS_NO_INST=\
11           aborttest \
12           sanitytest bntest \
13           ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
14           md2test md4test md5test \
15           hmactest wp_test \
16           rc2test rc4test rc5test \
17           destest sha1test sha256t sha512t \
18           mdc2test rmdtest \
19           randtest dhtest enginetest casttest \
20           bftest ssltest_old dsatest exptest rsa_test \
21           evp_test evp_extra_test igetest v3nametest v3ext \
22           crltest danetest p5_crpt2_test bad_dtls_test \
23           constant_time_test verify_extra_test clienthellotest \
24           packettest asynctest secmemtest srptest memleaktest \
25           dtlsv1listentest ct_test threadstest afalgtest d2i_test \
26           ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
27           bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
28           pkey_meth_test
29
30   SOURCE[aborttest]=aborttest.c
31   INCLUDE[aborttest]=../include
32   DEPEND[aborttest]=../libcrypto
33
34   SOURCE[sanitytest]=sanitytest.c
35   INCLUDE[sanitytest]=../include
36   DEPEND[sanitytest]=../libcrypto
37
38   SOURCE[bntest]=bntest.c testutil.c test_main_custom.c
39   INCLUDE[bntest]=.. ../crypto/include ../include
40   DEPEND[bntest]=../libcrypto
41
42   SOURCE[ectest]=ectest.c
43   INCLUDE[ectest]=../include
44   DEPEND[ectest]=../libcrypto
45
46   SOURCE[ecdsatest]=ecdsatest.c
47   INCLUDE[ecdsatest]=../include
48   DEPEND[ecdsatest]=../libcrypto
49
50   SOURCE[ecdhtest]=ecdhtest.c
51   INCLUDE[ecdhtest]=../include
52   DEPEND[ecdhtest]=../libcrypto
53
54   SOURCE[gmdifftest]=gmdifftest.c
55   INCLUDE[gmdifftest]=../include
56   DEPEND[gmdifftest]=../libcrypto
57
58   SOURCE[pbelutest]=pbelutest.c
59   INCLUDE[pbelutest]=../include
60   DEPEND[pbelutest]=../libcrypto
61
62   SOURCE[ideatest]=ideatest.c
63   INCLUDE[ideatest]=../include
64   DEPEND[ideatest]=../libcrypto
65
66   SOURCE[md2test]=md2test.c
67   INCLUDE[md2test]=../include
68   DEPEND[md2test]=../libcrypto
69
70   SOURCE[md4test]=md4test.c
71   INCLUDE[md4test]=../include
72   DEPEND[md4test]=../libcrypto
73
74   SOURCE[md5test]=md5test.c
75   INCLUDE[md5test]=../include
76   DEPEND[md5test]=../libcrypto
77
78   SOURCE[hmactest]=hmactest.c
79   INCLUDE[hmactest]=../include
80   DEPEND[hmactest]=../libcrypto
81
82   SOURCE[wp_test]=wp_test.c
83   INCLUDE[wp_test]=../include
84   DEPEND[wp_test]=../libcrypto
85
86   SOURCE[rc2test]=rc2test.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
107   INCLUDE[sha256t]=../include
108   DEPEND[sha256t]=../libcrypto
109
110   SOURCE[sha512t]=sha512t.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[rmdtest]=rmdtest.c
119   INCLUDE[rmdtest]=../include
120   DEPEND[rmdtest]=../libcrypto
121
122   SOURCE[randtest]=randtest.c
123   INCLUDE[randtest]=../include
124   DEPEND[randtest]=../libcrypto
125
126   SOURCE[dhtest]=dhtest.c
127   INCLUDE[dhtest]=../include
128   DEPEND[dhtest]=../libcrypto
129
130   SOURCE[enginetest]=enginetest.c
131   INCLUDE[enginetest]=../include
132   DEPEND[enginetest]=../libcrypto
133
134   SOURCE[casttest]=casttest.c
135   INCLUDE[casttest]=../include
136   DEPEND[casttest]=../libcrypto
137
138   SOURCE[bftest]=bftest.c
139   INCLUDE[bftest]=../include
140   DEPEND[bftest]=../libcrypto
141
142   SOURCE[ssltest_old]=ssltest_old.c
143   INCLUDE[ssltest_old]=.. ../include
144   DEPEND[ssltest_old]=../libcrypto ../libssl
145
146   SOURCE[dsatest]=dsatest.c
147   INCLUDE[dsatest]=../include
148   DEPEND[dsatest]=../libcrypto
149
150   SOURCE[exptest]=exptest.c
151   INCLUDE[exptest]=../include
152   DEPEND[exptest]=../libcrypto
153
154   SOURCE[rsa_test]=rsa_test.c
155   INCLUDE[rsa_test]=.. ../include
156   DEPEND[rsa_test]=../libcrypto
157
158   SOURCE[evp_test]=evp_test.c
159   INCLUDE[evp_test]=../include
160   DEPEND[evp_test]=../libcrypto
161
162   SOURCE[evp_extra_test]=evp_extra_test.c
163   INCLUDE[evp_extra_test]=../include
164   DEPEND[evp_extra_test]=../libcrypto
165
166   SOURCE[igetest]=igetest.c
167   INCLUDE[igetest]=.. ../include
168   DEPEND[igetest]=../libcrypto
169
170   SOURCE[v3nametest]=v3nametest.c
171   INCLUDE[v3nametest]=../include
172   DEPEND[v3nametest]=../libcrypto
173
174   SOURCE[crltest]=crltest.c testutil.c test_main.c
175   INCLUDE[crltest]=../include
176   DEPEND[crltest]=../libcrypto
177
178   SOURCE[v3ext]=v3ext.c
179   INCLUDE[v3ext]=../include
180   DEPEND[v3ext]=../libcrypto
181
182   SOURCE[danetest]=danetest.c
183   INCLUDE[danetest]=../include
184   DEPEND[danetest]=../libcrypto ../libssl
185
186   SOURCE[p5_crpt2_test]=p5_crpt2_test.c
187   INCLUDE[p5_crpt2_test]=../include
188   DEPEND[p5_crpt2_test]=../libcrypto
189
190   SOURCE[constant_time_test]=constant_time_test.c
191   INCLUDE[constant_time_test]=.. ../include
192   DEPEND[constant_time_test]=../libcrypto
193
194   SOURCE[verify_extra_test]=verify_extra_test.c
195   INCLUDE[verify_extra_test]=../include
196   DEPEND[verify_extra_test]=../libcrypto
197
198   SOURCE[clienthellotest]=clienthellotest.c
199   INCLUDE[clienthellotest]=../include
200   DEPEND[clienthellotest]=../libcrypto ../libssl
201
202   SOURCE[bad_dtls_test]=bad_dtls_test.c
203   INCLUDE[bad_dtls_test]=../include
204   DEPEND[bad_dtls_test]=../libcrypto ../libssl
205
206   SOURCE[packettest]=packettest.c
207   INCLUDE[packettest]=../include
208   DEPEND[packettest]=../libcrypto
209
210   SOURCE[asynctest]=asynctest.c
211   INCLUDE[asynctest]=.. ../include
212   DEPEND[asynctest]=../libcrypto
213
214   SOURCE[secmemtest]=secmemtest.c
215   INCLUDE[secmemtest]=../include
216   DEPEND[secmemtest]=../libcrypto
217
218   SOURCE[srptest]=srptest.c
219   INCLUDE[srptest]=../include
220   DEPEND[srptest]=../libcrypto
221
222   SOURCE[memleaktest]=memleaktest.c
223   INCLUDE[memleaktest]=../include
224   DEPEND[memleaktest]=../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
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
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   IF[{- !$disabled{psk} -}]
296     PROGRAMS_NO_INST=dtls_mtu_test
297     SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
298     INCLUDE[dtls_mtu_test]=.. ../include
299     DEPEND[dtls_mtu_test]=../libcrypto ../libssl
300   ENDIF
301
302   IF[{- !$disabled{shared} -}]
303     PROGRAMS_NO_INST=shlibloadtest
304     SOURCE[shlibloadtest]=shlibloadtest.c
305     INCLUDE[shlibloadtest]=../include
306   ENDIF
307
308   IF[{- $disabled{shared} -}]
309     PROGRAMS_NO_INST=wpackettest cipher_overhead_test
310     SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
311     INCLUDE[wpackettest]=../include
312     DEPEND[wpackettest]=../libcrypto ../libssl
313
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   # Internal test programs.  These are essentially a collection of internal
320   # test routines.  Some of them need to reach internal symbols that aren't
321   # available through the shared library (at least on Linux, Solaris, Windows
322   # and VMS, where the exported symbols are those listed in util/*.num), these
323   # programs are forcebly linked with the static libraries, where all symbols
324   # are always available.  This excludes linking these programs natively on
325   # Windows when building shared libraries, since the static libraries share
326   # names with the DLL import libraries.
327   IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
328     PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
329                      tls13encryptiontest
330     IF[{- !$disabled{poly1305} -}]
331       PROGRAMS_NO_INST=poly1305_internal_test
332     ENDIF
333
334     SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
335     INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
336     DEPEND[poly1305_internal_test]=../libcrypto.a
337
338     SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
339     INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
340     DEPEND[asn1_internal_test]=../libcrypto.a
341
342     SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
343     INCLUDE[modes_internal_test]=.. ../include
344     DEPEND[modes_internal_test]=../libcrypto.a
345
346     SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
347     INCLUDE[x509_internal_test]=.. ../include
348     DEPEND[x509_internal_test]=../libcrypto.a
349
350     SOURCE[tls13encryptiontest]=tls13encryptiontest.c testutil.c test_main.c
351     INCLUDE[tls13encryptiontest]=.. ../include
352     DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a
353   ENDIF
354
355   IF[{- !$disabled{mdc2} -}]
356     PROGRAMS_NO_INST=mdc2_internal_test
357   ENDIF
358
359   SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
360   INCLUDE[mdc2_internal_test]=.. ../include
361   DEPEND[mdc2_internal_test]=../libcrypto
362
363   # We disable this test completely in a shared build because it deliberately
364   # redefines some internal libssl symbols. This doesn't work in a non-shared
365   # build
366   IF[{- !$disabled{shared} -}]
367     PROGRAMS_NO_INST=tls13secretstest
368     SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
369     SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
370     INCLUDE[tls13secretstest]=.. ../include
371     DEPEND[tls13secretstest]=../libcrypto ../libssl
372   ENDIF
373 ENDIF
374
375 {-
376    use File::Spec::Functions;
377    use File::Basename;
378    use if $^O ne "VMS", 'File::Glob' => qw/glob/;
379
380    my @nogo_headers = ( "asn1_mac.h",
381                         "__decc_include_prologue.h",
382                         "__decc_include_epilogue.h" );
383    my @headerfiles = glob catfile($sourcedir,
384                                   updir(), "include", "openssl", "*.h");
385
386    foreach my $headerfile (@headerfiles) {
387        my $name = basename($headerfile, ".h");
388        next if $disabled{$name};
389        next if grep { $_ eq lc("$name.h") } @nogo_headers;
390        $OUT .= <<"_____";
391
392   PROGRAMS_NO_INST=buildtest_$name
393   GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
394   SOURCE[buildtest_$name]=buildtest_$name.c
395   INCLUDE[buildtest_$name]=../include
396   DEPEND[buildtest_$name]=../libssl ../libcrypto
397 _____
398    }
399 -}