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