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