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