6bdeb8523bccaee32d6ccdd62c7344e65e3c16c6
[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
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   IF[{- !$disabled{psk} -}]
287     PROGRAMS_NO_INST=dtls_mtu_test
288     SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
289     INCLUDE[dtls_mtu_test]=.. ../include
290     DEPEND[dtls_mtu_test]=../libcrypto ../libssl
291   ENDIF
292
293   IF[{- !$disabled{shared} -}]
294     PROGRAMS_NO_INST=shlibloadtest
295     SOURCE[shlibloadtest]=shlibloadtest.c
296     INCLUDE[shlibloadtest]=../include
297   ENDIF
298
299   IF[{- $disabled{shared} -}]
300     PROGRAMS_NO_INST=cipher_overhead_test
301     SOURCE[cipher_overhead_test]=cipher_overhead_test.c
302     INCLUDE[cipher_overhead_test]=.. ../include
303     DEPEND[cipher_overhead_test]=../libcrypto ../libssl
304   ENDIF
305
306   SOURCE[uitest]=uitest.c testutil.c test_main_custom.c \
307     ../apps/apps.c ../apps/opt.c {- $apps_extra -}
308   INCLUDE[uitest]=.. ../include
309   DEPEND[uitest]=../libcrypto ../libssl
310
311   SOURCE[cipherbytes_test]=cipherbytes_test.c
312   INCLUDE[cipherbytes_test]=.. ../include
313   DEPEND[cipherbytes_test]=../libcrypto ../libssl
314
315   # Internal test programs.  These are essentially a collection of internal
316   # test routines.  Some of them need to reach internal symbols that aren't
317   # available through the shared library (at least on Linux, Solaris, Windows
318   # and VMS, where the exported symbols are those listed in util/*.num), these
319   # programs are forcebly linked with the static libraries, where all symbols
320   # are always available.  This excludes linking these programs natively on
321   # Windows when building shared libraries, since the static libraries share
322   # names with the DLL import libraries.
323   IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
324     PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
325                      tls13encryptiontest wpackettest
326     IF[{- !$disabled{poly1305} -}]
327       PROGRAMS_NO_INST=poly1305_internal_test
328     ENDIF
329     IF[{- !$disabled{siphash} -}]
330       PROGRAMS_NO_INST=siphash_internal_test
331     ENDIF
332
333     SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
334     INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
335     DEPEND[poly1305_internal_test]=../libcrypto.a
336
337     SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
338     INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
339     DEPEND[asn1_internal_test]=../libcrypto.a
340
341     SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
342     INCLUDE[modes_internal_test]=.. ../include
343     DEPEND[modes_internal_test]=../libcrypto.a
344
345     SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
346     INCLUDE[x509_internal_test]=.. ../include
347     DEPEND[x509_internal_test]=../libcrypto.a
348
349     SOURCE[tls13encryptiontest]=tls13encryptiontest.c testutil.c test_main.c
350     INCLUDE[tls13encryptiontest]=.. ../include
351     DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a
352
353     SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
354     INCLUDE[wpackettest]=../include
355     DEPEND[wpackettest]=../libcrypto ../libssl.a
356
357     SOURCE[siphash_internal_test]=siphash_internal_test.c testutil.c test_main_custom.c
358     INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
359     DEPEND[siphash_internal_test]=../libcrypto.a
360   ENDIF
361
362   IF[{- !$disabled{mdc2} -}]
363     PROGRAMS_NO_INST=mdc2_internal_test
364   ENDIF
365
366   SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
367   INCLUDE[mdc2_internal_test]=.. ../include
368   DEPEND[mdc2_internal_test]=../libcrypto
369
370   # We disable this test completely in a shared build because it deliberately
371   # redefines some internal libssl symbols. This doesn't work in a non-shared
372   # build
373   IF[{- !$disabled{shared} -}]
374     PROGRAMS_NO_INST=tls13secretstest
375     SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
376     SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
377     INCLUDE[tls13secretstest]=.. ../include
378     DEPEND[tls13secretstest]=../libcrypto ../libssl
379   ENDIF
380 ENDIF
381
382 {-
383    use File::Spec::Functions;
384    use File::Basename;
385    use if $^O ne "VMS", 'File::Glob' => qw/glob/;
386
387    my @nogo_headers = ( "asn1_mac.h",
388                         "__decc_include_prologue.h",
389                         "__decc_include_epilogue.h" );
390    my @headerfiles = glob catfile($sourcedir,
391                                   updir(), "include", "openssl", "*.h");
392
393    foreach my $headerfile (@headerfiles) {
394        my $name = basename($headerfile, ".h");
395        next if $disabled{$name};
396        next if grep { $_ eq lc("$name.h") } @nogo_headers;
397        $OUT .= <<"_____";
398
399   PROGRAMS_NO_INST=buildtest_$name
400   GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
401   SOURCE[buildtest_$name]=buildtest_$name.c
402   INCLUDE[buildtest_$name]=../include
403   DEPEND[buildtest_$name]=../libssl ../libcrypto
404 _____
405    }
406 -}