e9f87edb8b3b45a268562b8faccc71f06ca8d780
[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 heartbeat_test 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[heartbeat_test]=heartbeat_test.c testutil.c
182   INCLUDE[heartbeat_test]=.. ../include
183   DEPEND[heartbeat_test]=../libcrypto ../libssl
184
185   SOURCE[p5_crpt2_test]=p5_crpt2_test.c
186   INCLUDE[p5_crpt2_test]=../include
187   DEPEND[p5_crpt2_test]=../libcrypto
188
189   SOURCE[constant_time_test]=constant_time_test.c
190   INCLUDE[constant_time_test]=.. ../include
191   DEPEND[constant_time_test]=../libcrypto
192
193   SOURCE[verify_extra_test]=verify_extra_test.c
194   INCLUDE[verify_extra_test]=../include
195   DEPEND[verify_extra_test]=../libcrypto
196
197   SOURCE[clienthellotest]=clienthellotest.c
198   INCLUDE[clienthellotest]=../include
199   DEPEND[clienthellotest]=../libcrypto ../libssl
200
201   SOURCE[bad_dtls_test]=bad_dtls_test.c
202   INCLUDE[bad_dtls_test]=../include
203   DEPEND[bad_dtls_test]=../libcrypto ../libssl
204
205   SOURCE[packettest]=packettest.c
206   INCLUDE[packettest]=../include
207   DEPEND[packettest]=../libcrypto
208
209   SOURCE[asynctest]=asynctest.c
210   INCLUDE[asynctest]=.. ../include
211   DEPEND[asynctest]=../libcrypto
212
213   SOURCE[secmemtest]=secmemtest.c
214   INCLUDE[secmemtest]=../include
215   DEPEND[secmemtest]=../libcrypto
216
217   SOURCE[srptest]=srptest.c
218   INCLUDE[srptest]=../include
219   DEPEND[srptest]=../libcrypto
220
221   SOURCE[memleaktest]=memleaktest.c
222   INCLUDE[memleaktest]=../include
223   DEPEND[memleaktest]=../libcrypto
224
225   SOURCE[dtlsv1listentest]=dtlsv1listentest.c
226   INCLUDE[dtlsv1listentest]=.. ../include
227   DEPEND[dtlsv1listentest]=../libssl
228
229   SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.c
230   INCLUDE[ct_test]=../crypto/include ../include
231   DEPEND[ct_test]=../libcrypto
232
233   SOURCE[threadstest]=threadstest.c
234   INCLUDE[threadstest]=.. ../include
235   DEPEND[threadstest]=../libcrypto
236
237   SOURCE[afalgtest]=afalgtest.c
238   INCLUDE[afalgtest]=.. ../include
239   DEPEND[afalgtest]=../libcrypto
240
241   SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
242   INCLUDE[d2i_test]=.. ../include
243   DEPEND[d2i_test]=../libcrypto
244
245   SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
246   INCLUDE[ssl_test_ctx_test]=.. ../include
247   DEPEND[ssl_test_ctx_test]=../libcrypto
248
249   SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
250   INCLUDE[ssl_test]=.. ../include
251   DEPEND[ssl_test]=../libcrypto ../libssl
252
253   SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.c
254   INCLUDE[cipherlist_test]=.. ../include
255   DEPEND[cipherlist_test]=../libcrypto ../libssl
256
257   INCLUDE[testutil.o]=..
258   INCLUDE[ssl_test_ctx.o]=../include
259   INCLUDE[handshake_helper.o]=../include
260   INCLUDE[ssltestlib.o]=../include
261
262   SOURCE[x509aux]=x509aux.c
263   INCLUDE[x509aux]=../include
264   DEPEND[x509aux]=../libcrypto
265
266   SOURCE[asynciotest]=asynciotest.c ssltestlib.c
267   INCLUDE[asynciotest]=../include
268   DEPEND[asynciotest]=../libcrypto ../libssl
269
270   SOURCE[bioprinttest]=bioprinttest.c
271   INCLUDE[bioprinttest]=../include
272   DEPEND[bioprinttest]=../libcrypto
273
274   SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
275   INCLUDE[sslapitest]=../include
276   DEPEND[sslapitest]=../libcrypto ../libssl
277
278   SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
279   INCLUDE[dtlstest]=../include .
280   DEPEND[dtlstest]=../libcrypto ../libssl
281
282   SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c
283   INCLUDE[sslcorrupttest]=../include .
284   DEPEND[sslcorrupttest]=../libcrypto ../libssl
285
286   SOURCE[bio_enc_test]=bio_enc_test.c
287   INCLUDE[bio_enc_test]=../include
288   DEPEND[bio_enc_test]=../libcrypto
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=wpackettest cipher_overhead_test
305     SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
306     INCLUDE[wpackettest]=../include
307     DEPEND[wpackettest]=../libcrypto ../libssl
308
309     SOURCE[cipher_overhead_test]=cipher_overhead_test.c
310     INCLUDE[cipher_overhead_test]=.. ../include
311     DEPEND[cipher_overhead_test]=../libcrypto ../libssl
312   ENDIF
313
314   # Internal test programs.  These are essentially a collection of internal
315   # test routines.  Some of them need to reach internal symbols that aren't
316   # available through the shared library (at least on Linux, Solaris, Windows
317   # and VMS, where the exported symbols are those listed in util/*.num), these
318   # programs are forcebly linked with the static libraries, where all symbols
319   # are always available.  This excludes linking these programs natively on
320   # Windows when building shared libraries, since the static libraries share
321   # names with the DLL import libraries.
322   IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
323     PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test
324     IF[{- !$disabled{poly1305} -}]
325       PROGRAMS_NO_INST=poly1305_internal_test
326     ENDIF
327
328     SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
329     INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
330     DEPEND[poly1305_internal_test]=../libcrypto.a
331
332     SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
333     INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
334     DEPEND[asn1_internal_test]=../libcrypto.a
335
336     SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
337     INCLUDE[modes_internal_test]=.. ../include
338     DEPEND[modes_internal_test]=../libcrypto.a
339
340     SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
341     INCLUDE[x509_internal_test]=.. ../include
342     DEPEND[x509_internal_test]=../libcrypto.a
343   ENDIF
344
345   IF[{- !$disabled{mdc2} -}]
346     PROGRAMS_NO_INST=mdc2_internal_test
347   ENDIF
348
349   SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
350   INCLUDE[mdc2_internal_test]=.. ../include
351   DEPEND[mdc2_internal_test]=../libcrypto
352
353   # We disable this test completely in a shared build because it deliberately
354   # redefines some internal libssl symbols. This doesn't work in a non-shared
355   # build
356   IF[{- !$disabled{shared} -}]
357     PROGRAMS_NO_INST=tls13secretstest
358     SOURCE[tls13secretstest]=tls13secretstest.c testutil.c
359     SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
360     INCLUDE[tls13secretstest]=.. ../include
361     DEPEND[tls13secretstest]=../libcrypto ../libssl
362   ENDIF
363 ENDIF
364
365 {-
366    use File::Spec::Functions;
367    use File::Basename;
368    use if $^O ne "VMS", 'File::Glob' => qw/glob/;
369
370    my @nogo_headers = ( "asn1_mac.h",
371                         "__decc_include_prologue.h",
372                         "__decc_include_epilogue.h" );
373    my @headerfiles = glob catfile($sourcedir,
374                                   updir(), "include", "openssl", "*.h");
375
376    foreach my $headerfile (@headerfiles) {
377        my $name = basename($headerfile, ".h");
378        next if $disabled{$name};
379        next if grep { $_ eq lc("$name.h") } @nogo_headers;
380        $OUT .= <<"_____";
381
382   PROGRAMS_NO_INST=buildtest_$name
383   GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
384   SOURCE[buildtest_$name]=buildtest_$name.c
385   INCLUDE[buildtest_$name]=../include
386   DEPEND[buildtest_$name]=../libssl ../libcrypto
387 _____
388    }
389 -}