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