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