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