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