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