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