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