xref: /freebsd/crypto/openssl/test/build.info (revision 2339ead6384e95af83b9aa482a61f645b5931b2e)
1# TODO: use ../apps/libapps.a instead of direct ../apps/lib source.
2# This can't currently be done, because some of its units drag in too many
3# unresolved references that don't apply here.
4# Most of all, ../apps/lib/apps.c needs to be divided in smaller pieces to
5# be useful here.
6#
7# Auxiliary program source (copied from ../apps/build.info)
8IF[{- $config{target} =~ /^(?:VC-|mingw|BC-)/ -}]
9  # It's called 'init', but doesn't have much 'init' in it...
10  $AUXLIBAPPSSRC=../apps/lib/win32_init.c
11ENDIF
12IF[{- $config{target} =~ /^vms-/ -}]
13  $AUXLIBAPPSSRC=../apps/lib/vms_term_sock.c ../apps/lib/vms_decc_argv.c
14ENDIF
15# Program init source, that don't have direct linkage with the rest of the
16# source, and can therefore not be part of a library.
17IF[{- !$disabled{uplink} -}]
18  $INITSRC=../ms/applink.c
19ENDIF
20$LIBAPPSSRC=../apps/lib/opt.c $AUXLIBAPPSSRC
21
22IF[{- !$disabled{tests} -}]
23  LIBS{noinst,has_main}=libtestutil.a
24  SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output.c \
25          testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
26          testutil/format_output.c testutil/load.c testutil/fake_random.c \
27          testutil/test_cleanup.c testutil/main.c testutil/testutil_init.c \
28          testutil/options.c testutil/test_options.c testutil/provider.c \
29          testutil/apps_shims.c testutil/random.c $LIBAPPSSRC
30  INCLUDE[libtestutil.a]=../include ../apps/include ..
31  DEPEND[libtestutil.a]=../libcrypto
32
33  PROGRAMS{noinst}= \
34          confdump \
35          versions \
36          aborttest test_test pkcs12_format_test \
37          sanitytest rsa_complex exdatatest bntest \
38          ecstresstest gmdifftest pbelutest \
39          destest mdc2test sha_test \
40          exptest pbetest localetest evp_pkey_ctx_new_from_name\
41          evp_pkey_provided_test evp_test evp_extra_test evp_extra_test2 \
42          evp_fetch_prov_test evp_libctx_test ossl_store_test \
43          v3nametest v3ext punycode_test evp_byname_test \
44          crltest danetest bad_dtls_test lhash_test sparse_array_test \
45          conf_include_test params_api_test params_conversion_test \
46          constant_time_test verify_extra_test clienthellotest \
47          packettest asynctest secmemtest srptest memleaktest stack_test \
48          dtlsv1listentest ct_test threadstest afalgtest d2i_test \
49          ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
50          bio_callback_test bio_memleak_test bio_core_test param_build_test \
51          bioprinttest sslapitest dtlstest sslcorrupttest \
52          bio_enc_test pkey_meth_test pkey_meth_kdf_test evp_kdf_test uitest \
53          cipherbytes_test threadstest_fips \
54          asn1_encode_test asn1_decode_test asn1_string_table_test asn1_stable_parse_test \
55          x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
56          recordlentest drbgtest rand_status_test sslbuffertest \
57          time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
58          http_test servername_test ocspapitest fatalerrtest tls13ccstest \
59          sysdefaulttest errtest ssl_ctx_test \
60          context_internal_test aesgcmtest params_test evp_pkey_dparams_test \
61          keymgmt_internal_test hexstr_test provider_status_test defltfips_test \
62          bio_readbuffer_test user_property_test pkcs7_test upcallstest \
63          provfetchtest prov_config_test rand_test fips_version_test \
64          nodefltctxtest
65
66  IF[{- !$disabled{'deprecated-3.0'} -}]
67    PROGRAMS{noinst}=enginetest
68  ENDIF
69
70  SOURCE[confdump]=confdump.c
71  INCLUDE[confdump]=../include ../apps/include
72  DEPEND[confdump]=../libcrypto
73
74  SOURCE[versions]=versions.c
75  INCLUDE[versions]=../include ../apps/include
76  DEPEND[versions]=../libcrypto
77
78  SOURCE[aborttest]=aborttest.c
79  INCLUDE[aborttest]=../include ../apps/include
80  DEPEND[aborttest]=../libcrypto
81
82  SOURCE[sanitytest]=sanitytest.c
83  INCLUDE[sanitytest]=../include ../apps/include
84  DEPEND[sanitytest]=../libcrypto libtestutil.a
85
86  SOURCE[rand_test]=rand_test.c
87  INCLUDE[rand_test]=../include ../apps/include
88  DEPEND[rand_test]=../libcrypto libtestutil.a
89
90  SOURCE[rsa_complex]=rsa_complex.c
91  INCLUDE[rsa_complex]=../include ../apps/include
92
93  SOURCE[test_test]=test_test.c
94  INCLUDE[test_test]=../include ../apps/include
95  DEPEND[test_test]=../libcrypto libtestutil.a
96
97  SOURCE[exdatatest]=exdatatest.c
98  INCLUDE[exdatatest]=../include ../apps/include
99  DEPEND[exdatatest]=../libcrypto libtestutil.a
100
101  SOURCE[bntest]=bntest.c
102  INCLUDE[bntest]=../include ../apps/include
103  DEPEND[bntest]=../libcrypto libtestutil.a
104
105  SOURCE[ectest]=ectest.c
106  INCLUDE[ectest]=../include ../apps/include
107  DEPEND[ectest]=../libcrypto.a libtestutil.a
108
109  SOURCE[ecstresstest]=ecstresstest.c
110  INCLUDE[ecstresstest]=../include ../apps/include
111  DEPEND[ecstresstest]=../libcrypto libtestutil.a
112
113  SOURCE[gmdifftest]=gmdifftest.c
114  INCLUDE[gmdifftest]=../include ../apps/include
115  DEPEND[gmdifftest]=../libcrypto libtestutil.a
116
117  SOURCE[pbelutest]=pbelutest.c
118  INCLUDE[pbelutest]=../include ../apps/include
119  DEPEND[pbelutest]=../libcrypto libtestutil.a
120
121  SOURCE[mdc2test]=mdc2test.c
122  INCLUDE[mdc2test]=../include ../apps/include
123  DEPEND[mdc2test]=../libcrypto libtestutil.a
124
125  SOURCE[sha_test]=sha_test.c
126  INCLUDE[sha_test]=../include ../apps/include
127  DEPEND[sha_test]=../libcrypto libtestutil.a
128
129  SOURCE[enginetest]=enginetest.c
130  INCLUDE[enginetest]=../include ../apps/include
131  DEPEND[enginetest]=../libcrypto libtestutil.a
132
133  SOURCE[exptest]=exptest.c
134  INCLUDE[exptest]=../include ../apps/include
135  DEPEND[exptest]=../libcrypto libtestutil.a
136
137  SOURCE[localetest]=localetest.c
138  INCLUDE[localetest]=../include ../apps/include
139  DEPEND[localetest]=../libcrypto libtestutil.a
140
141  SOURCE[evp_pkey_ctx_new_from_name]=evp_pkey_ctx_new_from_name.c
142  INCLUDE[evp_pkey_ctx_new_from_name]=../include ../apps/include
143  DEPEND[evp_pkey_ctx_new_from_name]=../libcrypto
144
145  SOURCE[pbetest]=pbetest.c
146  INCLUDE[pbetest]=../include ../apps/include
147  DEPEND[pbetest]=../libcrypto libtestutil.a
148
149  SOURCE[fatalerrtest]=fatalerrtest.c helpers/ssltestlib.c
150  INCLUDE[fatalerrtest]=../include ../apps/include
151  DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
152
153  SOURCE[tls13ccstest]=tls13ccstest.c helpers/ssltestlib.c
154  INCLUDE[tls13ccstest]=../include ../apps/include
155  DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
156
157  SOURCE[upcallstest]=upcallstest.c
158  INCLUDE[upcallstest]=../include ../apps/include
159  DEPEND[upcallstest]=../libcrypto libtestutil.a
160
161  SOURCE[user_property_test]=user_property_test.c
162  INCLUDE[user_property_test]=../include ../apps/include
163  DEPEND[user_property_test]=../libcrypto libtestutil.a
164
165  SOURCE[evp_test]=evp_test.c
166  INCLUDE[evp_test]=../include ../apps/include
167  DEPEND[evp_test]=../libcrypto libtestutil.a
168  IF[{- $disabled{legacy} || !$target{dso_scheme} -}]
169    DEFINE[evp_test]=NO_LEGACY_MODULE
170  ENDIF
171
172  SOURCE[evp_extra_test]=evp_extra_test.c
173  INCLUDE[evp_extra_test]=../include ../apps/include
174  DEPEND[evp_extra_test]=../libcrypto.a libtestutil.a
175  IF[{- !$disabled{module} && !$disabled{legacy} -}]
176    DEFINE[evp_extra_test]=STATIC_LEGACY
177    SOURCE[evp_extra_test]=../providers/legacyprov.c
178    INCLUDE[evp_extra_test]=../providers/common/include \
179                            ../providers/implementations/include
180    DEPEND[evp_extra_test]=../providers/liblegacy.a \
181                           ../providers/libcommon.a
182  ENDIF
183
184  SOURCE[evp_extra_test2]=evp_extra_test2.c
185  INCLUDE[evp_extra_test2]=../include ../apps/include
186  DEPEND[evp_extra_test2]=../libcrypto libtestutil.a
187
188  SOURCE[evp_libctx_test]=evp_libctx_test.c
189  INCLUDE[evp_libctx_test]=../include ../apps/include
190  DEPEND[evp_libctx_test]=../libcrypto.a libtestutil.a
191
192  SOURCE[evp_fetch_prov_test]=evp_fetch_prov_test.c
193  INCLUDE[evp_fetch_prov_test]=../include ../apps/include
194  DEPEND[evp_fetch_prov_test]=../libcrypto libtestutil.a
195
196  SOURCE[provfetchtest]=provfetchtest.c
197  INCLUDE[provfetchtest]=../include ../apps/include
198  DEPEND[provfetchtest]=../libcrypto.a libtestutil.a
199
200  SOURCE[prov_config_test]=prov_config_test.c
201  INCLUDE[prov_config_test]=../include ../apps/include
202  DEPEND[prov_config_test]=../libcrypto.a libtestutil.a
203
204  SOURCE[evp_pkey_provided_test]=evp_pkey_provided_test.c
205  INCLUDE[evp_pkey_provided_test]=../include ../apps/include
206  DEPEND[evp_pkey_provided_test]=../libcrypto.a libtestutil.a
207
208  IF[{- !$disabled{'acvp-tests'} -}]
209    PROGRAMS{noinst}=acvp_test
210
211    SOURCE[acvp_test]=acvp_test.c
212    INCLUDE[acvp_test]=../include ../apps/include
213    DEPEND[acvp_test]=../libcrypto.a libtestutil.a
214  ENDIF
215
216  SOURCE[ossl_store_test]=ossl_store_test.c
217  INCLUDE[ossl_store_test]=../include ../apps/include
218  DEPEND[ossl_store_test]=../libcrypto.a libtestutil.a
219
220  SOURCE[provider_status_test]=provider_status_test.c
221  INCLUDE[provider_status_test]=../include ../apps/include
222  DEPEND[provider_status_test]=../libcrypto.a libtestutil.a
223
224  SOURCE[nodefltctxtest]=nodefltctxtest.c
225  INCLUDE[nodefltctxtest]=../include ../apps/include
226  DEPEND[nodefltctxtest]=../libcrypto.a libtestutil.a
227
228  IF[{- !$disabled{'deprecated-3.0'} -}]
229    PROGRAMS{noinst}=igetest bftest casttest
230
231    SOURCE[igetest]=igetest.c
232    INCLUDE[igetest]=../include ../apps/include
233    DEPEND[igetest]=../libcrypto libtestutil.a
234
235    SOURCE[bftest]=bftest.c
236    INCLUDE[bftest]=../include ../apps/include
237    DEPEND[bftest]=../libcrypto libtestutil.a
238
239    SOURCE[casttest]=casttest.c
240    INCLUDE[casttest]=../include ../apps/include
241    DEPEND[casttest]=../libcrypto libtestutil.a
242  ENDIF
243
244  SOURCE[v3nametest]=v3nametest.c
245  INCLUDE[v3nametest]=../include ../apps/include
246  DEPEND[v3nametest]=../libcrypto libtestutil.a
247
248  SOURCE[crltest]=crltest.c
249  INCLUDE[crltest]=../include ../apps/include
250  DEPEND[crltest]=../libcrypto libtestutil.a
251
252  SOURCE[v3ext]=v3ext.c
253  INCLUDE[v3ext]=../include ../apps/include
254  DEPEND[v3ext]=../libcrypto libtestutil.a
255
256  SOURCE[danetest]=danetest.c
257  INCLUDE[danetest]=../include ../apps/include
258  DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
259
260  SOURCE[constant_time_test]=constant_time_test.c
261  INCLUDE[constant_time_test]=../include ../apps/include
262  DEPEND[constant_time_test]=../libcrypto libtestutil.a
263
264  SOURCE[verify_extra_test]=verify_extra_test.c
265  INCLUDE[verify_extra_test]=../include ../apps/include
266  DEPEND[verify_extra_test]=../libcrypto libtestutil.a
267
268  SOURCE[clienthellotest]=clienthellotest.c
269  INCLUDE[clienthellotest]=../include ../apps/include
270  DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
271
272  SOURCE[bad_dtls_test]=bad_dtls_test.c
273  INCLUDE[bad_dtls_test]=../include ../apps/include
274  DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
275
276  SOURCE[packettest]=packettest.c
277  INCLUDE[packettest]=../include ../apps/include
278  DEPEND[packettest]=../libcrypto libtestutil.a
279
280  SOURCE[asynctest]=asynctest.c
281  INCLUDE[asynctest]=../include ../apps/include
282  DEPEND[asynctest]=../libcrypto
283
284  SOURCE[secmemtest]=secmemtest.c
285  INCLUDE[secmemtest]=../include ../apps/include
286  DEPEND[secmemtest]=../libcrypto libtestutil.a
287
288  SOURCE[srptest]=srptest.c
289  INCLUDE[srptest]=../include ../apps/include
290  DEPEND[srptest]=../libcrypto libtestutil.a
291
292  SOURCE[memleaktest]=memleaktest.c
293  INCLUDE[memleaktest]=../include ../apps/include
294  DEPEND[memleaktest]=../libcrypto libtestutil.a
295
296  SOURCE[pkcs12_format_test]=pkcs12_format_test.c helpers/pkcs12.c
297  INCLUDE[pkcs12_format_test]=../include ../apps/include
298  DEPEND[pkcs12_format_test]=../libcrypto libtestutil.a
299
300  SOURCE[pkcs7_test]=pkcs7_test.c
301  INCLUDE[pkcs7_test]=../include ../apps/include
302  DEPEND[pkcs7_test]=../libcrypto libtestutil.a
303
304  SOURCE[punycode_test]=punycode_test.c
305  INCLUDE[punycode_test]=../include ../apps/include
306  DEPEND[punycode_test]=../libcrypto.a libtestutil.a
307
308  SOURCE[evp_byname_test]=evp_byname_test.c
309  INCLUDE[evp_byname_test]=../include ../apps/include
310  DEPEND[evp_byname_test]=../libcrypto libtestutil.a
311
312  SOURCE[stack_test]=stack_test.c
313  INCLUDE[stack_test]=../include ../apps/include
314  DEPEND[stack_test]=../libcrypto libtestutil.a
315
316  SOURCE[lhash_test]=lhash_test.c
317  INCLUDE[lhash_test]=../include ../apps/include
318  DEPEND[lhash_test]=../libcrypto libtestutil.a
319
320  SOURCE[dtlsv1listentest]=dtlsv1listentest.c
321  INCLUDE[dtlsv1listentest]=../include ../apps/include
322  DEPEND[dtlsv1listentest]=../libssl libtestutil.a
323
324  SOURCE[ct_test]=ct_test.c
325  INCLUDE[ct_test]=../include ../apps/include
326  DEPEND[ct_test]=../libcrypto libtestutil.a
327
328  SOURCE[threadstest]=threadstest.c
329  INCLUDE[threadstest]=../include ../apps/include
330  DEPEND[threadstest]=../libcrypto libtestutil.a
331
332  SOURCE[threadstest_fips]=threadstest_fips.c
333  INCLUDE[threadstest_fips]=../include ../apps/include
334  DEPEND[threadstest_fips]=../libcrypto libtestutil.a
335
336  SOURCE[afalgtest]=afalgtest.c
337  INCLUDE[afalgtest]=../include ../apps/include
338  DEPEND[afalgtest]=../libcrypto libtestutil.a
339
340  SOURCE[d2i_test]=d2i_test.c
341  INCLUDE[d2i_test]=../include ../apps/include
342  DEPEND[d2i_test]=../libcrypto libtestutil.a
343
344  SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c helpers/ssl_test_ctx.c
345  INCLUDE[ssl_test_ctx_test]=../include ../apps/include
346  DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
347
348  SOURCE[ssl_test]=ssl_test.c helpers/ssl_test_ctx.c helpers/handshake.c
349  IF[{- !$disabled{'srp'} -}]
350    SOURCE[ssl_test]=helpers/handshake_srp.c
351  ENDIF
352  INCLUDE[ssl_test]=../include ../apps/include
353  DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
354
355  SOURCE[cipherlist_test]=cipherlist_test.c
356  INCLUDE[cipherlist_test]=../include ../apps/include
357  DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
358
359  INCLUDE[helpers/ssl_test_ctx.o]=../include
360  INCLUDE[helpers/handshake.o]=.. ../include
361  INCLUDE[helpers/pkcs12.o]=.. ../include
362  INCLUDE[helpers/ssltestlib.o]=.. ../include
363  INCLUDE[helpers/cmp_testlib.o]=.. ../include ../apps/include
364
365  SOURCE[x509aux]=x509aux.c
366  INCLUDE[x509aux]=../include ../apps/include
367  DEPEND[x509aux]=../libcrypto libtestutil.a
368
369  SOURCE[asynciotest]=asynciotest.c helpers/ssltestlib.c
370  INCLUDE[asynciotest]=../include ../apps/include
371  DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
372
373  SOURCE[bio_callback_test]=bio_callback_test.c
374  INCLUDE[bio_callback_test]=../include ../apps/include
375  DEPEND[bio_callback_test]=../libcrypto libtestutil.a
376
377  SOURCE[bio_readbuffer_test]=bio_readbuffer_test.c
378  INCLUDE[bio_readbuffer_test]=../include ../apps/include
379  DEPEND[bio_readbuffer_test]=../libcrypto libtestutil.a
380
381  SOURCE[bio_memleak_test]=bio_memleak_test.c
382  INCLUDE[bio_memleak_test]=../include ../apps/include
383  DEPEND[bio_memleak_test]=../libcrypto libtestutil.a
384
385  SOURCE[bioprinttest]=bioprinttest.c
386  INCLUDE[bioprinttest]=../include ../apps/include
387  DEPEND[bioprinttest]=../libcrypto libtestutil.a
388
389  SOURCE[bio_core_test]=bio_core_test.c
390  INCLUDE[bio_core_test]=../include ../apps/include
391  DEPEND[bio_core_test]=../libcrypto libtestutil.a
392
393  SOURCE[params_api_test]=params_api_test.c
394  INCLUDE[params_api_test]=../include ../apps/include
395  DEPEND[params_api_test]=../libcrypto libtestutil.a
396
397  SOURCE[params_conversion_test]=params_conversion_test.c
398  INCLUDE[params_conversion_test]=../include ../apps/include
399  DEPEND[params_conversion_test]=../libcrypto libtestutil.a
400
401  SOURCE[param_build_test]=param_build_test.c
402  INCLUDE[param_build_test]=../include ../apps/include
403  DEPEND[param_build_test]=../libcrypto.a libtestutil.a
404
405  SOURCE[sslapitest]=sslapitest.c helpers/ssltestlib.c filterprov.c tls-provider.c
406  INCLUDE[sslapitest]=../include ../apps/include ..
407  DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
408
409  SOURCE[defltfips_test]=defltfips_test.c
410  INCLUDE[defltfips_test]=../include  ../apps/include
411  DEPEND[defltfips_test]=../libcrypto libtestutil.a
412
413  SOURCE[fips_version_test]=fips_version_test.c
414  INCLUDE[fips_version_test]=../include  ../apps/include
415  DEPEND[fips_version_test]=../libcrypto libtestutil.a
416
417  SOURCE[ocspapitest]=ocspapitest.c
418  INCLUDE[ocspapitest]=../include ../apps/include
419  DEPEND[ocspapitest]=../libcrypto libtestutil.a
420
421  IF[{- !$disabled{sock} -}]
422    PROGRAMS{noinst}=http_test
423  ENDIF
424
425  SOURCE[http_test]=http_test.c
426  INCLUDE[http_test]=../include ../apps/include
427  DEPEND[http_test]=../libcrypto libtestutil.a
428
429  SOURCE[dtlstest]=dtlstest.c helpers/ssltestlib.c
430  INCLUDE[dtlstest]=../include ../apps/include
431  DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
432
433  SOURCE[sslcorrupttest]=sslcorrupttest.c helpers/ssltestlib.c
434  INCLUDE[sslcorrupttest]=../include ../apps/include
435  DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
436
437  SOURCE[bio_enc_test]=bio_enc_test.c
438  INCLUDE[bio_enc_test]=../include ../apps/include
439  DEPEND[bio_enc_test]=../libcrypto libtestutil.a
440
441  SOURCE[pkey_meth_test]=pkey_meth_test.c
442  INCLUDE[pkey_meth_test]=../include ../apps/include
443  DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
444
445  SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
446  INCLUDE[pkey_meth_kdf_test]=../include ../apps/include
447  DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
448
449  SOURCE[evp_kdf_test]=evp_kdf_test.c
450  INCLUDE[evp_kdf_test]=../include ../apps/include
451  DEPEND[evp_kdf_test]=../libcrypto libtestutil.a
452
453  SOURCE[evp_pkey_dparams_test]=evp_pkey_dparams_test.c
454  INCLUDE[evp_pkey_dparams_test]=../include ../apps/include
455  DEPEND[evp_pkey_dparams_test]=../libcrypto libtestutil.a
456
457  SOURCE[x509_time_test]=x509_time_test.c
458  INCLUDE[x509_time_test]=../include ../apps/include
459  DEPEND[x509_time_test]=../libcrypto libtestutil.a
460
461  SOURCE[recordlentest]=recordlentest.c helpers/ssltestlib.c
462  INCLUDE[recordlentest]=../include ../apps/include
463  DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
464
465  SOURCE[drbgtest]=drbgtest.c
466  INCLUDE[drbgtest]=../include ../apps/include ../providers/common/include
467  DEPEND[drbgtest]=../libcrypto.a libtestutil.a
468
469  SOURCE[rand_status_test]=rand_status_test.c
470  INCLUDE[rand_status_test]=../include ../apps/include
471  DEPEND[rand_status_test]=../libcrypto libtestutil.a
472
473  SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
474  INCLUDE[x509_dup_cert_test]=../include ../apps/include
475  DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
476
477  SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
478  INCLUDE[x509_check_cert_pkey_test]=../include ../apps/include
479  DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a
480
481  SOURCE[pemtest]=pemtest.c
482  INCLUDE[pemtest]=../include ../apps/include
483  DEPEND[pemtest]=../libcrypto libtestutil.a
484
485  SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
486  INCLUDE[ssl_cert_table_internal_test]=.. ../include ../apps/include
487  DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a
488
489  SOURCE[ciphername_test]=ciphername_test.c
490  INCLUDE[ciphername_test]=../include ../apps/include
491  DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a
492
493  SOURCE[http_test]=http_test.c
494  INCLUDE[http_test]=../include ../apps/include
495  DEPEND[http_test]=../libcrypto libtestutil.a
496
497  SOURCE[servername_test]=servername_test.c helpers/ssltestlib.c
498  INCLUDE[servername_test]=../include ../apps/include
499  DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
500
501  IF[{- !$disabled{cms} -}]
502    PROGRAMS{noinst}=cmsapitest
503    SOURCE[cmsapitest]=cmsapitest.c
504    INCLUDE[cmsapitest]=../include ../apps/include
505    DEPEND[cmsapitest]=../libcrypto libtestutil.a
506  ENDIF
507
508  IF[{- !$disabled{psk} -}]
509    PROGRAMS{noinst}=dtls_mtu_test
510    SOURCE[dtls_mtu_test]=dtls_mtu_test.c helpers/ssltestlib.c
511    INCLUDE[dtls_mtu_test]=.. ../include ../apps/include
512    DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
513  ENDIF
514
515  IF[{- !$disabled{shared} -}]
516    PROGRAMS{noinst}=shlibloadtest
517    SOURCE[shlibloadtest]=shlibloadtest.c simpledynamic.c
518    INCLUDE[shlibloadtest]=../include ../apps/include
519
520    PROGRAMS{noinst}=moduleloadtest
521    SOURCE[moduleloadtest]=moduleloadtest.c simpledynamic.c
522    INCLUDE[moduleloadtest]=../include ../apps/include
523  ENDIF
524
525  # cipher_overhead_test uses internal symbols, so it must be linked with
526  # the static libraries
527  PROGRAMS{noinst}=cipher_overhead_test
528  SOURCE[cipher_overhead_test]=cipher_overhead_test.c
529  INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
530  DEPEND[cipher_overhead_test]=../libcrypto.a ../libssl.a libtestutil.a
531
532  SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c
533  INCLUDE[uitest]=.. ../include ../apps/include
534  DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
535
536  SOURCE[cipherbytes_test]=cipherbytes_test.c
537  INCLUDE[cipherbytes_test]=../include ../apps/include
538  DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
539
540  SOURCE[asn1_encode_test]=asn1_encode_test.c
541  INCLUDE[asn1_encode_test]=../include ../apps/include
542  DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
543
544  SOURCE[asn1_decode_test]=asn1_decode_test.c
545  INCLUDE[asn1_decode_test]=../include ../apps/include
546  DEPEND[asn1_decode_test]=../libcrypto libtestutil.a
547
548  SOURCE[asn1_string_table_test]=asn1_string_table_test.c
549  INCLUDE[asn1_string_table_test]=../include ../apps/include
550  DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
551
552  SOURCE[asn1_stable_parse_test]=asn1_stable_parse_test.c
553  INCLUDE[asn1_stable_parse_test]=../include ../apps/include
554  DEPEND[asn1_stable_parse_test]=../libcrypto libtestutil.a
555
556  SOURCE[time_offset_test]=time_offset_test.c
557  INCLUDE[time_offset_test]=../include ../apps/include
558  DEPEND[time_offset_test]=../libcrypto libtestutil.a
559
560  SOURCE[conf_include_test]=conf_include_test.c
561  INCLUDE[conf_include_test]=../include ../apps/include
562  DEPEND[conf_include_test]=../libcrypto libtestutil.a
563
564  IF[{- !$disabled{cmp} -}]
565    PROGRAMS{noinst}=cmp_asn_test cmp_ctx_test cmp_status_test cmp_hdr_test \
566                     cmp_protect_test cmp_msg_test cmp_vfy_test \
567                     cmp_server_test cmp_client_test
568  ENDIF
569
570  SOURCE[cmp_asn_test]=cmp_asn_test.c helpers/cmp_testlib.c
571  INCLUDE[cmp_asn_test]=.. ../include ../apps/include
572  DEPEND[cmp_asn_test]=../libcrypto.a libtestutil.a
573
574  SOURCE[cmp_ctx_test]=cmp_ctx_test.c helpers/cmp_testlib.c
575  INCLUDE[cmp_ctx_test]=.. ../include ../apps/include
576  DEPEND[cmp_ctx_test]=../libcrypto.a libtestutil.a
577
578  SOURCE[cmp_hdr_test]=cmp_hdr_test.c helpers/cmp_testlib.c
579  INCLUDE[cmp_hdr_test]=.. ../include ../apps/include
580  DEPEND[cmp_hdr_test]=../libcrypto.a libtestutil.a
581
582  SOURCE[cmp_status_test]=cmp_status_test.c helpers/cmp_testlib.c
583  INCLUDE[cmp_status_test]=.. ../include ../apps/include
584  DEPEND[cmp_status_test]=../libcrypto.a libtestutil.a
585
586  SOURCE[cmp_protect_test]=cmp_protect_test.c helpers/cmp_testlib.c
587  INCLUDE[cmp_protect_test]=.. ../include ../apps/include
588  DEPEND[cmp_protect_test]=../libcrypto.a libtestutil.a
589
590  SOURCE[cmp_msg_test]=cmp_msg_test.c helpers/cmp_testlib.c
591  INCLUDE[cmp_msg_test]=.. ../include ../apps/include
592  DEPEND[cmp_msg_test]=../libcrypto.a libtestutil.a
593
594  SOURCE[cmp_vfy_test]=cmp_vfy_test.c helpers/cmp_testlib.c
595  INCLUDE[cmp_vfy_test]=.. ../include ../apps/include
596  DEPEND[cmp_vfy_test]=../libcrypto.a libtestutil.a
597
598  SOURCE[cmp_server_test]=cmp_server_test.c helpers/cmp_testlib.c
599  INCLUDE[cmp_server_test]=.. ../include ../apps/include
600  DEPEND[cmp_server_test]=../libcrypto.a libtestutil.a
601
602  SOURCE[cmp_client_test]=cmp_client_test.c helpers/cmp_testlib.c ../apps/lib/cmp_mock_srv.c
603  INCLUDE[cmp_client_test]=.. ../include ../apps/include
604  DEPEND[cmp_client_test]=../libcrypto.a libtestutil.a
605
606  # Internal test programs.  These are essentially a collection of internal
607  # test routines.  Some of them need to reach internal symbols that aren't
608  # available through the shared library (at least on Linux, Solaris, Windows
609  # and VMS, where the exported symbols are those listed in util/*.num), these
610  # programs are forcibly linked with the static libraries, where all symbols
611  # are always available.
612  IF[1]
613    PROGRAMS{noinst}=asn1_internal_test modes_internal_test x509_internal_test \
614                     tls13encryptiontest wpackettest ctype_internal_test \
615                     rdrand_sanitytest property_test ideatest rsa_mp_test \
616                     rsa_sp800_56b_test bn_internal_test ecdsatest rsa_test \
617                     rc2test rc4test rc5test hmactest ffc_internal_test \
618                     asn1_dsa_internal_test dsatest dsa_no_digest_size_test \
619                     dhtest ssl_old_test
620
621    IF[{- !$disabled{poly1305} -}]
622      PROGRAMS{noinst}=poly1305_internal_test
623    ENDIF
624    IF[{- !$disabled{chacha} -}]
625      PROGRAMS{noinst}=chacha_internal_test
626    ENDIF
627    IF[{- !$disabled{siphash} -}]
628      PROGRAMS{noinst}=siphash_internal_test
629    ENDIF
630    IF[{- !$disabled{sm2} -}]
631      PROGRAMS{noinst}=sm2_internal_test
632    ENDIF
633    IF[{- !$disabled{sm3} -}]
634      PROGRAMS{noinst}=sm3_internal_test
635    ENDIF
636    IF[{- !$disabled{sm4} -}]
637      PROGRAMS{noinst}=sm4_internal_test
638    ENDIF
639    IF[{- !$disabled{ec} -}]
640      PROGRAMS{noinst}=ectest ec_internal_test curve448_internal_test
641    ENDIF
642    IF[{- !$disabled{cmac} -}]
643      PROGRAMS{noinst}=cmactest
644    ENDIF
645
646    SOURCE[poly1305_internal_test]=poly1305_internal_test.c
647    INCLUDE[poly1305_internal_test]=.. ../include ../apps/include
648    DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
649
650    SOURCE[chacha_internal_test]=chacha_internal_test.c
651    INCLUDE[chacha_internal_test]=.. ../include ../apps/include
652    DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
653
654    SOURCE[asn1_internal_test]=asn1_internal_test.c
655    INCLUDE[asn1_internal_test]=.. ../include ../apps/include
656    DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
657
658    SOURCE[modes_internal_test]=modes_internal_test.c
659    INCLUDE[modes_internal_test]=.. ../include ../apps/include
660    DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
661
662    SOURCE[x509_internal_test]=x509_internal_test.c
663    INCLUDE[x509_internal_test]=.. ../include ../apps/include
664    DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
665
666    SOURCE[rsa_test]=rsa_test.c
667    INCLUDE[rsa_test]=../include ../apps/include
668    DEPEND[rsa_test]=../libcrypto.a libtestutil.a
669
670    SOURCE[rsa_mp_test]=rsa_mp_test.c
671    INCLUDE[rsa_mp_test]=../include ../apps/include
672    DEPEND[rsa_mp_test]=../libcrypto.a libtestutil.a
673
674    SOURCE[ecdsatest]=ecdsatest.c
675    INCLUDE[ecdsatest]=../include ../apps/include
676    DEPEND[ecdsatest]=../libcrypto.a libtestutil.a
677
678    SOURCE[dsatest]=dsatest.c
679    INCLUDE[dsatest]=../include ../apps/include
680    DEPEND[dsatest]=../libcrypto.a libtestutil.a
681
682    SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c
683    INCLUDE[dsa_no_digest_size_test]=../include ../apps/include
684    DEPEND[dsa_no_digest_size_test]=../libcrypto.a libtestutil.a
685
686    SOURCE[tls13encryptiontest]=tls13encryptiontest.c
687    INCLUDE[tls13encryptiontest]=.. ../include ../apps/include
688    DEPEND[tls13encryptiontest]=../libcrypto.a ../libssl.a libtestutil.a
689
690    SOURCE[ideatest]=ideatest.c
691    INCLUDE[ideatest]=../include ../apps/include
692    DEPEND[ideatest]=../libcrypto.a libtestutil.a
693
694    SOURCE[wpackettest]=wpackettest.c
695    INCLUDE[wpackettest]=../include ../apps/include
696    DEPEND[wpackettest]=../libcrypto.a ../libssl.a libtestutil.a
697
698    SOURCE[property_test]=property_test.c
699    INCLUDE[property_test]=.. ../include ../apps/include
700    DEPEND[property_test]=../libcrypto.a libtestutil.a
701
702    SOURCE[ctype_internal_test]=ctype_internal_test.c
703    INCLUDE[ctype_internal_test]=.. ../include ../apps/include
704    DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
705
706    SOURCE[sparse_array_test]=sparse_array_test.c
707    INCLUDE[sparse_array_test]=../include ../apps/include
708    DEPEND[sparse_array_test]=../libcrypto.a libtestutil.a
709
710    SOURCE[dhtest]=dhtest.c
711    INCLUDE[dhtest]=../include ../apps/include
712    DEPEND[dhtest]=../libcrypto.a libtestutil.a
713
714    SOURCE[hmactest]=hmactest.c
715    INCLUDE[hmactest]=../include ../apps/include
716    DEPEND[hmactest]=../libcrypto.a libtestutil.a
717
718    IF[{- !$disabled{cmac} -}]
719      SOURCE[cmactest]=cmactest.c
720      INCLUDE[cmactest]=../include ../apps/include
721      DEPEND[cmactest]=../libcrypto.a libtestutil.a
722    ENDIF
723
724    SOURCE[siphash_internal_test]=siphash_internal_test.c
725    INCLUDE[siphash_internal_test]=.. ../include ../apps/include
726    DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
727
728    SOURCE[sm2_internal_test]=sm2_internal_test.c
729    INCLUDE[sm2_internal_test]=../include ../apps/include
730    DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a
731
732    SOURCE[sm3_internal_test]=sm3_internal_test.c
733    INCLUDE[sm3_internal_test]=../include ../apps/include
734    DEPEND[sm3_internal_test]=../libcrypto.a libtestutil.a
735
736    SOURCE[sm4_internal_test]=sm4_internal_test.c
737    INCLUDE[sm4_internal_test]=.. ../include ../apps/include
738    DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
739
740    SOURCE[destest]=destest.c
741    INCLUDE[destest]=../include ../apps/include
742    DEPEND[destest]=../libcrypto.a libtestutil.a
743
744    SOURCE[rc2test]=rc2test.c
745    INCLUDE[rc2test]=../include ../apps/include
746    DEPEND[rc2test]=../libcrypto.a libtestutil.a
747
748    SOURCE[rc4test]=rc4test.c
749    INCLUDE[rc4test]=../include ../apps/include
750    DEPEND[rc4test]=../libcrypto.a libtestutil.a
751
752    SOURCE[rc5test]=rc5test.c
753    INCLUDE[rc5test]=../include ../apps/include
754    DEPEND[rc5test]=../libcrypto.a libtestutil.a
755
756    SOURCE[ec_internal_test]=ec_internal_test.c $INITSRC
757    INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include
758    DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a
759
760    SOURCE[curve448_internal_test]=curve448_internal_test.c
761    INCLUDE[curve448_internal_test]=.. ../include ../apps/include ../crypto/ec/curve448
762    DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
763
764    SOURCE[rc4test]=rc4test.c
765    INCLUDE[rc4test]=../include ../apps/include
766    DEPEND[rc4test]=../libcrypto.a libtestutil.a
767
768    SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c
769    INCLUDE[rdrand_sanitytest]=../include ../apps/include
770    DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a
771
772    SOURCE[rsa_sp800_56b_test]=rsa_sp800_56b_test.c
773    INCLUDE[rsa_sp800_56b_test]=.. ../include ../crypto/rsa ../apps/include
774    DEPEND[rsa_sp800_56b_test]=../libcrypto.a libtestutil.a
775
776    SOURCE[bn_internal_test]=bn_internal_test.c
777    INCLUDE[bn_internal_test]=.. ../include ../crypto/bn ../apps/include
778    DEPEND[bn_internal_test]=../libcrypto.a libtestutil.a
779
780    SOURCE[asn1_dsa_internal_test]=asn1_dsa_internal_test.c
781    INCLUDE[asn1_dsa_internal_test]=.. ../include ../apps/include
782    DEPEND[asn1_dsa_internal_test]=../libcrypto.a libtestutil.a
783
784    SOURCE[keymgmt_internal_test]=keymgmt_internal_test.c
785    INCLUDE[keymgmt_internal_test]=.. ../include ../apps/include
786    DEPEND[keymgmt_internal_test]=../libcrypto.a libtestutil.a
787
788    SOURCE[ffc_internal_test]=ffc_internal_test.c
789    INCLUDE[ffc_internal_test]=.. ../include ../apps/include
790    DEPEND[ffc_internal_test]=../libcrypto.a libtestutil.a
791
792    IF[{- !$disabled{mdc2} -}]
793      PROGRAMS{noinst}=mdc2_internal_test
794    ENDIF
795
796    SOURCE[mdc2_internal_test]=mdc2_internal_test.c
797    INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
798    DEPEND[mdc2_internal_test]=../libcrypto.a libtestutil.a
799
800    SOURCE[ssl_old_test]=ssl_old_test.c helpers/predefined_dhparams.c
801    INCLUDE[ssl_old_test]=.. ../include ../apps/include
802    DEPEND[ssl_old_test]=../libcrypto.a ../libssl.a libtestutil.a
803
804    PROGRAMS{noinst}=ext_internal_test
805    SOURCE[ext_internal_test]=ext_internal_test.c
806    INCLUDE[ext_internal_test]=.. ../include ../apps/include
807    DEPEND[ext_internal_test]=../libcrypto.a ../libssl.a libtestutil.a
808
809    PROGRAMS{noinst}=algorithmid_test
810    SOURCE[algorithmid_test]=algorithmid_test.c
811    INCLUDE[algorithmid_test]=../include ../apps/include
812    DEPEND[algorithmid_test]=../libcrypto.a libtestutil.a
813  ENDIF
814
815  PROGRAMS{noinst}=asn1_time_test
816  SOURCE[asn1_time_test]=asn1_time_test.c
817  INCLUDE[asn1_time_test]=../include ../apps/include
818  DEPEND[asn1_time_test]=../libcrypto libtestutil.a
819
820  # We disable this test completely in a shared build because it deliberately
821  # redefines some internal libssl symbols. This doesn't work in a non-shared
822  # build
823  IF[{- !$disabled{shared} -}]
824    PROGRAMS{noinst}=tls13secretstest
825    SOURCE[tls13secretstest]=tls13secretstest.c
826    DEFINE[tls13secretstest]=OPENSSL_NO_KTLS
827    SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../crypto/packet.c
828    INCLUDE[tls13secretstest]=.. ../include ../apps/include
829    DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
830  ENDIF
831
832  SOURCE[sslbuffertest]=sslbuffertest.c helpers/ssltestlib.c
833  INCLUDE[sslbuffertest]=../include ../apps/include
834  DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
835
836  SOURCE[sysdefaulttest]=sysdefaulttest.c
837  INCLUDE[sysdefaulttest]=../include ../apps/include
838  DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a
839
840  SOURCE[errtest]=errtest.c
841  INCLUDE[errtest]=../include ../apps/include
842  DEPEND[errtest]=../libcrypto libtestutil.a
843
844  SOURCE[aesgcmtest]=aesgcmtest.c
845  INCLUDE[aesgcmtest]=../include ../apps/include ..
846  DEPEND[aesgcmtest]=../libcrypto libtestutil.a
847
848  PROGRAMS{noinst}=context_internal_test
849  SOURCE[context_internal_test]=context_internal_test.c
850  INCLUDE[context_internal_test]=.. ../include ../apps/include
851  DEPEND[context_internal_test]=../libcrypto.a libtestutil.a
852
853  PROGRAMS{noinst}=provider_internal_test
854  DEFINE[provider_internal_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
855  SOURCE[provider_internal_test]=provider_internal_test.c p_test.c
856  INCLUDE[provider_internal_test]=../include ../apps/include ..
857  DEPEND[provider_internal_test]=../libcrypto.a libtestutil.a
858  PROGRAMS{noinst}=provider_test
859  DEFINE[provider_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
860  SOURCE[provider_test]=provider_test.c p_test.c
861  INCLUDE[provider_test]=../include ../apps/include ..
862  DEPEND[provider_test]=../libcrypto.a libtestutil.a
863  IF[{- !$disabled{module} -}]
864    MODULES{noinst}=p_test
865    SOURCE[p_test]=p_test.c
866    INCLUDE[p_test]=../include ..
867    IF[{- defined $target{shared_defflag} -}]
868      SOURCE[p_test]=p_test.ld
869      GENERATE[p_test.ld]=../util/providers.num
870    ENDIF
871    MODULES{noinst}=p_minimal
872    SOURCE[p_minimal]=p_minimal.c
873    INCLUDE[p_minimal]=../include ..
874    IF[{- defined $target{shared_defflag} -}]
875      SOURCE[p_minimal]=p_minimal.ld
876      GENERATE[p_minimal.ld]=../util/providers.num
877    ENDIF
878  ENDIF
879  IF[{- $disabled{module} || !$target{dso_scheme} -}]
880    DEFINE[provider_test]=NO_PROVIDER_MODULE
881    DEFINE[prov_config_test]=NO_PROVIDER_MODULE
882    DEFINE[provider_internal_test]=NO_PROVIDER_MODULE
883  ENDIF
884  DEPEND[]=provider_internal_test.cnf
885  GENERATE[provider_internal_test.cnf]=provider_internal_test.cnf.in
886
887  PROGRAMS{noinst}=provider_fallback_test
888  SOURCE[provider_fallback_test]=provider_fallback_test.c
889  INCLUDE[provider_fallback_test]=../include ../apps/include
890  DEPEND[provider_fallback_test]=../libcrypto libtestutil.a
891
892  PROGRAMS{noinst}=provider_pkey_test
893  SOURCE[provider_pkey_test]=provider_pkey_test.c fake_rsaprov.c
894  INCLUDE[provider_pkey_test]=../include ../apps/include
895  DEPEND[provider_pkey_test]=../libcrypto libtestutil.a
896
897  PROGRAMS{noinst}=params_test
898  SOURCE[params_test]=params_test.c
899  INCLUDE[params_test]=.. ../include ../apps/include
900  DEPEND[params_test]=../libcrypto.a libtestutil.a
901
902  PROGRAMS{noinst}=hexstr_test
903  SOURCE[hexstr_test]=hexstr_test.c
904  INCLUDE[hexstr_test]=.. ../include ../apps/include
905  DEPEND[hexstr_test]=../libcrypto.a libtestutil.a
906
907  PROGRAMS{noinst}=trace_api_test
908  SOURCE[trace_api_test]=trace_api_test.c
909  INCLUDE[trace_api_test]=.. ../include ../apps/include
910  DEPEND[trace_api_test]=../libcrypto.a libtestutil.a
911
912  PROGRAMS{noinst}=endecode_test
913  SOURCE[endecode_test]=endecode_test.c helpers/predefined_dhparams.c
914  INCLUDE[endecode_test]=.. ../include ../apps/include
915  DEPEND[endecode_test]=../libcrypto.a libtestutil.a
916
917  IF[{- !$disabled{'deprecated-3.0'} -}]
918    PROGRAMS{noinst}=endecoder_legacy_test
919    SOURCE[endecoder_legacy_test]=endecoder_legacy_test.c
920    INCLUDE[endecoder_legacy_test]=.. ../include ../apps/include
921    DEPEND[endecoder_legacy_test]=../libcrypto.a libtestutil.a
922  ENDIF
923
924  PROGRAMS{noinst}=namemap_internal_test
925  SOURCE[namemap_internal_test]=namemap_internal_test.c
926  INCLUDE[namemap_internal_test]=.. ../include ../apps/include
927  DEPEND[namemap_internal_test]=../libcrypto.a libtestutil.a
928
929  PROGRAMS{noinst}=bio_prefix_text
930  SOURCE[bio_prefix_text]=bio_prefix_text.c
931  INCLUDE[bio_prefix_text]=.. ../include ../apps/include
932  DEPEND[bio_prefix_text]=../libcrypto libtestutil.a
933
934  IF[{- !$disabled{'deprecated-3.0'} -}]
935    PROGRAMS{noinst}=pem_read_depr_test
936    SOURCE[pem_read_depr_test]=pem_read_depr_test.c
937    INCLUDE[pem_read_depr_test]=../include ../apps/include
938    DEPEND[pem_read_depr_test]=../libcrypto libtestutil.a
939  ENDIF
940ENDIF
941
942  SOURCE[ssl_ctx_test]=ssl_ctx_test.c
943  INCLUDE[ssl_ctx_test]=../include ../apps/include
944  DEPEND[ssl_ctx_test]=../libcrypto ../libssl libtestutil.a
945
946{-
947   use File::Spec::Functions;
948   use File::Basename;
949   use OpenSSL::Glob;
950
951   my @nogo_headers = ( "asn1_mac.h",
952                        "opensslconf.h",
953                        "__decc_include_prologue.h",
954                        "__decc_include_epilogue.h" );
955   my @nogo_headers_re = ( qr/.*err\.h/ );
956   my @headerfiles = glob catfile($sourcedir,
957                                  updir(), "include", "openssl", "*.h");
958
959   foreach my $headerfile (@headerfiles) {
960       my $name = basename($headerfile, ".h");
961       next if $disabled{$name};
962       next if grep { $_ eq lc("$name.h") } @nogo_headers;
963       next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
964       $OUT .= <<"_____";
965
966  PROGRAMS{noinst}=buildtest_c_$name
967  SOURCE[buildtest_c_$name]=buildtest_$name.c
968  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
969  INCLUDE[buildtest_c_$name]=../include
970  DEPEND[buildtest_c_$name]=../libssl ../libcrypto
971_____
972       $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"};
973
974  PROGRAMS{noinst}=buildtest_cc_$name
975  SOURCE[buildtest_cc_$name]=buildtest_$name.cc
976  GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name
977  INCLUDE[buildtest_cc_$name]=../include
978  DEPEND[buildtest_cc_$name]=../libssl ../libcrypto
979_____
980   }
981-}
982