837dbba934157bd280a282713127cd3797990671
[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           hmactest \
37           destest mdc2test \
38           dhtest enginetest \
39           ssltest_old dsatest dsa_no_digest_size_test exptest rsa_test \
40           evp_pkey_provided_test evp_test evp_extra_test evp_fetch_prov_test \
41           v3nametest v3ext \
42           crltest danetest bad_dtls_test lhash_test sparse_array_test \
43           conf_include_test params_api_test params_conversion_test \
44           constant_time_test verify_extra_test clienthellotest \
45           packettest asynctest secmemtest srptest memleaktest stack_test \
46           dtlsv1listentest ct_test threadstest afalgtest d2i_test \
47           ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
48           bio_callback_test bio_memleak_test param_build_test \
49           bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
50           pkey_meth_test pkey_meth_kdf_test evp_kdf_test uitest \
51           cipherbytes_test \
52           asn1_encode_test asn1_decode_test asn1_string_table_test \
53           x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
54           recordlentest drbgtest sslbuffertest \
55           recordlentest drbgtest drbg_cavs_test sslbuffertest \
56           time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
57           servername_test ocspapitest rsa_mp_test fatalerrtest tls13ccstest \
58           sysdefaulttest errtest ssl_ctx_test gosttest \
59           context_internal_test aesgcmtest params_test evp_pkey_dparams_test \
60           keymgmt_internal_test
61
62   SOURCE[confdump]=confdump.c
63   INCLUDE[confdump]=../include ../apps/include
64   DEPEND[confdump]=../libcrypto
65
66   SOURCE[versions]=versions.c
67   INCLUDE[versions]=../include ../apps/include
68   DEPEND[versions]=../libcrypto
69
70   SOURCE[aborttest]=aborttest.c
71   INCLUDE[aborttest]=../include ../apps/include
72   DEPEND[aborttest]=../libcrypto
73
74   SOURCE[sanitytest]=sanitytest.c
75   INCLUDE[sanitytest]=../include ../apps/include
76   DEPEND[sanitytest]=../libcrypto libtestutil.a
77
78   SOURCE[rsa_complex]=rsa_complex.c
79   INCLUDE[rsa_complex]=../include ../apps/include
80
81   SOURCE[test_test]=test_test.c
82   INCLUDE[test_test]=../include ../apps/include
83   DEPEND[test_test]=../libcrypto libtestutil.a
84
85   SOURCE[exdatatest]=exdatatest.c
86   INCLUDE[exdatatest]=../include ../apps/include
87   DEPEND[exdatatest]=../libcrypto libtestutil.a
88
89   SOURCE[bntest]=bntest.c
90   INCLUDE[bntest]=../include ../apps/include
91   DEPEND[bntest]=../libcrypto libtestutil.a
92
93   SOURCE[ectest]=ectest.c
94   INCLUDE[ectest]=../include ../apps/include
95   DEPEND[ectest]=../libcrypto libtestutil.a
96
97   SOURCE[ecstresstest]=ecstresstest.c
98   INCLUDE[ecstresstest]=../include ../apps/include
99   DEPEND[ecstresstest]=../libcrypto libtestutil.a
100
101   SOURCE[ecdsatest]=ecdsatest.c
102   INCLUDE[ecdsatest]=../include ../apps/include
103   DEPEND[ecdsatest]=../libcrypto libtestutil.a
104
105   SOURCE[gmdifftest]=gmdifftest.c
106   INCLUDE[gmdifftest]=../include ../apps/include
107   DEPEND[gmdifftest]=../libcrypto libtestutil.a
108
109   SOURCE[pbelutest]=pbelutest.c
110   INCLUDE[pbelutest]=../include ../apps/include
111   DEPEND[pbelutest]=../libcrypto libtestutil.a
112
113   SOURCE[ideatest]=ideatest.c
114   INCLUDE[ideatest]=../include ../apps/include
115   DEPEND[ideatest]=../libcrypto libtestutil.a
116
117   SOURCE[hmactest]=hmactest.c
118   INCLUDE[hmactest]=../include ../apps/include
119   DEPEND[hmactest]=../libcrypto libtestutil.a
120
121   SOURCE[destest]=destest.c
122   INCLUDE[destest]=../include ../apps/include
123   DEPEND[destest]=../libcrypto libtestutil.a
124
125   SOURCE[mdc2test]=mdc2test.c
126   INCLUDE[mdc2test]=../include ../apps/include
127   DEPEND[mdc2test]=../libcrypto libtestutil.a
128
129   SOURCE[dhtest]=dhtest.c
130   INCLUDE[dhtest]=../include ../apps/include
131   DEPEND[dhtest]=../libcrypto libtestutil.a
132
133   SOURCE[enginetest]=enginetest.c
134   INCLUDE[enginetest]=../include ../apps/include
135   DEPEND[enginetest]=../libcrypto libtestutil.a
136
137   SOURCE[ssltest_old]=ssltest_old.c
138   INCLUDE[ssltest_old]=.. ../include ../apps/include
139   DEPEND[ssltest_old]=../libcrypto ../libssl
140
141   SOURCE[dsatest]=dsatest.c
142   INCLUDE[dsatest]=../include ../apps/include
143   DEPEND[dsatest]=../libcrypto libtestutil.a
144
145   SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c
146   INCLUDE[dsa_no_digest_size_test]=../include ../apps/include
147   DEPEND[dsa_no_digest_size_test]=../libcrypto libtestutil.a
148
149   SOURCE[exptest]=exptest.c
150   INCLUDE[exptest]=../include ../apps/include
151   DEPEND[exptest]=../libcrypto libtestutil.a
152
153   SOURCE[rsa_test]=rsa_test.c
154   INCLUDE[rsa_test]=../include ../apps/include
155   DEPEND[rsa_test]=../libcrypto libtestutil.a
156
157   SOURCE[rsa_mp_test]=rsa_mp_test.c
158   INCLUDE[rsa_mp_test]=../include ../apps/include
159   DEPEND[rsa_mp_test]=../libcrypto.a libtestutil.a
160
161   SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c
162   INCLUDE[fatalerrtest]=../include ../apps/include
163   DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
164
165   SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c
166   INCLUDE[tls13ccstest]=../include ../apps/include
167   DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
168
169   SOURCE[evp_test]=evp_test.c
170   INCLUDE[evp_test]=../include ../apps/include
171   DEPEND[evp_test]=../libcrypto libtestutil.a
172   IF[{- $disabled{legacy} || !$target{dso_scheme} -}]
173     DEFINE[evp_test]=NO_LEGACY_MODULE
174   ENDIF
175
176   SOURCE[evp_extra_test]=evp_extra_test.c
177   INCLUDE[evp_extra_test]=../include ../apps/include ../crypto/include
178   DEPEND[evp_extra_test]=../libcrypto libtestutil.a
179
180   SOURCE[evp_fetch_prov_test]=evp_fetch_prov_test.c
181   INCLUDE[evp_fetch_prov_test]=../include ../apps/include ../crypto/include
182   DEPEND[evp_fetch_prov_test]=../libcrypto libtestutil.a
183   IF[{- $disabled{fips} || !$target{dso_scheme} -}]
184     DEFINE[evp_extra_test]=NO_FIPS_MODULE
185   ENDIF
186
187   SOURCE[evp_pkey_provided_test]=evp_pkey_provided_test.c
188   INCLUDE[evp_pkey_provided_test]=../include ../apps/include
189   DEPEND[evp_pkey_provided_test]=../libcrypto libtestutil.a
190
191   IF[{- !$disabled{"deprecated"}
192         || (defined $config{"api"} && $config{"api"} < 30000) -}]
193     PROGRAMS{noinst}=igetest bftest casttest
194
195     SOURCE[igetest]=igetest.c
196     INCLUDE[igetest]=../include ../apps/include
197     DEPEND[igetest]=../libcrypto libtestutil.a
198
199     SOURCE[bftest]=bftest.c
200     INCLUDE[bftest]=../include ../apps/include
201     DEPEND[bftest]=../libcrypto libtestutil.a
202
203     SOURCE[casttest]=casttest.c
204     INCLUDE[casttest]=../include ../apps/include
205     DEPEND[casttest]=../libcrypto libtestutil.a
206   ENDIF
207
208   SOURCE[v3nametest]=v3nametest.c
209   INCLUDE[v3nametest]=../include ../apps/include
210   DEPEND[v3nametest]=../libcrypto libtestutil.a
211
212   SOURCE[crltest]=crltest.c
213   INCLUDE[crltest]=../include ../apps/include
214   DEPEND[crltest]=../libcrypto libtestutil.a
215
216   SOURCE[v3ext]=v3ext.c
217   INCLUDE[v3ext]=../include ../apps/include
218   DEPEND[v3ext]=../libcrypto libtestutil.a
219
220   SOURCE[danetest]=danetest.c
221   INCLUDE[danetest]=../include ../apps/include
222   DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
223
224   SOURCE[constant_time_test]=constant_time_test.c
225   INCLUDE[constant_time_test]=../include ../apps/include
226   DEPEND[constant_time_test]=../libcrypto libtestutil.a
227
228   SOURCE[verify_extra_test]=verify_extra_test.c
229   INCLUDE[verify_extra_test]=../include ../apps/include
230   DEPEND[verify_extra_test]=../libcrypto libtestutil.a
231
232   SOURCE[clienthellotest]=clienthellotest.c
233   INCLUDE[clienthellotest]=../include ../apps/include
234   DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
235
236   SOURCE[bad_dtls_test]=bad_dtls_test.c
237   INCLUDE[bad_dtls_test]=../include ../apps/include
238   DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
239
240   SOURCE[packettest]=packettest.c
241   INCLUDE[packettest]=../include ../apps/include
242   DEPEND[packettest]=../libcrypto libtestutil.a
243
244   SOURCE[asynctest]=asynctest.c
245   INCLUDE[asynctest]=../include ../apps/include
246   DEPEND[asynctest]=../libcrypto
247
248   SOURCE[secmemtest]=secmemtest.c
249   INCLUDE[secmemtest]=../include ../apps/include
250   DEPEND[secmemtest]=../libcrypto libtestutil.a
251
252   SOURCE[srptest]=srptest.c
253   INCLUDE[srptest]=../include ../apps/include
254   DEPEND[srptest]=../libcrypto libtestutil.a
255
256   SOURCE[memleaktest]=memleaktest.c
257   INCLUDE[memleaktest]=../include ../apps/include
258   DEPEND[memleaktest]=../libcrypto libtestutil.a
259
260   SOURCE[stack_test]=stack_test.c
261   INCLUDE[stack_test]=../include ../apps/include
262   DEPEND[stack_test]=../libcrypto libtestutil.a
263
264   SOURCE[lhash_test]=lhash_test.c
265   INCLUDE[lhash_test]=../include ../apps/include
266   DEPEND[lhash_test]=../libcrypto libtestutil.a
267
268   SOURCE[dtlsv1listentest]=dtlsv1listentest.c
269   INCLUDE[dtlsv1listentest]=../include ../apps/include
270   DEPEND[dtlsv1listentest]=../libssl libtestutil.a
271
272   SOURCE[ct_test]=ct_test.c
273   INCLUDE[ct_test]=../include ../apps/include
274   DEPEND[ct_test]=../libcrypto libtestutil.a
275
276   SOURCE[threadstest]=threadstest.c
277   INCLUDE[threadstest]=../include ../apps/include
278   DEPEND[threadstest]=../libcrypto libtestutil.a
279
280   SOURCE[afalgtest]=afalgtest.c
281   INCLUDE[afalgtest]=../include ../apps/include
282   DEPEND[afalgtest]=../libcrypto libtestutil.a
283
284   SOURCE[d2i_test]=d2i_test.c
285   INCLUDE[d2i_test]=../include ../apps/include
286   DEPEND[d2i_test]=../libcrypto libtestutil.a
287
288   SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
289   INCLUDE[ssl_test_ctx_test]=../include ../apps/include
290   DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
291
292   SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
293   INCLUDE[ssl_test]=../include ../apps/include
294   DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
295
296   SOURCE[cipherlist_test]=cipherlist_test.c
297   INCLUDE[cipherlist_test]=../include ../apps/include
298   DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
299
300   INCLUDE[ssl_test_ctx.o]=../include
301   INCLUDE[handshake_helper.o]=.. ../include
302   INCLUDE[ssltestlib.o]=.. ../include
303   INCLUDE[cmp_testlib.o]=.. ../include ../apps/include
304
305   SOURCE[x509aux]=x509aux.c
306   INCLUDE[x509aux]=../include ../apps/include
307   DEPEND[x509aux]=../libcrypto libtestutil.a
308
309   SOURCE[asynciotest]=asynciotest.c ssltestlib.c
310   INCLUDE[asynciotest]=../include ../apps/include
311   DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
312
313   SOURCE[bio_callback_test]=bio_callback_test.c
314   INCLUDE[bio_callback_test]=../include ../apps/include
315   DEPEND[bio_callback_test]=../libcrypto libtestutil.a
316
317   SOURCE[bio_memleak_test]=bio_memleak_test.c
318   INCLUDE[bio_memleak_test]=../include ../apps/include
319   DEPEND[bio_memleak_test]=../libcrypto libtestutil.a
320
321   SOURCE[bioprinttest]=bioprinttest.c
322   INCLUDE[bioprinttest]=../include ../apps/include
323   DEPEND[bioprinttest]=../libcrypto libtestutil.a
324
325   SOURCE[params_api_test]=params_api_test.c
326   INCLUDE[params_api_test]=../include ../apps/include
327   DEPEND[params_api_test]=../libcrypto libtestutil.a
328
329   SOURCE[params_conversion_test]=params_conversion_test.c
330   INCLUDE[params_conversion_test]=../include ../apps/include
331   DEPEND[params_conversion_test]=../libcrypto libtestutil.a
332
333   SOURCE[param_build_test]=param_build_test.c
334   INCLUDE[param_build_test]=../include ../apps/include
335   DEPEND[param_build_test]=../libcrypto.a libtestutil.a
336
337   SOURCE[sslapitest]=sslapitest.c ssltestlib.c
338   INCLUDE[sslapitest]=../include ../apps/include ..
339   DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
340
341   SOURCE[ocspapitest]=ocspapitest.c
342   INCLUDE[ocspapitest]=../include ../apps/include
343   DEPEND[ocspapitest]=../libcrypto libtestutil.a
344
345   SOURCE[dtlstest]=dtlstest.c ssltestlib.c
346   INCLUDE[dtlstest]=../include ../apps/include
347   DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
348
349   SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
350   INCLUDE[sslcorrupttest]=../include ../apps/include
351   DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
352
353   SOURCE[bio_enc_test]=bio_enc_test.c
354   INCLUDE[bio_enc_test]=../include ../apps/include
355   DEPEND[bio_enc_test]=../libcrypto libtestutil.a
356
357   SOURCE[pkey_meth_test]=pkey_meth_test.c
358   INCLUDE[pkey_meth_test]=../include ../apps/include
359   DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
360
361   SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
362   INCLUDE[pkey_meth_kdf_test]=../include ../apps/include
363   DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
364
365   SOURCE[evp_kdf_test]=evp_kdf_test.c
366   INCLUDE[evp_kdf_test]=../include ../apps/include
367   DEPEND[evp_kdf_test]=../libcrypto libtestutil.a
368
369   SOURCE[evp_pkey_dparams_test]=evp_pkey_dparams_test.c
370   INCLUDE[evp_pkey_dparams_test]=../include ../apps/include
371   DEPEND[evp_pkey_dparams_test]=../libcrypto libtestutil.a
372
373   SOURCE[x509_time_test]=x509_time_test.c
374   INCLUDE[x509_time_test]=../include ../apps/include
375   DEPEND[x509_time_test]=../libcrypto libtestutil.a
376
377   SOURCE[recordlentest]=recordlentest.c ssltestlib.c
378   INCLUDE[recordlentest]=../include ../apps/include
379   DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
380
381   SOURCE[drbgtest]=drbgtest.c
382   INCLUDE[drbgtest]=../include ../apps/include ../crypto/include
383   DEPEND[drbgtest]=../libcrypto.a libtestutil.a
384
385   SOURCE[drbg_cavs_test]=drbg_cavs_test.c drbg_cavs_data_ctr.c \
386                          drbg_cavs_data_hash.c drbg_cavs_data_hmac.c
387
388   INCLUDE[drbg_cavs_test]=../include ../apps/include . .. ../crypto/include
389   DEPEND[drbg_cavs_test]=../libcrypto libtestutil.a
390
391   SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
392   INCLUDE[x509_dup_cert_test]=../include ../apps/include
393   DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
394
395   SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
396   INCLUDE[x509_check_cert_pkey_test]=../include ../apps/include
397   DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a
398
399   SOURCE[pemtest]=pemtest.c
400   INCLUDE[pemtest]=../include ../apps/include
401   DEPEND[pemtest]=../libcrypto libtestutil.a
402
403   SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
404   INCLUDE[ssl_cert_table_internal_test]=.. ../include ../apps/include
405   DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a
406
407   SOURCE[ciphername_test]=ciphername_test.c
408   INCLUDE[ciphername_test]=../include ../apps/include
409   DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a
410
411   SOURCE[servername_test]=servername_test.c ssltestlib.c
412   INCLUDE[servername_test]=../include ../apps/include
413   DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
414
415   IF[{- !$disabled{cms} -}]
416     PROGRAMS{noinst}=cmsapitest
417     SOURCE[cmsapitest]=cmsapitest.c
418     INCLUDE[cmsapitest]=../include ../apps/include
419     DEPEND[cmsapitest]=../libcrypto libtestutil.a
420   ENDIF
421
422   IF[{- !$disabled{psk} -}]
423     PROGRAMS{noinst}=dtls_mtu_test
424     SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
425     INCLUDE[dtls_mtu_test]=.. ../include ../apps/include
426     DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
427   ENDIF
428
429   IF[{- !$disabled{shared} -}]
430     PROGRAMS{noinst}=shlibloadtest
431     SOURCE[shlibloadtest]=shlibloadtest.c
432     INCLUDE[shlibloadtest]=../include ../apps/include ../crypto/include
433   ENDIF
434
435   # cipher_overhead_test uses internal symbols, so it must be linked with
436   # the static libraries
437   PROGRAMS{noinst}=cipher_overhead_test
438   SOURCE[cipher_overhead_test]=cipher_overhead_test.c
439   INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
440   DEPEND[cipher_overhead_test]=../libcrypto.a ../libssl.a libtestutil.a
441
442   SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c
443   INCLUDE[uitest]=.. ../include ../apps/include
444   DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
445
446   SOURCE[cipherbytes_test]=cipherbytes_test.c
447   INCLUDE[cipherbytes_test]=../include ../apps/include
448   DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
449
450   SOURCE[asn1_encode_test]=asn1_encode_test.c
451   INCLUDE[asn1_encode_test]=../include ../apps/include
452   DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
453
454   SOURCE[asn1_decode_test]=asn1_decode_test.c
455   INCLUDE[asn1_decode_test]=../include ../apps/include
456   DEPEND[asn1_decode_test]=../libcrypto libtestutil.a
457
458   SOURCE[asn1_string_table_test]=asn1_string_table_test.c
459   INCLUDE[asn1_string_table_test]=../include ../apps/include
460   DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
461
462   SOURCE[time_offset_test]=time_offset_test.c
463   INCLUDE[time_offset_test]=../include ../apps/include
464   DEPEND[time_offset_test]=../libcrypto libtestutil.a
465
466   SOURCE[conf_include_test]=conf_include_test.c
467   INCLUDE[conf_include_test]=../include ../apps/include
468   DEPEND[conf_include_test]=../libcrypto libtestutil.a
469
470   IF[{- !$disabled{cmp} -}]
471     PROGRAMS{noinst}=cmp_asn_test cmp_ctx_test cmp_status_test cmp_hdr_test \
472                      cmp_protect_test cmp_msg_test
473   ENDIF
474
475   SOURCE[cmp_asn_test]=cmp_asn_test.c cmp_testlib.c
476   INCLUDE[cmp_asn_test]=.. ../include ../apps/include
477   DEPEND[cmp_asn_test]=../libcrypto.a libtestutil.a
478
479   SOURCE[cmp_ctx_test]=cmp_ctx_test.c cmp_testlib.c
480   INCLUDE[cmp_ctx_test]=.. ../include ../apps/include
481   DEPEND[cmp_ctx_test]=../libcrypto.a libtestutil.a
482
483   SOURCE[cmp_hdr_test]=cmp_hdr_test.c cmp_testlib.c
484   INCLUDE[cmp_hdr_test]=.. ../include ../apps/include
485   DEPEND[cmp_hdr_test]=../libcrypto.a libtestutil.a
486
487   SOURCE[cmp_status_test]=cmp_status_test.c cmp_testlib.c
488   INCLUDE[cmp_status_test]=.. ../include ../apps/include
489   DEPEND[cmp_status_test]=../libcrypto.a libtestutil.a
490
491   SOURCE[cmp_protect_test]=cmp_protect_test.c cmp_testlib.c
492   INCLUDE[cmp_protect_test]=.. ../include ../apps/include
493   DEPEND[cmp_protect_test]=../libcrypto.a libtestutil.a
494
495   SOURCE[cmp_msg_test]=cmp_msg_test.c cmp_testlib.c
496   INCLUDE[cmp_msg_test]=.. ../include ../apps/include
497   DEPEND[cmp_msg_test]=../libcrypto.a libtestutil.a
498
499   # Internal test programs.  These are essentially a collection of internal
500   # test routines.  Some of them need to reach internal symbols that aren't
501   # available through the shared library (at least on Linux, Solaris, Windows
502   # and VMS, where the exported symbols are those listed in util/*.num), these
503   # programs are forcibly linked with the static libraries, where all symbols
504   # are always available.
505   IF[1]
506     PROGRAMS{noinst}=asn1_internal_test modes_internal_test x509_internal_test \
507                      tls13encryptiontest wpackettest ctype_internal_test \
508                      rdrand_sanitytest property_test \
509                      rsa_sp800_56b_test bn_internal_test \
510                      rc2test rc4test rc5test \
511                      asn1_dsa_internal_test
512
513     IF[{- !$disabled{poly1305} -}]
514       PROGRAMS{noinst}=poly1305_internal_test
515     ENDIF
516     IF[{- !$disabled{chacha} -}]
517       PROGRAMS{noinst}=chacha_internal_test
518     ENDIF
519     IF[{- !$disabled{siphash} -}]
520       PROGRAMS{noinst}=siphash_internal_test
521     ENDIF
522     IF[{- !$disabled{sm2} -}]
523       PROGRAMS{noinst}=sm2_internal_test
524     ENDIF
525     IF[{- !$disabled{sm4} -}]
526       PROGRAMS{noinst}=sm4_internal_test
527     ENDIF
528     IF[{- !$disabled{ec} -}]
529       PROGRAMS{noinst}=ec_internal_test curve448_internal_test
530     ENDIF
531
532     SOURCE[poly1305_internal_test]=poly1305_internal_test.c
533     INCLUDE[poly1305_internal_test]=.. ../include ../apps/include ../crypto/include
534     DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
535
536     SOURCE[chacha_internal_test]=chacha_internal_test.c
537     INCLUDE[chacha_internal_test]=.. ../include ../apps/include ../crypto/include
538     DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
539
540     SOURCE[asn1_internal_test]=asn1_internal_test.c
541     INCLUDE[asn1_internal_test]=.. ../include ../apps/include ../crypto/include
542     DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
543
544     SOURCE[modes_internal_test]=modes_internal_test.c
545     INCLUDE[modes_internal_test]=.. ../include ../apps/include ../crypto/include
546     DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
547
548     SOURCE[x509_internal_test]=x509_internal_test.c
549     INCLUDE[x509_internal_test]=.. ../include ../apps/include
550     DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
551
552     SOURCE[tls13encryptiontest]=tls13encryptiontest.c
553     INCLUDE[tls13encryptiontest]=.. ../include ../apps/include
554     DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
555
556     SOURCE[wpackettest]=wpackettest.c
557     INCLUDE[wpackettest]=../include ../apps/include
558     DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
559
560     SOURCE[property_test]=property_test.c
561     INCLUDE[property_test]=.. ../include ../apps/include
562     DEPEND[property_test]=../libcrypto.a libtestutil.a
563
564     SOURCE[ctype_internal_test]=ctype_internal_test.c
565     INCLUDE[ctype_internal_test]=.. ../include ../apps/include
566     DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
567
568     SOURCE[sparse_array_test]=sparse_array_test.c
569     INCLUDE[sparse_array_test]=../crypto/include ../include ../apps/include
570     DEPEND[sparse_array_test]=../libcrypto.a libtestutil.a
571
572     SOURCE[siphash_internal_test]=siphash_internal_test.c
573     INCLUDE[siphash_internal_test]=.. ../include ../apps/include ../crypto/include
574     DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
575
576     SOURCE[sm2_internal_test]=sm2_internal_test.c
577     INCLUDE[sm2_internal_test]=../include ../apps/include ../crypto/include
578     DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a
579
580     SOURCE[sm4_internal_test]=sm4_internal_test.c
581     INCLUDE[sm4_internal_test]=.. ../include ../apps/include ../crypto/include
582     DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
583
584     SOURCE[rc2test]=rc2test.c
585     INCLUDE[rc2test]=../include ../apps/include
586     DEPEND[rc2test]=../libcrypto.a libtestutil.a
587
588     SOURCE[rc4test]=rc4test.c
589     INCLUDE[rc4test]=../include ../apps/include
590     DEPEND[rc4test]=../libcrypto.a libtestutil.a
591
592     SOURCE[rc5test]=rc5test.c
593     INCLUDE[rc5test]=../include ../apps/include
594     DEPEND[rc5test]=../libcrypto.a libtestutil.a
595
596     SOURCE[ec_internal_test]=ec_internal_test.c
597     INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include ../crypto/include
598     DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a
599
600     SOURCE[curve448_internal_test]=curve448_internal_test.c
601     INCLUDE[curve448_internal_test]=.. ../include ../apps/include ../crypto/ec/curve448
602     DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
603
604     SOURCE[rc4test]=rc4test.c
605     INCLUDE[rc4test]=../include ../apps/include
606     DEPEND[rc4test]=../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
628     IF[{- !$disabled{mdc2} -}]
629       PROGRAMS{noinst}=mdc2_internal_test
630     ENDIF
631
632     SOURCE[mdc2_internal_test]=mdc2_internal_test.c
633     INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
634     DEPEND[mdc2_internal_test]=../libcrypto.a libtestutil.a
635   ENDIF
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 -}