11419caf0526aace6b257921d3715594127f4e2e
[openssl.git] / test / build.info
1 SUBDIRS=ossl_shim
2
3 # TODO: use ../apps/libapps.a instead of direct ../apps/lib source.
4 # This can't currently be done, because some of its units drag in too many
5 # unresolved references that don't apply here.
6 # Most of all, ../apps/lib/apps.c needs to be divided in smaller pieces to
7 # be useful here.
8 #
9 # Auxiliary program source (copied from ../apps/build.info)
10 IF[{- $config{target} =~ /^(?:VC-|mingw)/ -}]
11   # It's called 'init', but doesn't have much 'init' in it...
12   $AUXLIBAPPSSRC=../apps/lib/win32_init.c
13 ENDIF
14 IF[{- $config{target} =~ /^vms-/ -}]
15   $AUXLIBAPPSSRC=../apps/lib/vms_term_sock.c ../apps/lib/vms_decc_argv.c
16 ENDIF
17 $LIBAPPSSRC=../apps/lib/opt.c $AUXLIBAPPSSRC
18
19 IF[{- !$disabled{tests} -}]
20   LIBS{noinst,has_main}=libtestutil.a
21   SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output_helpers.c \
22           testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
23           testutil/format_output.c testutil/tap_bio.c \
24           testutil/test_cleanup.c testutil/main.c testutil/testutil_init.c \
25           testutil/options.c testutil/test_options.c \
26           testutil/apps_mem.c testutil/random.c $LIBAPPSSRC
27   INCLUDE[libtestutil.a]=../include ../apps/include ..
28   DEPEND[libtestutil.a]=../libcrypto
29
30   PROGRAMS{noinst}=\
31           confdump \
32           versions \
33           aborttest test_test \
34           sanitytest rsa_complex exdatatest bntest \
35           ectest ecstresstest ecdsatest gmdifftest pbelutest ideatest \
36           md2test \
37           hmactest \
38           rc2test rc4test rc5test \
39           destest mdc2test \
40           dhtest enginetest casttest \
41           bftest ssltest_old dsatest dsa_no_digest_size_test exptest rsa_test \
42           evp_pkey_provided_test evp_test evp_extra_test evp_fetch_prov_test \
43           v3nametest v3ext \
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 param_build_test \
51           bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
52           pkey_meth_test pkey_meth_kdf_test evp_kdf_test uitest \
53           cipherbytes_test \
54           asn1_encode_test asn1_decode_test asn1_string_table_test \
55           x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
56           recordlentest drbgtest sslbuffertest \
57           recordlentest drbgtest drbg_cavs_test sslbuffertest \
58           time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
59           servername_test ocspapitest rsa_mp_test fatalerrtest tls13ccstest \
60           sysdefaulttest errtest ssl_ctx_test gosttest \
61           context_internal_test aesgcmtest params_test evp_pkey_dparams_test \
62           keymgmt_internal_test
63
64   SOURCE[confdump]=confdump.c
65   INCLUDE[confdump]=../include ../apps/include
66   DEPEND[confdump]=../libcrypto
67
68   SOURCE[versions]=versions.c
69   INCLUDE[versions]=../include ../apps/include
70   DEPEND[versions]=../libcrypto
71
72   SOURCE[aborttest]=aborttest.c
73   INCLUDE[aborttest]=../include ../apps/include
74   DEPEND[aborttest]=../libcrypto
75
76   SOURCE[sanitytest]=sanitytest.c
77   INCLUDE[sanitytest]=../include ../apps/include
78   DEPEND[sanitytest]=../libcrypto libtestutil.a
79
80   SOURCE[rsa_complex]=rsa_complex.c
81   INCLUDE[rsa_complex]=../include ../apps/include
82
83   SOURCE[test_test]=test_test.c
84   INCLUDE[test_test]=../include ../apps/include
85   DEPEND[test_test]=../libcrypto libtestutil.a
86
87   SOURCE[exdatatest]=exdatatest.c
88   INCLUDE[exdatatest]=../include ../apps/include
89   DEPEND[exdatatest]=../libcrypto libtestutil.a
90
91   SOURCE[bntest]=bntest.c
92   INCLUDE[bntest]=../include ../apps/include
93   DEPEND[bntest]=../libcrypto libtestutil.a
94
95   SOURCE[ectest]=ectest.c
96   INCLUDE[ectest]=../include ../apps/include
97   DEPEND[ectest]=../libcrypto libtestutil.a
98
99   SOURCE[ecstresstest]=ecstresstest.c
100   INCLUDE[ecstresstest]=../include ../apps/include
101   DEPEND[ecstresstest]=../libcrypto libtestutil.a
102
103   SOURCE[ecdsatest]=ecdsatest.c
104   INCLUDE[ecdsatest]=../include ../apps/include
105   DEPEND[ecdsatest]=../libcrypto libtestutil.a
106
107   SOURCE[gmdifftest]=gmdifftest.c
108   INCLUDE[gmdifftest]=../include ../apps/include
109   DEPEND[gmdifftest]=../libcrypto libtestutil.a
110
111   SOURCE[pbelutest]=pbelutest.c
112   INCLUDE[pbelutest]=../include ../apps/include
113   DEPEND[pbelutest]=../libcrypto libtestutil.a
114
115   SOURCE[ideatest]=ideatest.c
116   INCLUDE[ideatest]=../include ../apps/include
117   DEPEND[ideatest]=../libcrypto libtestutil.a
118
119   SOURCE[md2test]=md2test.c
120   INCLUDE[md2test]=../include ../apps/include
121   DEPEND[md2test]=../libcrypto libtestutil.a
122
123   SOURCE[hmactest]=hmactest.c
124   INCLUDE[hmactest]=../include ../apps/include
125   DEPEND[hmactest]=../libcrypto libtestutil.a
126
127   SOURCE[rc2test]=rc2test.c
128   INCLUDE[rc2test]=../include ../apps/include
129   DEPEND[rc2test]=../libcrypto libtestutil.a
130
131   SOURCE[rc4test]=rc4test.c
132   INCLUDE[rc4test]=../include ../apps/include
133   DEPEND[rc4test]=../libcrypto libtestutil.a
134
135   SOURCE[rc5test]=rc5test.c
136   INCLUDE[rc5test]=../include ../apps/include
137   DEPEND[rc5test]=../libcrypto libtestutil.a
138
139   SOURCE[destest]=destest.c
140   INCLUDE[destest]=../include ../apps/include
141   DEPEND[destest]=../libcrypto libtestutil.a
142
143   SOURCE[mdc2test]=mdc2test.c
144   INCLUDE[mdc2test]=../include ../apps/include
145   DEPEND[mdc2test]=../libcrypto libtestutil.a
146
147   SOURCE[dhtest]=dhtest.c
148   INCLUDE[dhtest]=../include ../apps/include
149   DEPEND[dhtest]=../libcrypto libtestutil.a
150
151   SOURCE[enginetest]=enginetest.c
152   INCLUDE[enginetest]=../include ../apps/include
153   DEPEND[enginetest]=../libcrypto libtestutil.a
154
155   SOURCE[casttest]=casttest.c
156   INCLUDE[casttest]=../include ../apps/include
157   DEPEND[casttest]=../libcrypto libtestutil.a
158
159   SOURCE[bftest]=bftest.c
160   INCLUDE[bftest]=../include ../apps/include
161   DEPEND[bftest]=../libcrypto libtestutil.a
162
163   SOURCE[ssltest_old]=ssltest_old.c
164   INCLUDE[ssltest_old]=.. ../include ../apps/include
165   DEPEND[ssltest_old]=../libcrypto ../libssl
166
167   SOURCE[dsatest]=dsatest.c
168   INCLUDE[dsatest]=../include ../apps/include
169   DEPEND[dsatest]=../libcrypto libtestutil.a
170
171   SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c
172   INCLUDE[dsa_no_digest_size_test]=../include ../apps/include
173   DEPEND[dsa_no_digest_size_test]=../libcrypto libtestutil.a
174
175   SOURCE[exptest]=exptest.c
176   INCLUDE[exptest]=../include ../apps/include
177   DEPEND[exptest]=../libcrypto libtestutil.a
178
179   SOURCE[rsa_test]=rsa_test.c
180   INCLUDE[rsa_test]=../include ../apps/include
181   DEPEND[rsa_test]=../libcrypto libtestutil.a
182
183   SOURCE[rsa_mp_test]=rsa_mp_test.c
184   INCLUDE[rsa_mp_test]=../include ../apps/include
185   DEPEND[rsa_mp_test]=../libcrypto.a libtestutil.a
186
187   SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c
188   INCLUDE[fatalerrtest]=../include ../apps/include
189   DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
190
191   SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c
192   INCLUDE[tls13ccstest]=../include ../apps/include
193   DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
194
195   SOURCE[evp_test]=evp_test.c
196   INCLUDE[evp_test]=../include ../apps/include
197   DEPEND[evp_test]=../libcrypto libtestutil.a
198   IF[{- $disabled{legacy} || !$target{dso_scheme} -}]
199     DEFINE[evp_test]=NO_LEGACY_MODULE
200   ENDIF
201
202   SOURCE[evp_extra_test]=evp_extra_test.c
203   INCLUDE[evp_extra_test]=../include ../apps/include ../crypto/include
204   DEPEND[evp_extra_test]=../libcrypto libtestutil.a
205
206   SOURCE[evp_fetch_prov_test]=evp_fetch_prov_test.c
207   INCLUDE[evp_fetch_prov_test]=../include ../apps/include ../crypto/include
208   DEPEND[evp_fetch_prov_test]=../libcrypto libtestutil.a
209   IF[{- $disabled{fips} || !$target{dso_scheme} -}]
210     DEFINE[evp_extra_test]=NO_FIPS_MODULE
211   ENDIF
212
213   SOURCE[evp_pkey_provided_test]=evp_pkey_provided_test.c
214   INCLUDE[evp_pkey_provided_test]=../include ../apps/include
215   DEPEND[evp_pkey_provided_test]=../libcrypto libtestutil.a
216
217   IF[{- !$disabled{"deprecated"}
218         || (defined $config{"api"} && $config{"api"} < 30000) -}]
219     PROGRAMS{noinst}=igetest
220     SOURCE[igetest]=igetest.c
221     INCLUDE[igetest]=../include ../apps/include
222     DEPEND[igetest]=../libcrypto libtestutil.a
223   ENDIF
224
225   SOURCE[v3nametest]=v3nametest.c
226   INCLUDE[v3nametest]=../include ../apps/include
227   DEPEND[v3nametest]=../libcrypto libtestutil.a
228
229   SOURCE[crltest]=crltest.c
230   INCLUDE[crltest]=../include ../apps/include
231   DEPEND[crltest]=../libcrypto libtestutil.a
232
233   SOURCE[v3ext]=v3ext.c
234   INCLUDE[v3ext]=../include ../apps/include
235   DEPEND[v3ext]=../libcrypto libtestutil.a
236
237   SOURCE[danetest]=danetest.c
238   INCLUDE[danetest]=../include ../apps/include
239   DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
240
241   SOURCE[constant_time_test]=constant_time_test.c
242   INCLUDE[constant_time_test]=../include ../apps/include
243   DEPEND[constant_time_test]=../libcrypto libtestutil.a
244
245   SOURCE[verify_extra_test]=verify_extra_test.c
246   INCLUDE[verify_extra_test]=../include ../apps/include
247   DEPEND[verify_extra_test]=../libcrypto libtestutil.a
248
249   SOURCE[clienthellotest]=clienthellotest.c
250   INCLUDE[clienthellotest]=../include ../apps/include
251   DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
252
253   SOURCE[bad_dtls_test]=bad_dtls_test.c
254   INCLUDE[bad_dtls_test]=../include ../apps/include
255   DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
256
257   SOURCE[packettest]=packettest.c
258   INCLUDE[packettest]=../include ../apps/include
259   DEPEND[packettest]=../libcrypto libtestutil.a
260
261   SOURCE[asynctest]=asynctest.c
262   INCLUDE[asynctest]=../include ../apps/include
263   DEPEND[asynctest]=../libcrypto
264
265   SOURCE[secmemtest]=secmemtest.c
266   INCLUDE[secmemtest]=../include ../apps/include
267   DEPEND[secmemtest]=../libcrypto libtestutil.a
268
269   SOURCE[srptest]=srptest.c
270   INCLUDE[srptest]=../include ../apps/include
271   DEPEND[srptest]=../libcrypto libtestutil.a
272
273   SOURCE[memleaktest]=memleaktest.c
274   INCLUDE[memleaktest]=../include ../apps/include
275   DEPEND[memleaktest]=../libcrypto libtestutil.a
276
277   SOURCE[stack_test]=stack_test.c
278   INCLUDE[stack_test]=../include ../apps/include
279   DEPEND[stack_test]=../libcrypto libtestutil.a
280
281   SOURCE[lhash_test]=lhash_test.c
282   INCLUDE[lhash_test]=../include ../apps/include
283   DEPEND[lhash_test]=../libcrypto libtestutil.a
284
285   SOURCE[dtlsv1listentest]=dtlsv1listentest.c
286   INCLUDE[dtlsv1listentest]=../include ../apps/include
287   DEPEND[dtlsv1listentest]=../libssl libtestutil.a
288
289   SOURCE[ct_test]=ct_test.c
290   INCLUDE[ct_test]=../include ../apps/include
291   DEPEND[ct_test]=../libcrypto libtestutil.a
292
293   SOURCE[threadstest]=threadstest.c
294   INCLUDE[threadstest]=../include ../apps/include
295   DEPEND[threadstest]=../libcrypto libtestutil.a
296
297   SOURCE[afalgtest]=afalgtest.c
298   INCLUDE[afalgtest]=../include ../apps/include
299   DEPEND[afalgtest]=../libcrypto libtestutil.a
300
301   SOURCE[d2i_test]=d2i_test.c
302   INCLUDE[d2i_test]=../include ../apps/include
303   DEPEND[d2i_test]=../libcrypto libtestutil.a
304
305   SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
306   INCLUDE[ssl_test_ctx_test]=../include ../apps/include
307   DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
308
309   SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
310   INCLUDE[ssl_test]=../include ../apps/include
311   DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
312
313   SOURCE[cipherlist_test]=cipherlist_test.c
314   INCLUDE[cipherlist_test]=../include ../apps/include
315   DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
316
317   INCLUDE[ssl_test_ctx.o]=../include
318   INCLUDE[handshake_helper.o]=.. ../include
319   INCLUDE[ssltestlib.o]=.. ../include
320   INCLUDE[cmp_testlib.o]=.. ../include ../apps/include
321
322   SOURCE[x509aux]=x509aux.c
323   INCLUDE[x509aux]=../include ../apps/include
324   DEPEND[x509aux]=../libcrypto libtestutil.a
325
326   SOURCE[asynciotest]=asynciotest.c ssltestlib.c
327   INCLUDE[asynciotest]=../include ../apps/include
328   DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
329
330   SOURCE[bio_callback_test]=bio_callback_test.c
331   INCLUDE[bio_callback_test]=../include ../apps/include
332   DEPEND[bio_callback_test]=../libcrypto libtestutil.a
333
334   SOURCE[bio_memleak_test]=bio_memleak_test.c
335   INCLUDE[bio_memleak_test]=../include ../apps/include
336   DEPEND[bio_memleak_test]=../libcrypto libtestutil.a
337
338   SOURCE[bioprinttest]=bioprinttest.c
339   INCLUDE[bioprinttest]=../include ../apps/include
340   DEPEND[bioprinttest]=../libcrypto libtestutil.a
341
342   SOURCE[params_api_test]=params_api_test.c
343   INCLUDE[params_api_test]=../include ../apps/include
344   DEPEND[params_api_test]=../libcrypto libtestutil.a
345
346   SOURCE[params_conversion_test]=params_conversion_test.c
347   INCLUDE[params_conversion_test]=../include ../apps/include
348   DEPEND[params_conversion_test]=../libcrypto libtestutil.a
349
350   SOURCE[param_build_test]=param_build_test.c
351   INCLUDE[param_build_test]=../include ../apps/include
352   DEPEND[param_build_test]=../libcrypto.a libtestutil.a
353
354   SOURCE[sslapitest]=sslapitest.c ssltestlib.c
355   INCLUDE[sslapitest]=../include ../apps/include ..
356   DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
357
358   SOURCE[ocspapitest]=ocspapitest.c
359   INCLUDE[ocspapitest]=../include ../apps/include
360   DEPEND[ocspapitest]=../libcrypto libtestutil.a
361
362   SOURCE[dtlstest]=dtlstest.c ssltestlib.c
363   INCLUDE[dtlstest]=../include ../apps/include
364   DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
365
366   SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
367   INCLUDE[sslcorrupttest]=../include ../apps/include
368   DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
369
370   SOURCE[bio_enc_test]=bio_enc_test.c
371   INCLUDE[bio_enc_test]=../include ../apps/include
372   DEPEND[bio_enc_test]=../libcrypto libtestutil.a
373
374   SOURCE[pkey_meth_test]=pkey_meth_test.c
375   INCLUDE[pkey_meth_test]=../include ../apps/include
376   DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
377
378   SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
379   INCLUDE[pkey_meth_kdf_test]=../include ../apps/include
380   DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
381
382   SOURCE[evp_kdf_test]=evp_kdf_test.c
383   INCLUDE[evp_kdf_test]=../include ../apps/include
384   DEPEND[evp_kdf_test]=../libcrypto libtestutil.a
385
386   SOURCE[evp_pkey_dparams_test]=evp_pkey_dparams_test.c
387   INCLUDE[evp_pkey_dparams_test]=../include ../apps/include
388   DEPEND[evp_pkey_dparams_test]=../libcrypto libtestutil.a
389
390   SOURCE[x509_time_test]=x509_time_test.c
391   INCLUDE[x509_time_test]=../include ../apps/include
392   DEPEND[x509_time_test]=../libcrypto libtestutil.a
393
394   SOURCE[recordlentest]=recordlentest.c ssltestlib.c
395   INCLUDE[recordlentest]=../include ../apps/include
396   DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
397
398   SOURCE[drbgtest]=drbgtest.c
399   INCLUDE[drbgtest]=../include ../apps/include ../crypto/include
400   DEPEND[drbgtest]=../libcrypto.a libtestutil.a
401
402   SOURCE[drbg_cavs_test]=drbg_cavs_test.c drbg_cavs_data_ctr.c \
403                          drbg_cavs_data_hash.c drbg_cavs_data_hmac.c
404
405   INCLUDE[drbg_cavs_test]=../include ../apps/include . .. ../crypto/include
406   DEPEND[drbg_cavs_test]=../libcrypto libtestutil.a
407
408   SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
409   INCLUDE[x509_dup_cert_test]=../include ../apps/include
410   DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
411
412   SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
413   INCLUDE[x509_check_cert_pkey_test]=../include ../apps/include
414   DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a
415
416   SOURCE[pemtest]=pemtest.c
417   INCLUDE[pemtest]=../include ../apps/include
418   DEPEND[pemtest]=../libcrypto libtestutil.a
419
420   SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
421   INCLUDE[ssl_cert_table_internal_test]=.. ../include ../apps/include
422   DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a
423
424   SOURCE[ciphername_test]=ciphername_test.c
425   INCLUDE[ciphername_test]=../include ../apps/include
426   DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a
427
428   SOURCE[servername_test]=servername_test.c ssltestlib.c
429   INCLUDE[servername_test]=../include ../apps/include
430   DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
431
432   IF[{- !$disabled{cms} -}]
433     PROGRAMS{noinst}=cmsapitest
434     SOURCE[cmsapitest]=cmsapitest.c
435     INCLUDE[cmsapitest]=../include ../apps/include
436     DEPEND[cmsapitest]=../libcrypto libtestutil.a
437   ENDIF
438
439   IF[{- !$disabled{psk} -}]
440     PROGRAMS{noinst}=dtls_mtu_test
441     SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
442     INCLUDE[dtls_mtu_test]=.. ../include ../apps/include
443     DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
444   ENDIF
445
446   IF[{- !$disabled{shared} -}]
447     PROGRAMS{noinst}=shlibloadtest
448     SOURCE[shlibloadtest]=shlibloadtest.c
449     INCLUDE[shlibloadtest]=../include ../apps/include ../crypto/include
450   ENDIF
451
452   # cipher_overhead_test uses internal symbols, so it must be linked with
453   # the static libraries
454   PROGRAMS{noinst}=cipher_overhead_test
455   SOURCE[cipher_overhead_test]=cipher_overhead_test.c
456   INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
457   DEPEND[cipher_overhead_test]=../libcrypto.a ../libssl.a libtestutil.a
458
459   SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c
460   INCLUDE[uitest]=.. ../include ../apps/include
461   DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
462
463   SOURCE[cipherbytes_test]=cipherbytes_test.c
464   INCLUDE[cipherbytes_test]=../include ../apps/include
465   DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
466
467   SOURCE[asn1_encode_test]=asn1_encode_test.c
468   INCLUDE[asn1_encode_test]=../include ../apps/include
469   DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
470
471   SOURCE[asn1_decode_test]=asn1_decode_test.c
472   INCLUDE[asn1_decode_test]=../include ../apps/include
473   DEPEND[asn1_decode_test]=../libcrypto libtestutil.a
474
475   SOURCE[asn1_string_table_test]=asn1_string_table_test.c
476   INCLUDE[asn1_string_table_test]=../include ../apps/include
477   DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
478
479   SOURCE[time_offset_test]=time_offset_test.c
480   INCLUDE[time_offset_test]=../include ../apps/include
481   DEPEND[time_offset_test]=../libcrypto libtestutil.a
482
483   SOURCE[conf_include_test]=conf_include_test.c
484   INCLUDE[conf_include_test]=../include ../apps/include
485   DEPEND[conf_include_test]=../libcrypto libtestutil.a
486
487   IF[{- !$disabled{cmp} -}]
488     PROGRAMS{noinst}=cmp_asn_test cmp_ctx_test cmp_status_test cmp_hdr_test \
489                      cmp_protect_test cmp_msg_test
490   ENDIF
491
492   SOURCE[cmp_asn_test]=cmp_asn_test.c cmp_testlib.c
493   INCLUDE[cmp_asn_test]=.. ../include ../apps/include
494   DEPEND[cmp_asn_test]=../libcrypto.a libtestutil.a
495
496   SOURCE[cmp_ctx_test]=cmp_ctx_test.c cmp_testlib.c
497   INCLUDE[cmp_ctx_test]=.. ../include ../apps/include
498   DEPEND[cmp_ctx_test]=../libcrypto.a libtestutil.a
499
500   SOURCE[cmp_hdr_test]=cmp_hdr_test.c cmp_testlib.c
501   INCLUDE[cmp_hdr_test]=.. ../include ../apps/include
502   DEPEND[cmp_hdr_test]=../libcrypto.a libtestutil.a
503
504   SOURCE[cmp_status_test]=cmp_status_test.c cmp_testlib.c
505   INCLUDE[cmp_status_test]=.. ../include ../apps/include
506   DEPEND[cmp_status_test]=../libcrypto.a libtestutil.a
507
508   SOURCE[cmp_protect_test]=cmp_status_test.c cmp_testlib.c
509   INCLUDE[cmp_protect_test]=.. ../include ../apps/include
510   DEPEND[cmp_protect_test]=../libcrypto.a libtestutil.a
511
512   SOURCE[cmp_msg_test]=cmp_status_test.c cmp_testlib.c
513   INCLUDE[cmp_msg_test]=.. ../include ../apps/include
514   DEPEND[cmp_msg_test]=../libcrypto.a libtestutil.a
515
516   # Internal test programs.  These are essentially a collection of internal
517   # test routines.  Some of them need to reach internal symbols that aren't
518   # available through the shared library (at least on Linux, Solaris, Windows
519   # and VMS, where the exported symbols are those listed in util/*.num), these
520   # programs are forcibly linked with the static libraries, where all symbols
521   # are always available.
522   IF[1]
523     PROGRAMS{noinst}=asn1_internal_test modes_internal_test x509_internal_test \
524                      tls13encryptiontest wpackettest ctype_internal_test \
525                      rdrand_sanitytest property_test \
526                      rsa_sp800_56b_test bn_internal_test \
527                      asn1_dsa_internal_test
528
529     IF[{- !$disabled{poly1305} -}]
530       PROGRAMS{noinst}=poly1305_internal_test
531     ENDIF
532     IF[{- !$disabled{chacha} -}]
533       PROGRAMS{noinst}=chacha_internal_test
534     ENDIF
535     IF[{- !$disabled{siphash} -}]
536       PROGRAMS{noinst}=siphash_internal_test
537     ENDIF
538     IF[{- !$disabled{sm2} -}]
539       PROGRAMS{noinst}=sm2_internal_test
540     ENDIF
541     IF[{- !$disabled{sm4} -}]
542       PROGRAMS{noinst}=sm4_internal_test
543     ENDIF
544     IF[{- !$disabled{ec} -}]
545       PROGRAMS{noinst}=ec_internal_test curve448_internal_test
546     ENDIF
547
548     SOURCE[poly1305_internal_test]=poly1305_internal_test.c
549     INCLUDE[poly1305_internal_test]=.. ../include ../apps/include ../crypto/include
550     DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
551
552     SOURCE[chacha_internal_test]=chacha_internal_test.c
553     INCLUDE[chacha_internal_test]=.. ../include ../apps/include ../crypto/include
554     DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
555
556     SOURCE[asn1_internal_test]=asn1_internal_test.c
557     INCLUDE[asn1_internal_test]=.. ../include ../apps/include ../crypto/include
558     DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
559
560     SOURCE[modes_internal_test]=modes_internal_test.c
561     INCLUDE[modes_internal_test]=.. ../include ../apps/include ../crypto/include
562     DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
563
564     SOURCE[x509_internal_test]=x509_internal_test.c
565     INCLUDE[x509_internal_test]=.. ../include ../apps/include
566     DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
567
568     SOURCE[tls13encryptiontest]=tls13encryptiontest.c
569     INCLUDE[tls13encryptiontest]=.. ../include ../apps/include
570     DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
571
572     SOURCE[wpackettest]=wpackettest.c
573     INCLUDE[wpackettest]=../include ../apps/include
574     DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
575
576     SOURCE[property_test]=property_test.c
577     INCLUDE[property_test]=.. ../include ../apps/include
578     DEPEND[property_test]=../libcrypto.a libtestutil.a
579
580     SOURCE[ctype_internal_test]=ctype_internal_test.c
581     INCLUDE[ctype_internal_test]=.. ../include ../apps/include
582     DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
583
584     SOURCE[sparse_array_test]=sparse_array_test.c
585     INCLUDE[sparse_array_test]=../crypto/include ../include ../apps/include
586     DEPEND[sparse_array_test]=../libcrypto.a libtestutil.a
587
588     SOURCE[siphash_internal_test]=siphash_internal_test.c
589     INCLUDE[siphash_internal_test]=.. ../include ../apps/include ../crypto/include
590     DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
591
592     SOURCE[sm2_internal_test]=sm2_internal_test.c
593     INCLUDE[sm2_internal_test]=../include ../apps/include ../crypto/include
594     DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a
595
596     SOURCE[sm4_internal_test]=sm4_internal_test.c
597     INCLUDE[sm4_internal_test]=.. ../include ../apps/include ../crypto/include
598     DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
599
600     SOURCE[ec_internal_test]=ec_internal_test.c
601     INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include ../crypto/include
602     DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a
603
604     SOURCE[curve448_internal_test]=curve448_internal_test.c
605     INCLUDE[curve448_internal_test]=.. ../include ../apps/include ../crypto/ec/curve448
606     DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
607
608     SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c
609     INCLUDE[rdrand_sanitytest]=../include ../apps/include
610     DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a
611
612     SOURCE[rsa_sp800_56b_test]=rsa_sp800_56b_test.c
613     INCLUDE[rsa_sp800_56b_test]=.. ../include ../crypto/rsa ../apps/include
614     DEPEND[rsa_sp800_56b_test]=../libcrypto.a libtestutil.a
615
616     SOURCE[bn_internal_test]=bn_internal_test.c
617     INCLUDE[bn_internal_test]=.. ../include ../crypto/bn ../apps/include
618     DEPEND[bn_internal_test]=../libcrypto.a libtestutil.a
619
620     SOURCE[asn1_dsa_internal_test]=asn1_dsa_internal_test.c
621     INCLUDE[asn1_dsa_internal_test]=.. ../include ../apps/include ../crypto/include
622     DEPEND[asn1_dsa_internal_test]=../libcrypto.a libtestutil.a
623
624     SOURCE[keymgmt_internal_test]=keymgmt_internal_test.c
625     INCLUDE[keymgmt_internal_test]=.. ../include ../apps/include
626     DEPEND[keymgmt_internal_test]=../libcrypto.a libtestutil.a
627   ENDIF
628
629   IF[{- !$disabled{mdc2} -}]
630     PROGRAMS{noinst}=mdc2_internal_test
631   ENDIF
632
633   SOURCE[mdc2_internal_test]=mdc2_internal_test.c
634   INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
635   DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
636
637   PROGRAMS{noinst}=asn1_time_test
638   SOURCE[asn1_time_test]=asn1_time_test.c
639   INCLUDE[asn1_time_test]=../include ../apps/include
640   DEPEND[asn1_time_test]=../libcrypto libtestutil.a
641
642   # We disable this test completely in a shared build because it deliberately
643   # redefines some internal libssl symbols. This doesn't work in a non-shared
644   # build
645   IF[{- !$disabled{shared} -}]
646     PROGRAMS{noinst}=tls13secretstest
647     SOURCE[tls13secretstest]=tls13secretstest.c
648     SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../crypto/packet.c
649     INCLUDE[tls13secretstest]=.. ../include ../apps/include
650     DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
651   ENDIF
652
653   SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
654   INCLUDE[sslbuffertest]=../include ../apps/include
655   DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
656
657   SOURCE[sysdefaulttest]=sysdefaulttest.c
658   INCLUDE[sysdefaulttest]=../include ../apps/include
659   DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a
660
661   SOURCE[errtest]=errtest.c
662   INCLUDE[errtest]=../include ../apps/include
663   DEPEND[errtest]=../libcrypto libtestutil.a
664
665   SOURCE[gosttest]=gosttest.c ssltestlib.c
666   INCLUDE[gosttest]=../include ../apps/include ..
667   DEPEND[gosttest]=../libcrypto ../libssl libtestutil.a
668
669   SOURCE[aesgcmtest]=aesgcmtest.c
670   INCLUDE[aesgcmtest]=../include ../apps/include ..
671   DEPEND[aesgcmtest]=../libcrypto libtestutil.a
672
673   PROGRAMS{noinst}=context_internal_test
674   SOURCE[context_internal_test]=context_internal_test.c
675   INCLUDE[context_internal_test]=.. ../include ../apps/include
676   DEPEND[context_internal_test]=../libcrypto.a libtestutil.a
677
678   PROGRAMS{noinst}=provider_internal_test
679   DEFINE[provider_internal_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
680   SOURCE[provider_internal_test]=provider_internal_test.c p_test.c
681   INCLUDE[provider_internal_test]=../include ../apps/include
682   DEPEND[provider_internal_test]=../libcrypto.a libtestutil.a
683   PROGRAMS{noinst}=provider_test
684   DEFINE[provider_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
685   SOURCE[provider_test]=provider_test.c p_test.c
686   INCLUDE[provider_test]=../include ../apps/include
687   DEPEND[provider_test]=../libcrypto.a libtestutil.a
688   IF[{- !$disabled{module} -}]
689     MODULES{noinst}=p_test
690     SOURCE[p_test]=p_test.c
691     INCLUDE[p_test]=../include
692     IF[{- defined $target{shared_defflag} -}]
693       SOURCE[p_test]=p_test.ld
694       GENERATE[p_test.ld]=../util/providers.num
695     ENDIF
696   ENDIF
697   IF[{- $disabled{module} || !$target{dso_scheme} -}]
698     DEFINE[provider_test]=NO_PROVIDER_MODULE
699     DEFINE[provider_internal_test]=NO_PROVIDER_MODULE
700   ENDIF
701   DEPEND[]=provider_internal_test.conf
702   GENERATE[provider_internal_test.conf]=provider_internal_test.conf.in
703
704   PROGRAMS{noinst}=params_test
705   SOURCE[params_test]=params_test.c
706   INCLUDE[params_test]=.. ../include ../apps/include
707   DEPEND[params_test]=../libcrypto.a libtestutil.a
708
709   PROGRAMS{noinst}=namemap_internal_test
710   SOURCE[namemap_internal_test]=namemap_internal_test.c
711   INCLUDE[namemap_internal_test]=.. ../include ../apps/include
712   DEPEND[namemap_internal_test]=../libcrypto.a libtestutil.a
713
714   PROGRAMS{noinst}=bio_prefix_text
715   SOURCE[bio_prefix_text]=bio_prefix_text.c $LIBAPPSSRC
716   INCLUDE[bio_prefix_text]=.. ../include ../apps/include
717   DEPEND[bio_prefix_text]=../libcrypto
718 ENDIF
719
720   SOURCE[ssl_ctx_test]=ssl_ctx_test.c
721   INCLUDE[ssl_ctx_test]=../include ../apps/include
722   DEPEND[ssl_ctx_test]=../libcrypto ../libssl libtestutil.a
723
724 {-
725    use File::Spec::Functions;
726    use File::Basename;
727    use OpenSSL::Glob;
728
729    my @nogo_headers = ( "asn1_mac.h",
730                         "opensslconf.h",
731                         "__decc_include_prologue.h",
732                         "__decc_include_epilogue.h" );
733    my @nogo_headers_re = ( qr/.*err\.h/ );
734    my @headerfiles = glob catfile($sourcedir,
735                                   updir(), "include", "openssl", "*.h");
736
737    foreach my $headerfile (@headerfiles) {
738        my $name = basename($headerfile, ".h");
739        next if $disabled{$name};
740        next if grep { $_ eq lc("$name.h") } @nogo_headers;
741        next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
742        $OUT .= <<"_____";
743
744   PROGRAMS{noinst}=buildtest_c_$name
745   SOURCE[buildtest_c_$name]=buildtest_$name.c
746   GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
747   INCLUDE[buildtest_c_$name]=../include
748   DEPEND[buildtest_c_$name]=../libssl ../libcrypto
749 _____
750        $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"};
751
752   PROGRAMS{noinst}=buildtest_cc_$name
753   SOURCE[buildtest_cc_$name]=buildtest_$name.cc
754   GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name
755   INCLUDE[buildtest_cc_$name]=../include
756   DEPEND[buildtest_cc_$name]=../libssl ../libcrypto
757 _____
758    }
759 -}