d17a4b087ba785d199d55ffd56159d4bae0fbecd
[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 -}
10 IF[{- !$disabled{tests} -}]
11   LIBS_NO_INST=libtestutil.a
12   SOURCE[libtestutil.a]=testutil/basic_output.c testutil/driver.c \
13           testutil/tests.c testutil/test_main.c testutil/main.c \
14           {- rebase_files("../apps", $target{apps_aux_src}) -}
15   INCLUDE[libtestutil.a]=../include
16   DEPEND[libtestutil.a]=../libcrypto
17
18   # Special hack for descrip.mms to include the MAIN object module
19   # explicitely.  This will only be done if there isn't a MAIN in the
20   # program's object modules already.
21   BEGINRAW[descrip.mms]
22 INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN
23   ENDRAW[descrip.mms]
24
25   PROGRAMS_NO_INST=\
26           aborttest test_test \
27           sanitytest exdatatest bntest \
28           ectest ecdsatest gmdifftest pbelutest ideatest \
29           md2test \
30           hmactest \
31           rc2test rc4test rc5test \
32           destest sha1test sha256t sha512t \
33           mdc2test \
34           randtest dhtest enginetest casttest \
35           bftest ssltest_old dsatest exptest rsa_test \
36           evp_test evp_extra_test igetest v3nametest v3ext \
37           crltest danetest bad_dtls_test lhash_test \
38           constant_time_test verify_extra_test clienthellotest \
39           packettest asynctest secmemtest srptest memleaktest stack_test \
40           dtlsv1listentest ct_test threadstest afalgtest d2i_test \
41           ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
42           bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
43           pkey_meth_test uitest cipherbytes_test asn1_encode_test \
44           x509_time_test x509_dup_cert_test recordlentest
45
46   SOURCE[aborttest]=aborttest.c
47   INCLUDE[aborttest]=../include
48   DEPEND[aborttest]=../libcrypto
49
50   SOURCE[sanitytest]=sanitytest.c testutil.c test_main.c
51   INCLUDE[sanitytest]=../include
52   DEPEND[sanitytest]=../libcrypto
53
54   SOURCE[test_test]=test_test.c testutil.c test_main.c
55   INCLUDE[test_test]=.. ../include
56   DEPEND[test_test]=../libcrypto
57
58   SOURCE[exdatatest]=exdatatest.c testutil.c test_main.c
59   INCLUDE[exdatatest]=../include
60   DEPEND[exdatatest]=../libcrypto
61
62   SOURCE[bntest]=bntest.c testutil.c test_main_custom.c
63   INCLUDE[bntest]=.. ../crypto/include ../include
64   DEPEND[bntest]=../libcrypto
65
66   SOURCE[ectest]=ectest.c
67   INCLUDE[ectest]=.. ../include
68   DEPEND[ectest]=../libcrypto
69
70   SOURCE[ecdsatest]=ecdsatest.c testutil.c test_main.c
71   INCLUDE[ecdsatest]=../include
72   DEPEND[ecdsatest]=../libcrypto
73
74   SOURCE[gmdifftest]=gmdifftest.c testutil.c test_main.c
75   INCLUDE[gmdifftest]=../include
76   DEPEND[gmdifftest]=../libcrypto
77
78   SOURCE[pbelutest]=pbelutest.c testutil.c test_main.c
79   INCLUDE[pbelutest]=../include
80   DEPEND[pbelutest]=../libcrypto
81
82   SOURCE[ideatest]=ideatest.c testutil.c test_main.c
83   INCLUDE[ideatest]=../include
84   DEPEND[ideatest]=../libcrypto
85
86   SOURCE[md2test]=md2test.c testutil.c test_main.c
87   INCLUDE[md2test]=../include
88   DEPEND[md2test]=../libcrypto
89
90   SOURCE[hmactest]=hmactest.c testutil.c test_main.c
91   INCLUDE[hmactest]=../include
92   DEPEND[hmactest]=../libcrypto
93
94   SOURCE[rc2test]=rc2test.c testutil.c test_main.c
95   INCLUDE[rc2test]=../include
96   DEPEND[rc2test]=../libcrypto
97
98   SOURCE[rc4test]=rc4test.c testutil.c test_main.c
99   INCLUDE[rc4test]=../include
100   DEPEND[rc4test]=../libcrypto
101
102   SOURCE[rc5test]=rc5test.c testutil.c test_main.c
103   INCLUDE[rc5test]=../include
104   DEPEND[rc5test]=../libcrypto
105
106   SOURCE[destest]=destest.c testutil.c test_main.c
107   INCLUDE[destest]=../include
108   DEPEND[destest]=../libcrypto
109
110   SOURCE[sha1test]=sha1test.c testutil.c test_main.c
111   INCLUDE[sha1test]=../include
112   DEPEND[sha1test]=../libcrypto
113
114   SOURCE[sha256t]=sha256t.c testutil.c test_main.c
115   INCLUDE[sha256t]=../include
116   DEPEND[sha256t]=../libcrypto
117
118   SOURCE[sha512t]=sha512t.c testutil.c test_main.c
119   INCLUDE[sha512t]=../include
120   DEPEND[sha512t]=../libcrypto
121
122   SOURCE[mdc2test]=mdc2test.c testutil.c test_main.c
123   INCLUDE[mdc2test]=../include
124   DEPEND[mdc2test]=../libcrypto
125
126   SOURCE[randtest]=randtest.c testutil.c test_main.c
127   INCLUDE[randtest]=../include
128   DEPEND[randtest]=../libcrypto
129
130   SOURCE[dhtest]=dhtest.c testutil.c test_main.c
131   INCLUDE[dhtest]=.. ../include
132   DEPEND[dhtest]=../libcrypto
133
134   SOURCE[enginetest]=enginetest.c testutil.c test_main.c
135   INCLUDE[enginetest]=../include
136   DEPEND[enginetest]=../libcrypto
137
138   SOURCE[casttest]=casttest.c testutil.c test_main.c
139   INCLUDE[casttest]=.. ../include
140   DEPEND[casttest]=../libcrypto
141
142   SOURCE[bftest]=bftest.c testutil.c test_main_custom.c
143   INCLUDE[bftest]=../include
144   DEPEND[bftest]=../libcrypto
145
146   SOURCE[ssltest_old]=ssltest_old.c
147   INCLUDE[ssltest_old]=.. ../include
148   DEPEND[ssltest_old]=../libcrypto ../libssl
149
150   SOURCE[dsatest]=dsatest.c testutil.c test_main.c
151   INCLUDE[dsatest]=.. ../include
152   DEPEND[dsatest]=../libcrypto
153
154   SOURCE[exptest]=exptest.c
155   INCLUDE[exptest]=../include
156   DEPEND[exptest]=../libcrypto
157
158   SOURCE[rsa_test]=rsa_test.c testutil.c test_main.c
159   INCLUDE[rsa_test]=.. ../include
160   DEPEND[rsa_test]=../libcrypto
161
162   SOURCE[evp_test]=evp_test.c
163   INCLUDE[evp_test]=../include
164   DEPEND[evp_test]=../libcrypto
165
166   SOURCE[evp_extra_test]=evp_extra_test.c testutil.c test_main.c
167   INCLUDE[evp_extra_test]=../include
168   DEPEND[evp_extra_test]=../libcrypto
169
170   SOURCE[igetest]=igetest.c
171   INCLUDE[igetest]=.. ../include
172   DEPEND[igetest]=../libcrypto
173
174   SOURCE[v3nametest]=v3nametest.c testutil.c test_main.c
175   INCLUDE[v3nametest]=.. ../include
176   DEPEND[v3nametest]=../libcrypto
177
178   SOURCE[crltest]=crltest.c testutil.c test_main.c
179   INCLUDE[crltest]=../include
180   DEPEND[crltest]=../libcrypto
181
182   SOURCE[v3ext]=v3ext.c testutil.c test_main_custom.c
183   INCLUDE[v3ext]=../include
184   DEPEND[v3ext]=../libcrypto
185
186   SOURCE[danetest]=danetest.c
187   INCLUDE[danetest]=../include
188   DEPEND[danetest]=../libcrypto ../libssl
189
190   SOURCE[constant_time_test]=constant_time_test.c testutil.c test_main.c
191   INCLUDE[constant_time_test]=.. ../include
192   DEPEND[constant_time_test]=../libcrypto
193
194   SOURCE[verify_extra_test]=verify_extra_test.c testutil.c test_main_custom.c
195   INCLUDE[verify_extra_test]=../include
196   DEPEND[verify_extra_test]=../libcrypto
197
198   SOURCE[clienthellotest]=clienthellotest.c testutil.c test_main_custom.c
199   INCLUDE[clienthellotest]=../include
200   DEPEND[clienthellotest]=../libcrypto ../libssl
201
202   SOURCE[bad_dtls_test]=bad_dtls_test.c testutil.c test_main.c
203   INCLUDE[bad_dtls_test]=../include
204   DEPEND[bad_dtls_test]=../libcrypto ../libssl
205
206   SOURCE[packettest]=packettest.c testutil.c test_main.c
207   INCLUDE[packettest]=../include
208   DEPEND[packettest]=../libcrypto
209
210   SOURCE[asynctest]=asynctest.c
211   INCLUDE[asynctest]=.. ../include
212   DEPEND[asynctest]=../libcrypto
213
214   SOURCE[secmemtest]=secmemtest.c testutil.c test_main.c
215   INCLUDE[secmemtest]=../include
216   DEPEND[secmemtest]=../libcrypto
217
218   SOURCE[srptest]=srptest.c testutil.c test_main.c
219   INCLUDE[srptest]=../include
220   DEPEND[srptest]=../libcrypto
221
222   SOURCE[memleaktest]=memleaktest.c testutil.c
223   INCLUDE[memleaktest]=../include
224   DEPEND[memleaktest]=../libcrypto
225
226   SOURCE[stack_test]=stack_test.c testutil.c test_main.c
227   INCLUDE[stack_test]=.. ../include
228   DEPEND[stack_test]=../libcrypto
229
230   SOURCE[lhash_test]=lhash_test.c testutil.c test_main.c
231   INCLUDE[lhash_test]=.. ../include
232   DEPEND[lhash_test]=../libcrypto
233
234   SOURCE[dtlsv1listentest]=dtlsv1listentest.c
235   INCLUDE[dtlsv1listentest]=.. ../include
236   DEPEND[dtlsv1listentest]=../libssl
237
238   SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.c
239   INCLUDE[ct_test]=../crypto/include ../include
240   DEPEND[ct_test]=../libcrypto
241
242   SOURCE[threadstest]=threadstest.c testutil.c test_main.c
243   INCLUDE[threadstest]=.. ../include
244   DEPEND[threadstest]=../libcrypto
245
246   SOURCE[afalgtest]=afalgtest.c testutil.c
247   INCLUDE[afalgtest]=.. ../include
248   DEPEND[afalgtest]=../libcrypto
249
250   SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
251   INCLUDE[d2i_test]=.. ../include
252   DEPEND[d2i_test]=../libcrypto
253
254   SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
255   INCLUDE[ssl_test_ctx_test]=.. ../include
256   DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl
257
258   SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
259   INCLUDE[ssl_test]=.. ../include
260   DEPEND[ssl_test]=../libcrypto ../libssl
261
262   SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.c
263   INCLUDE[cipherlist_test]=.. ../include
264   DEPEND[cipherlist_test]=../libcrypto ../libssl
265
266   INCLUDE[testutil.o]=..
267   INCLUDE[ssl_test_ctx.o]=../include
268   INCLUDE[handshake_helper.o]=../include
269   INCLUDE[ssltestlib.o]=.. ../include
270
271   SOURCE[x509aux]=x509aux.c testutil.c test_main_custom.c
272   INCLUDE[x509aux]=.. ../include
273   DEPEND[x509aux]=../libcrypto
274
275   SOURCE[asynciotest]=asynciotest.c ssltestlib.c testutil.c test_main_custom.c
276   INCLUDE[asynciotest]=../include
277   DEPEND[asynciotest]=../libcrypto ../libssl
278
279   SOURCE[bioprinttest]=bioprinttest.c testutil.c test_main_custom.c
280   INCLUDE[bioprinttest]=../ ../include
281   DEPEND[bioprinttest]=../libcrypto
282
283   SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
284   INCLUDE[sslapitest]=../include ..
285   DEPEND[sslapitest]=../libcrypto ../libssl
286
287   SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
288   INCLUDE[dtlstest]=../include .
289   DEPEND[dtlstest]=../libcrypto ../libssl
290
291   SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c test_main_custom.c
292   INCLUDE[sslcorrupttest]=../include .
293   DEPEND[sslcorrupttest]=../libcrypto ../libssl
294
295   SOURCE[bio_enc_test]=bio_enc_test.c testutil.c test_main.c
296   INCLUDE[bio_enc_test]=../include
297   DEPEND[bio_enc_test]=../libcrypto
298
299   SOURCE[pkey_meth_test]=pkey_meth_test.c testutil.c test_main.c
300   INCLUDE[pkey_meth_test]=../include
301   DEPEND[pkey_meth_test]=../libcrypto
302
303   SOURCE[x509_time_test]=x509_time_test.c testutil.c test_main.c
304   INCLUDE[x509_time_test]=.. ../include
305   DEPEND[x509_time_test]=../libcrypto
306
307   SOURCE[recordlentest]=recordlentest.c ssltestlib.c testutil.c test_main_custom.c
308   INCLUDE[recordlentest]=../include .
309   DEPEND[recordlentest]=../libcrypto ../libssl
310
311   SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c testutil.c test_main_custom.c
312   INCLUDE[x509_dup_cert_test]=../include
313   DEPEND[x509_dup_cert_test]=../libcrypto
314
315   IF[{- !$disabled{psk} -}]
316     PROGRAMS_NO_INST=dtls_mtu_test
317     SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
318     INCLUDE[dtls_mtu_test]=.. ../include
319     DEPEND[dtls_mtu_test]=../libcrypto ../libssl
320   ENDIF
321
322   IF[{- !$disabled{shared} -}]
323     PROGRAMS_NO_INST=shlibloadtest
324     SOURCE[shlibloadtest]=shlibloadtest.c
325     INCLUDE[shlibloadtest]=../include
326   ENDIF
327
328   IF[{- $disabled{shared} -}]
329     PROGRAMS_NO_INST=cipher_overhead_test
330     SOURCE[cipher_overhead_test]=cipher_overhead_test.c testutil.c test_main.c
331     INCLUDE[cipher_overhead_test]=.. ../include
332     DEPEND[cipher_overhead_test]=../libcrypto ../libssl
333   ENDIF
334
335   SOURCE[uitest]=uitest.c testutil.c test_main_custom.c \
336     ../apps/apps.c ../apps/opt.c {- $apps_extra -}
337   INCLUDE[uitest]=.. ../include
338   DEPEND[uitest]=../libcrypto ../libssl
339
340   SOURCE[cipherbytes_test]=cipherbytes_test.c testutil.c test_main_custom.c
341   INCLUDE[cipherbytes_test]=.. ../include
342   DEPEND[cipherbytes_test]=../libcrypto ../libssl
343
344   SOURCE[asn1_encode_test]=asn1_encode_test.c testutil.c test_main.c
345   INCLUDE[asn1_encode_test]=../include
346   DEPEND[asn1_encode_test]=../libcrypto
347
348   # Internal test programs.  These are essentially a collection of internal
349   # test routines.  Some of them need to reach internal symbols that aren't
350   # available through the shared library (at least on Linux, Solaris, Windows
351   # and VMS, where the exported symbols are those listed in util/*.num), these
352   # programs are forcibly linked with the static libraries, where all symbols
353   # are always available.  This excludes linking these programs natively on
354   # Windows when building shared libraries, since the static libraries share
355   # names with the DLL import libraries.
356   IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
357     PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
358                      tls13encryptiontest wpackettest
359     IF[{- !$disabled{poly1305} -}]
360       PROGRAMS_NO_INST=poly1305_internal_test
361     ENDIF
362     IF[{- !$disabled{chacha} -}]
363       PROGRAMS_NO_INST=chacha_internal_test
364     ENDIF
365     IF[{- !$disabled{siphash} -}]
366       PROGRAMS_NO_INST=siphash_internal_test
367     ENDIF
368
369     SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
370     INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
371     DEPEND[poly1305_internal_test]=../libcrypto.a
372
373     SOURCE[chacha_internal_test]=chacha_internal_test.c testutil.c test_main.c
374     INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
375     DEPEND[chacha_internal_test]=../libcrypto.a
376
377     SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
378     INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
379     DEPEND[asn1_internal_test]=../libcrypto.a
380
381     SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
382     INCLUDE[modes_internal_test]=.. ../include
383     DEPEND[modes_internal_test]=../libcrypto.a
384
385     SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
386     INCLUDE[x509_internal_test]=.. ../include
387     DEPEND[x509_internal_test]=../libcrypto.a
388
389     SOURCE[tls13encryptiontest]=tls13encryptiontest.c testutil.c test_main.c
390     INCLUDE[tls13encryptiontest]=.. ../include
391     DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a
392
393     SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
394     INCLUDE[wpackettest]=../include
395     DEPEND[wpackettest]=../libcrypto ../libssl.a
396
397     SOURCE[siphash_internal_test]=siphash_internal_test.c testutil.c test_main_custom.c
398     INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
399     DEPEND[siphash_internal_test]=../libcrypto.a
400   ENDIF
401
402   IF[{- !$disabled{mdc2} -}]
403     PROGRAMS_NO_INST=mdc2_internal_test
404   ENDIF
405
406   SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
407   INCLUDE[mdc2_internal_test]=.. ../include
408   DEPEND[mdc2_internal_test]=../libcrypto
409
410   # We disable this test completely in a shared build because it deliberately
411   # redefines some internal libssl symbols. This doesn't work in a non-shared
412   # build
413   IF[{- !$disabled{shared} -}]
414     PROGRAMS_NO_INST=tls13secretstest
415     SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
416     SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
417     INCLUDE[tls13secretstest]=.. ../include
418     DEPEND[tls13secretstest]=../libcrypto ../libssl
419   ENDIF
420 ENDIF
421
422 {-
423    use File::Spec::Functions;
424    use File::Basename;
425    use if $^O ne "VMS", 'File::Glob' => qw/glob/;
426
427    my @nogo_headers = ( "asn1_mac.h",
428                         "__decc_include_prologue.h",
429                         "__decc_include_epilogue.h" );
430    my @headerfiles = glob catfile($sourcedir,
431                                   updir(), "include", "openssl", "*.h");
432
433    foreach my $headerfile (@headerfiles) {
434        my $name = basename($headerfile, ".h");
435        next if $disabled{$name};
436        next if grep { $_ eq lc("$name.h") } @nogo_headers;
437        $OUT .= <<"_____";
438
439   PROGRAMS_NO_INST=buildtest_$name
440   GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
441   SOURCE[buildtest_$name]=buildtest_$name.c
442   INCLUDE[buildtest_$name]=../include
443   DEPEND[buildtest_$name]=../libssl ../libcrypto
444 _____
445    }
446 -}