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