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