266c3c36c52e3ab0e0c473edb57a7918e99e9553
[openssl.git] / test / build.info
1 IF[{- !$disabled{tests} -}]
2   PROGRAMS_NO_INST=\
3           aborttest \
4           sanitytest bntest \
5           ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
6           md2test md4test md5test \
7           hmactest wp_test \
8           rc2test rc4test rc5test \
9           destest sha1test sha256t sha512t \
10           mdc2test rmdtest \
11           randtest dhtest enginetest casttest \
12           bftest ssltest_old dsatest exptest rsa_test \
13           evp_test evp_extra_test igetest v3nametest v3ext \
14           danetest heartbeat_test p5_crpt2_test bad_dtls_test \
15           constant_time_test verify_extra_test clienthellotest \
16           packettest asynctest secmemtest srptest memleaktest \
17           dtlsv1listentest ct_test threadstest afalgtest d2i_test \
18           ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
19           bioprinttest sslapitest dtlstest bio_enc_test
20
21   SOURCE[aborttest]=aborttest.c
22   INCLUDE[aborttest]=../include
23   DEPEND[aborttest]=../libcrypto
24
25   SOURCE[sanitytest]=sanitytest.c
26   INCLUDE[sanitytest]=../include
27   DEPEND[sanitytest]=../libcrypto
28
29   SOURCE[bntest]=bntest.c
30   INCLUDE[bntest]=.. ../crypto/include ../include
31   DEPEND[bntest]=../libcrypto
32
33   SOURCE[ectest]=ectest.c
34   INCLUDE[ectest]=../include
35   DEPEND[ectest]=../libcrypto
36
37   SOURCE[ecdsatest]=ecdsatest.c
38   INCLUDE[ecdsatest]=../include
39   DEPEND[ecdsatest]=../libcrypto
40
41   SOURCE[ecdhtest]=ecdhtest.c
42   INCLUDE[ecdhtest]=../include
43   DEPEND[ecdhtest]=../libcrypto
44
45   SOURCE[gmdifftest]=gmdifftest.c
46   INCLUDE[gmdifftest]=../include
47   DEPEND[gmdifftest]=../libcrypto
48
49   SOURCE[pbelutest]=pbelutest.c
50   INCLUDE[pbelutest]=../include
51   DEPEND[pbelutest]=../libcrypto
52
53   SOURCE[ideatest]=ideatest.c
54   INCLUDE[ideatest]=../include
55   DEPEND[ideatest]=../libcrypto
56
57   SOURCE[md2test]=md2test.c
58   INCLUDE[md2test]=../include
59   DEPEND[md2test]=../libcrypto
60
61   SOURCE[md4test]=md4test.c
62   INCLUDE[md4test]=../include
63   DEPEND[md4test]=../libcrypto
64
65   SOURCE[md5test]=md5test.c
66   INCLUDE[md5test]=../include
67   DEPEND[md5test]=../libcrypto
68
69   SOURCE[hmactest]=hmactest.c
70   INCLUDE[hmactest]=../include
71   DEPEND[hmactest]=../libcrypto
72
73   SOURCE[wp_test]=wp_test.c
74   INCLUDE[wp_test]=../include
75   DEPEND[wp_test]=../libcrypto
76
77   SOURCE[rc2test]=rc2test.c
78   INCLUDE[rc2test]=../include
79   DEPEND[rc2test]=../libcrypto
80
81   SOURCE[rc4test]=rc4test.c
82   INCLUDE[rc4test]=../include
83   DEPEND[rc4test]=../libcrypto
84
85   SOURCE[rc5test]=rc5test.c
86   INCLUDE[rc5test]=../include
87   DEPEND[rc5test]=../libcrypto
88
89   SOURCE[destest]=destest.c
90   INCLUDE[destest]=../include
91   DEPEND[destest]=../libcrypto
92
93   SOURCE[sha1test]=sha1test.c
94   INCLUDE[sha1test]=../include
95   DEPEND[sha1test]=../libcrypto
96
97   SOURCE[sha256t]=sha256t.c
98   INCLUDE[sha256t]=../include
99   DEPEND[sha256t]=../libcrypto
100
101   SOURCE[sha512t]=sha512t.c
102   INCLUDE[sha512t]=../include
103   DEPEND[sha512t]=../libcrypto
104
105   SOURCE[mdc2test]=mdc2test.c
106   INCLUDE[mdc2test]=../include
107   DEPEND[mdc2test]=../libcrypto
108
109   SOURCE[rmdtest]=rmdtest.c
110   INCLUDE[rmdtest]=../include
111   DEPEND[rmdtest]=../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[v3ext]=v3ext.c
166   INCLUDE[v3ext]=../include
167   DEPEND[v3ext]=../libcrypto
168
169   SOURCE[danetest]=danetest.c
170   INCLUDE[danetest]=../include
171   DEPEND[danetest]=../libcrypto ../libssl
172
173   SOURCE[heartbeat_test]=heartbeat_test.c testutil.c
174   INCLUDE[heartbeat_test]=.. ../include
175   DEPEND[heartbeat_test]=../libcrypto ../libssl
176
177   SOURCE[p5_crpt2_test]=p5_crpt2_test.c
178   INCLUDE[p5_crpt2_test]=../include
179   DEPEND[p5_crpt2_test]=../libcrypto
180
181   SOURCE[constant_time_test]=constant_time_test.c
182   INCLUDE[constant_time_test]=.. ../include
183   DEPEND[constant_time_test]=../libcrypto
184
185   SOURCE[verify_extra_test]=verify_extra_test.c
186   INCLUDE[verify_extra_test]=../include
187   DEPEND[verify_extra_test]=../libcrypto
188
189   SOURCE[clienthellotest]=clienthellotest.c
190   INCLUDE[clienthellotest]=../include
191   DEPEND[clienthellotest]=../libcrypto ../libssl
192
193   SOURCE[bad_dtls_test]=bad_dtls_test.c
194   INCLUDE[bad_dtls_test]=../include
195   DEPEND[bad_dtls_test]=../libcrypto ../libssl
196
197   SOURCE[packettest]=packettest.c
198   INCLUDE[packettest]=../include
199   DEPEND[packettest]=../libcrypto
200
201   SOURCE[asynctest]=asynctest.c
202   INCLUDE[asynctest]=.. ../include
203   DEPEND[asynctest]=../libcrypto
204
205   SOURCE[secmemtest]=secmemtest.c
206   INCLUDE[secmemtest]=../include
207   DEPEND[secmemtest]=../libcrypto
208
209   SOURCE[srptest]=srptest.c
210   INCLUDE[srptest]=../include
211   DEPEND[srptest]=../libcrypto
212
213   SOURCE[memleaktest]=memleaktest.c
214   INCLUDE[memleaktest]=../include
215   DEPEND[memleaktest]=../libcrypto
216
217   SOURCE[dtlsv1listentest]=dtlsv1listentest.c
218   INCLUDE[dtlsv1listentest]=.. ../include
219   DEPEND[dtlsv1listentest]=../libssl
220
221   SOURCE[ct_test]=ct_test.c testutil.c
222   INCLUDE[ct_test]=../crypto/include ../include
223   DEPEND[ct_test]=../libcrypto
224
225   SOURCE[threadstest]=threadstest.c
226   INCLUDE[threadstest]=.. ../include
227   DEPEND[threadstest]=../libcrypto
228
229   SOURCE[afalgtest]=afalgtest.c
230   INCLUDE[afalgtest]=.. ../include
231   DEPEND[afalgtest]=../libcrypto
232
233   SOURCE[d2i_test]=d2i_test.c testutil.c
234   INCLUDE[d2i_test]=.. ../include
235   DEPEND[d2i_test]=../libcrypto
236
237   SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c
238   INCLUDE[ssl_test_ctx_test]=.. ../include
239   DEPEND[ssl_test_ctx_test]=../libcrypto
240
241   SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c
242   INCLUDE[ssl_test]=.. ../include
243   DEPEND[ssl_test]=../libcrypto ../libssl
244
245   SOURCE[cipherlist_test]=cipherlist_test.c testutil.c
246   INCLUDE[cipherlist_test]=.. ../include
247   DEPEND[cipherlist_test]=../libcrypto ../libssl
248
249   INCLUDE[testutil.o]=..
250   INCLUDE[ssl_test_ctx.o]=../include
251   INCLUDE[handshake_helper.o]=../include
252   INCLUDE[ssltestlib.o]=../include
253
254   SOURCE[x509aux]=x509aux.c
255   INCLUDE[x509aux]=../include
256   DEPEND[x509aux]=../libcrypto
257
258   SOURCE[asynciotest]=asynciotest.c ssltestlib.c
259   INCLUDE[asynciotest]=../include
260   DEPEND[asynciotest]=../libcrypto ../libssl
261
262   SOURCE[bioprinttest]=bioprinttest.c
263   INCLUDE[bioprinttest]=../include
264   DEPEND[bioprinttest]=../libcrypto
265
266   SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c
267   INCLUDE[sslapitest]=../include
268   DEPEND[sslapitest]=../libcrypto ../libssl
269
270   SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c
271   INCLUDE[dtlstest]=../include .
272   DEPEND[dtlstest]=../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   IF[{- !$disabled{psk} -}]
279     PROGRAMS_NO_INST=dtls_mtu_test
280     SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
281     INCLUDE[dtls_mtu_test]=.. ../include
282     DEPEND[dtls_mtu_test]=../libcrypto ../libssl
283   ENDIF
284
285   IF[{- !$disabled{shared} -}]
286     PROGRAMS_NO_INST=shlibloadtest
287     SOURCE[shlibloadtest]=shlibloadtest.c
288     INCLUDE[shlibloadtest]=../include
289   ENDIF
290
291   IF[{- $disabled{shared} -}]
292     PROGRAMS_NO_INST=wpackettest cipher_overhead_test
293     SOURCE[wpackettest]=wpackettest.c testutil.c
294     INCLUDE[wpackettest]=../include
295     DEPEND[wpackettest]=../libcrypto ../libssl
296
297     SOURCE[cipher_overhead_test]=cipher_overhead_test.c
298     INCLUDE[cipher_overhead_test]=.. ../include
299     DEPEND[cipher_overhead_test]=../libcrypto ../libssl
300   ENDIF
301
302   # Internal test programs.  These are essentially a collection of internal
303   # test routines.  Because they sometimes need to reach internal symbols that
304   # aren't available through the shared library (at least on Linux, Solaris,
305   # Windows and VMS, where the exported symbols are those listed in util/*.num),
306   # these programs may be built on files directly picked from inside crypto/
307   # or ssl/, to test using symbols that exist in those specific files.  These
308   # programs will also be linked with libcrypto / libssl, so we don't pick
309   # out more specific files than necessary.
310   # This might mean we have multiply defined symbols, but since linking is
311   # ordered with object files first and libraries after, the symbols from the
312   # object files will be chosen before those in the libraries.  This is handled
313   # properly by all linkers.
314   # Note that when building with static libraries, none of those extra files
315   # are needed, since all symbols are available anyway, regardless of what's
316   # listed in util/*.num.
317   PROGRAMS_NO_INST=asn1_internal_test
318   IF[{- !$disabled{poly1305} -}]
319     PROGRAMS_NO_INST=poly1305_internal_test
320   ENDIF
321
322   SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c
323   IF[{- !$disabled{shared} -}]
324     SOURCE[poly1305_internal_test]= ../crypto/poly1305/poly1305.c \
325         {- $target{poly1305_asm_src} ? "../crypto/poly1305/".$target{poly1305_asm_src} : "" -} \
326         {- $target{cpuid_asm_src} ? "../crypto/".$target{cpuid_asm_src} : "" -} \
327         ../crypto/cryptlib.c
328   ENDIF
329   INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
330   DEPEND[poly1305_internal_test]=../libcrypto
331
332   SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c
333   IF[{- !$disabled{shared} -}]
334     SOURCE[asn1_internal_test]= ../crypto/asn1/a_strnid.c \
335         ../crypto/rsa/rsa_ameth.c ../crypto/dsa/dsa_ameth.c \
336         ../crypto/dh/dh_ameth.c ../crypto/ec/ec_ameth.c \
337         ../crypto/hmac/hm_ameth.c ../crypto/cmac/cm_ameth.c \
338         ../crypto/ec/ecx_meth.c ../crypto/ec/curve25519.c
339   ENDIF
340   INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
341   DEPEND[asn1_internal_test]=../libcrypto
342 ENDIF
343
344 {-
345    use File::Spec::Functions;
346    use File::Basename;
347    use if $^O ne "VMS", 'File::Glob' => qw/glob/;
348
349    my @nogo_headers = ( "asn1_mac.h",
350                         "__decc_include_prologue.h",
351                         "__decc_include_epilogue.h" );
352    my @headerfiles = glob catfile($sourcedir,
353                                   updir(), "include", "openssl", "*.h");
354
355    foreach my $headerfile (@headerfiles) {
356        my $name = basename($headerfile, ".h");
357        next if $disabled{$name};
358        next if grep { $_ eq lc("$name.h") } @nogo_headers;
359        $OUT .= <<"_____";
360
361   PROGRAMS_NO_INST=buildtest_$name
362   GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
363   SOURCE[buildtest_$name]=buildtest_$name.c
364   INCLUDE[buildtest_$name]=../include
365   DEPEND[buildtest_$name]=../libssl ../libcrypto
366 _____
367    }
368 -}