build.info 15.9 KB
Newer Older
R
Richard Levitte 已提交
1 2 3 4 5 6 7
{-
     use File::Spec::Functions;
     sub rebase_files
     {
         my ($base, $files) = @_;
         return join(" ", map { "$base/$_" } split(/\s+/, $files));
     }
R
Richard Levitte 已提交
8
     ""
R
Richard Levitte 已提交
9
-}
M
Matt Caswell 已提交
10
IF[{- !$disabled{tests} -}]
11
  LIBS_NO_INST=libtestutil.a
12
  SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output_helpers.c \
13
          testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
P
Pauli 已提交
14
          testutil/format_output.c testutil/tap_bio.c \
15
          {- rebase_files("../apps", $target{apps_aux_src}) -} \
16
          testutil/test_cleanup.c testutil/main.c testutil/init.c
17
  INCLUDE[libtestutil.a]=.. ../include
18 19
  DEPEND[libtestutil.a]=../libcrypto

20 21 22 23 24 25 26
  # Special hack for descrip.mms to include the MAIN object module
  # explicitely.  This will only be done if there isn't a MAIN in the
  # program's object modules already.
  BEGINRAW[descrip.mms]
INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN
  ENDRAW[descrip.mms]

27
  PROGRAMS_NO_INST=\
P
Pauli 已提交
28
          aborttest test_test \
R
Rich Salz 已提交
29
          sanitytest exdatatest bntest \
R
Rich Salz 已提交
30
          ectest ecstresstest ecdsatest gmdifftest pbelutest ideatest \
31
          md2test \
32
          hmactest \
33
          rc2test rc4test rc5test \
D
Dr. Stephen Henson 已提交
34
          destest mdc2test \
R
Rich Salz 已提交
35
          dhtest enginetest casttest \
M
Matt Caswell 已提交
36
          bftest ssltest_old dsatest exptest rsa_test \
R
Rich Salz 已提交
37
          evp_test evp_extra_test igetest v3nametest v3ext \
38
          crltest danetest bad_dtls_test lhash_test \
M
Matt Caswell 已提交
39
          constant_time_test verify_extra_test clienthellotest \
P
Pauli 已提交
40
          packettest asynctest secmemtest srptest memleaktest stack_test \
M
Matt Caswell 已提交
41
          dtlsv1listentest ct_test threadstest afalgtest d2i_test \
42
          ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
43
          bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
44
          pkey_meth_test uitest cipherbytes_test asn1_encode_test asn1_string_table_test \
R
Rich Salz 已提交
45
          x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
46
          recordlentest drbgtest sslbuffertest \
47 48
          time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
          servername_test
M
Matt Caswell 已提交
49 50

  SOURCE[aborttest]=aborttest.c
51
  INCLUDE[aborttest]=../include
M
Matt Caswell 已提交
52 53
  DEPEND[aborttest]=../libcrypto

R
Richard Levitte 已提交
54
  SOURCE[sanitytest]=sanitytest.c
R
Rich Salz 已提交
55
  INCLUDE[sanitytest]=../include
R
Richard Levitte 已提交
56
  DEPEND[sanitytest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
57

R
Richard Levitte 已提交
58
  SOURCE[test_test]=test_test.c
P
Pauli 已提交
59
  INCLUDE[test_test]=.. ../include
R
Richard Levitte 已提交
60
  DEPEND[test_test]=../libcrypto libtestutil.a
P
Pauli 已提交
61

R
Richard Levitte 已提交
62
  SOURCE[exdatatest]=exdatatest.c
R
Rich Salz 已提交
63
  INCLUDE[exdatatest]=../include
R
Richard Levitte 已提交
64
  DEPEND[exdatatest]=../libcrypto libtestutil.a
R
Rich Salz 已提交
65

R
Richard Levitte 已提交
66
  SOURCE[bntest]=bntest.c
67
  INCLUDE[bntest]=.. ../crypto/include ../include
R
Richard Levitte 已提交
68
  DEPEND[bntest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
69 70

  SOURCE[ectest]=ectest.c
71
  INCLUDE[ectest]=.. ../include
72
  DEPEND[ectest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
73

R
Rich Salz 已提交
74 75 76 77
  SOURCE[ecstresstest]=ecstresstest.c
  INCLUDE[ecstresstest]=.. ../include
  DEPEND[ecstresstest]=../libcrypto libtestutil.a

R
Richard Levitte 已提交
78
  SOURCE[ecdsatest]=ecdsatest.c
79
  INCLUDE[ecdsatest]=../include
R
Richard Levitte 已提交
80
  DEPEND[ecdsatest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
81

R
Richard Levitte 已提交
82
  SOURCE[gmdifftest]=gmdifftest.c
83
  INCLUDE[gmdifftest]=../include
R
Richard Levitte 已提交
84
  DEPEND[gmdifftest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
85

R
Richard Levitte 已提交
86
  SOURCE[pbelutest]=pbelutest.c
87
  INCLUDE[pbelutest]=../include
R
Richard Levitte 已提交
88
  DEPEND[pbelutest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
89

R
Richard Levitte 已提交
90
  SOURCE[ideatest]=ideatest.c
91
  INCLUDE[ideatest]=../include
R
Richard Levitte 已提交
92
  DEPEND[ideatest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
93

R
Richard Levitte 已提交
94
  SOURCE[md2test]=md2test.c
95
  INCLUDE[md2test]=../include
R
Richard Levitte 已提交
96
  DEPEND[md2test]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
97

R
Richard Levitte 已提交
98
  SOURCE[hmactest]=hmactest.c
99
  INCLUDE[hmactest]=../include
R
Richard Levitte 已提交
100
  DEPEND[hmactest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
101

R
Richard Levitte 已提交
102
  SOURCE[rc2test]=rc2test.c
103
  INCLUDE[rc2test]=../include
R
Richard Levitte 已提交
104
  DEPEND[rc2test]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
105

R
Richard Levitte 已提交
106
  SOURCE[rc4test]=rc4test.c
107
  INCLUDE[rc4test]=../include
R
Richard Levitte 已提交
108
  DEPEND[rc4test]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
109

R
Richard Levitte 已提交
110
  SOURCE[rc5test]=rc5test.c
111
  INCLUDE[rc5test]=../include
R
Richard Levitte 已提交
112
  DEPEND[rc5test]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
113

R
Richard Levitte 已提交
114
  SOURCE[destest]=destest.c
115
  INCLUDE[destest]=../include
R
Richard Levitte 已提交
116
  DEPEND[destest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
117

R
Richard Levitte 已提交
118
  SOURCE[mdc2test]=mdc2test.c
119
  INCLUDE[mdc2test]=../include
R
Richard Levitte 已提交
120
  DEPEND[mdc2test]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
121

R
Richard Levitte 已提交
122
  SOURCE[dhtest]=dhtest.c
123
  INCLUDE[dhtest]=.. ../include
R
Richard Levitte 已提交
124
  DEPEND[dhtest]=../libcrypto libtestutil.a
125

R
Richard Levitte 已提交
126
  SOURCE[enginetest]=enginetest.c
127
  INCLUDE[enginetest]=../include
R
Richard Levitte 已提交
128
  DEPEND[enginetest]=../libcrypto libtestutil.a
129

R
Richard Levitte 已提交
130
  SOURCE[casttest]=casttest.c
131
  INCLUDE[casttest]=.. ../include
R
Richard Levitte 已提交
132
  DEPEND[casttest]=../libcrypto libtestutil.a
133

R
Richard Levitte 已提交
134
  SOURCE[bftest]=bftest.c
135
  INCLUDE[bftest]=../include
R
Richard Levitte 已提交
136
  DEPEND[bftest]=../libcrypto libtestutil.a
137

M
Matt Caswell 已提交
138
  SOURCE[ssltest_old]=ssltest_old.c
139
  INCLUDE[ssltest_old]=.. ../include
M
Matt Caswell 已提交
140
  DEPEND[ssltest_old]=../libcrypto ../libssl
141

R
Richard Levitte 已提交
142
  SOURCE[dsatest]=dsatest.c
143
  INCLUDE[dsatest]=.. ../include
R
Richard Levitte 已提交
144
  DEPEND[dsatest]=../libcrypto libtestutil.a
145

M
Matt Caswell 已提交
146
  SOURCE[exptest]=exptest.c
147
  INCLUDE[exptest]=../include
148
  DEPEND[exptest]=../libcrypto libtestutil.a
149

R
Richard Levitte 已提交
150
  SOURCE[rsa_test]=rsa_test.c
151
  INCLUDE[rsa_test]=.. ../include
R
Richard Levitte 已提交
152
  DEPEND[rsa_test]=../libcrypto libtestutil.a
153

M
Matt Caswell 已提交
154
  SOURCE[evp_test]=evp_test.c
155
  INCLUDE[evp_test]=../include
R
Rich Salz 已提交
156
  DEPEND[evp_test]=../libcrypto libtestutil.a
157

R
Richard Levitte 已提交
158
  SOURCE[evp_extra_test]=evp_extra_test.c
159
  INCLUDE[evp_extra_test]=.. ../include
R
Richard Levitte 已提交
160
  DEPEND[evp_extra_test]=../libcrypto libtestutil.a
161

M
Matt Caswell 已提交
162
  SOURCE[igetest]=igetest.c
163
  INCLUDE[igetest]=.. ../include
164
  DEPEND[igetest]=../libcrypto libtestutil.a
165

R
Richard Levitte 已提交
166
  SOURCE[v3nametest]=v3nametest.c
R
Rich Salz 已提交
167
  INCLUDE[v3nametest]=.. ../include
R
Richard Levitte 已提交
168
  DEPEND[v3nametest]=../libcrypto libtestutil.a
169

R
Richard Levitte 已提交
170
  SOURCE[crltest]=crltest.c
R
Rich Salz 已提交
171
  INCLUDE[crltest]=../include
R
Richard Levitte 已提交
172
  DEPEND[crltest]=../libcrypto libtestutil.a
R
Rich Salz 已提交
173

R
Richard Levitte 已提交
174
  SOURCE[v3ext]=v3ext.c
175
  INCLUDE[v3ext]=../include
R
Richard Levitte 已提交
176
  DEPEND[v3ext]=../libcrypto libtestutil.a
R
Rich Salz 已提交
177

M
Matt Caswell 已提交
178
  SOURCE[danetest]=danetest.c
R
Rich Salz 已提交
179 180
  INCLUDE[danetest]=.. ../include
  DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
181

R
Richard Levitte 已提交
182
  SOURCE[constant_time_test]=constant_time_test.c
183
  INCLUDE[constant_time_test]=.. ../include
R
Richard Levitte 已提交
184
  DEPEND[constant_time_test]=../libcrypto libtestutil.a
185

R
Richard Levitte 已提交
186
  SOURCE[verify_extra_test]=verify_extra_test.c
187
  INCLUDE[verify_extra_test]=../include
R
Richard Levitte 已提交
188
  DEPEND[verify_extra_test]=../libcrypto libtestutil.a
189

R
Richard Levitte 已提交
190
  SOURCE[clienthellotest]=clienthellotest.c
191
  INCLUDE[clienthellotest]=../include
R
Richard Levitte 已提交
192
  DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
193

R
Richard Levitte 已提交
194
  SOURCE[bad_dtls_test]=bad_dtls_test.c
195
  INCLUDE[bad_dtls_test]=../include
R
Richard Levitte 已提交
196
  DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
197

R
Richard Levitte 已提交
198
  SOURCE[packettest]=packettest.c
199
  INCLUDE[packettest]=../include
R
Richard Levitte 已提交
200
  DEPEND[packettest]=../libcrypto libtestutil.a
201

M
Matt Caswell 已提交
202
  SOURCE[asynctest]=asynctest.c
203
  INCLUDE[asynctest]=.. ../include
M
Matt Caswell 已提交
204
  DEPEND[asynctest]=../libcrypto
205

R
Richard Levitte 已提交
206
  SOURCE[secmemtest]=secmemtest.c
207
  INCLUDE[secmemtest]=../include
R
Richard Levitte 已提交
208
  DEPEND[secmemtest]=../libcrypto libtestutil.a
209

R
Richard Levitte 已提交
210
  SOURCE[srptest]=srptest.c
211
  INCLUDE[srptest]=../include
R
Richard Levitte 已提交
212
  DEPEND[srptest]=../libcrypto libtestutil.a
213

R
Richard Levitte 已提交
214
  SOURCE[memleaktest]=memleaktest.c
215
  INCLUDE[memleaktest]=../include
R
Richard Levitte 已提交
216
  DEPEND[memleaktest]=../libcrypto libtestutil.a
217

R
Richard Levitte 已提交
218
  SOURCE[stack_test]=stack_test.c
P
Pauli 已提交
219
  INCLUDE[stack_test]=.. ../include
R
Richard Levitte 已提交
220
  DEPEND[stack_test]=../libcrypto libtestutil.a
P
Pauli 已提交
221

R
Richard Levitte 已提交
222
  SOURCE[lhash_test]=lhash_test.c
223
  INCLUDE[lhash_test]=.. ../include
R
Richard Levitte 已提交
224
  DEPEND[lhash_test]=../libcrypto libtestutil.a
225

M
Matt Caswell 已提交
226
  SOURCE[dtlsv1listentest]=dtlsv1listentest.c
227
  INCLUDE[dtlsv1listentest]=.. ../include
228
  DEPEND[dtlsv1listentest]=../libssl libtestutil.a
R
Rich Salz 已提交
229

R
Richard Levitte 已提交
230
  SOURCE[ct_test]=ct_test.c
231
  INCLUDE[ct_test]=../crypto/include ../include
R
Richard Levitte 已提交
232
  DEPEND[ct_test]=../libcrypto libtestutil.a
233

R
Richard Levitte 已提交
234
  SOURCE[threadstest]=threadstest.c
235
  INCLUDE[threadstest]=.. ../include
R
Richard Levitte 已提交
236
  DEPEND[threadstest]=../libcrypto libtestutil.a
237

R
Richard Levitte 已提交
238
  SOURCE[afalgtest]=afalgtest.c
239
  INCLUDE[afalgtest]=.. ../include
R
Richard Levitte 已提交
240
  DEPEND[afalgtest]=../libcrypto libtestutil.a
C
clucey 已提交
241

R
Richard Levitte 已提交
242
  SOURCE[d2i_test]=d2i_test.c
243
  INCLUDE[d2i_test]=.. ../include
R
Richard Levitte 已提交
244
  DEPEND[d2i_test]=../libcrypto libtestutil.a
E
Emilia Kasper 已提交
245

R
Richard Levitte 已提交
246
  SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
247
  INCLUDE[ssl_test_ctx_test]=.. ../include
R
Richard Levitte 已提交
248
  DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
E
Emilia Kasper 已提交
249

R
Richard Levitte 已提交
250
  SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
251
  INCLUDE[ssl_test]=.. ../include
R
Richard Levitte 已提交
252
  DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
E
Emilia Kasper 已提交
253

R
Richard Levitte 已提交
254
  SOURCE[cipherlist_test]=cipherlist_test.c
255
  INCLUDE[cipherlist_test]=.. ../include
R
Richard Levitte 已提交
256
  DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
E
Emilia Kasper 已提交
257

M
Matt Caswell 已提交
258
  INCLUDE[testutil.o]=..
259 260
  INCLUDE[ssl_test_ctx.o]=../include
  INCLUDE[handshake_helper.o]=../include
R
Rich Salz 已提交
261
  INCLUDE[ssltestlib.o]=.. ../include
262

R
Richard Levitte 已提交
263
  SOURCE[x509aux]=x509aux.c
264
  INCLUDE[x509aux]=.. ../include
R
Richard Levitte 已提交
265
  DEPEND[x509aux]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
266

R
Richard Levitte 已提交
267
  SOURCE[asynciotest]=asynciotest.c ssltestlib.c
268
  INCLUDE[asynciotest]=../include
R
Richard Levitte 已提交
269
  DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
270

R
Richard Levitte 已提交
271
  SOURCE[bioprinttest]=bioprinttest.c
R
Rich Salz 已提交
272
  INCLUDE[bioprinttest]=../ ../include
R
Richard Levitte 已提交
273
  DEPEND[bioprinttest]=../libcrypto libtestutil.a
274

R
Richard Levitte 已提交
275
  SOURCE[sslapitest]=sslapitest.c ssltestlib.c
276
  INCLUDE[sslapitest]=../include ..
R
Richard Levitte 已提交
277
  DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
278

R
Richard Levitte 已提交
279
  SOURCE[dtlstest]=dtlstest.c ssltestlib.c
280
  INCLUDE[dtlstest]=../include .
R
Richard Levitte 已提交
281
  DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
A
Andy Polyakov 已提交
282

R
Richard Levitte 已提交
283
  SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
284
  INCLUDE[sslcorrupttest]=../include .
R
Richard Levitte 已提交
285
  DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
286

R
Richard Levitte 已提交
287
  SOURCE[bio_enc_test]=bio_enc_test.c
A
Andy Polyakov 已提交
288
  INCLUDE[bio_enc_test]=../include
R
Richard Levitte 已提交
289
  DEPEND[bio_enc_test]=../libcrypto libtestutil.a
290

R
Richard Levitte 已提交
291
  SOURCE[pkey_meth_test]=pkey_meth_test.c
292
  INCLUDE[pkey_meth_test]=../include
R
Richard Levitte 已提交
293
  DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
294

R
Richard Levitte 已提交
295
  SOURCE[x509_time_test]=x509_time_test.c
296
  INCLUDE[x509_time_test]=.. ../include
R
Richard Levitte 已提交
297
  DEPEND[x509_time_test]=../libcrypto libtestutil.a
298

R
Richard Levitte 已提交
299
  SOURCE[recordlentest]=recordlentest.c ssltestlib.c
300
  INCLUDE[recordlentest]=../include .
R
Richard Levitte 已提交
301
  DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
302

R
Rich Salz 已提交
303 304 305 306
  SOURCE[drbgtest]=drbgtest.c
  INCLUDE[drbgtest]=../include . ..
  DEPEND[drbgtest]=../libcrypto libtestutil.a

R
Richard Levitte 已提交
307
  SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
R
Rich Salz 已提交
308
  INCLUDE[x509_dup_cert_test]=../include
R
Richard Levitte 已提交
309
  DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
R
Rich Salz 已提交
310

311 312 313 314
  SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
  INCLUDE[x509_check_cert_pkey_test]=../include
  DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a

315 316 317 318
  SOURCE[pemtest]=pemtest.c
  INCLUDE[pemtest]=../include .
  DEPEND[pemtest]=../libcrypto libtestutil.a

319 320 321 322
  SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
  INCLUDE[ssl_cert_table_internal_test]=.. ../include
  DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a

323 324 325 326
  SOURCE[ciphername_test]=ciphername_test.c
  INCLUDE[ciphername_test]=.. ../include
  DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a

327 328 329 330
  SOURCE[servername_test]=servername_test.c
  INCLUDE[servername_test]=.. ../include
  DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a

331 332 333 334
  IF[{- !$disabled{psk} -}]
    PROGRAMS_NO_INST=dtls_mtu_test
    SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
    INCLUDE[dtls_mtu_test]=.. ../include
335
    DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
336 337
  ENDIF

R
Richard Levitte 已提交
338
  IF[{- !$disabled{shared} -}]
339 340 341
    PROGRAMS_NO_INST=shlibloadtest
    SOURCE[shlibloadtest]=shlibloadtest.c
    INCLUDE[shlibloadtest]=../include
342
    DEPEND[shlibloadtest]=libtestutil.a
343 344
  ENDIF

345
  IF[{- $disabled{shared} -}]
346
    PROGRAMS_NO_INST=cipher_overhead_test
R
Richard Levitte 已提交
347
    SOURCE[cipher_overhead_test]=cipher_overhead_test.c
348
    INCLUDE[cipher_overhead_test]=.. ../include
R
Richard Levitte 已提交
349
    DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
350
  ENDIF
351

R
Richard Levitte 已提交
352
  SOURCE[uitest]=uitest.c ../apps/apps.c ../apps/opt.c
353
  DEPEND[uitest.o]=../apps/progs.h
R
Richard Levitte 已提交
354
  INCLUDE[uitest]=.. ../include ../apps
R
Richard Levitte 已提交
355
  DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
R
Richard Levitte 已提交
356

R
Richard Levitte 已提交
357
  SOURCE[cipherbytes_test]=cipherbytes_test.c
358
  INCLUDE[cipherbytes_test]=.. ../include
R
Richard Levitte 已提交
359
  DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
360

R
Richard Levitte 已提交
361
  SOURCE[asn1_encode_test]=asn1_encode_test.c
362
  INCLUDE[asn1_encode_test]=../include
R
Richard Levitte 已提交
363
  DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
364

365 366 367 368
  SOURCE[asn1_string_table_test]=asn1_string_table_test.c
  INCLUDE[asn1_string_table_test]=../include
  DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a

T
Todd Short 已提交
369 370 371 372
  SOURCE[time_offset_test]=time_offset_test.c
  INCLUDE[time_offset_test]=.. ../include
  DEPEND[time_offset_test]=../libcrypto libtestutil.a

373
  # Internal test programs.  These are essentially a collection of internal
374 375 376
  # test routines.  Some of them need to reach internal symbols that aren't
  # available through the shared library (at least on Linux, Solaris, Windows
  # and VMS, where the exported symbols are those listed in util/*.num), these
F
FdaSilvaYY 已提交
377
  # programs are forcibly linked with the static libraries, where all symbols
378 379 380 381
  # are always available.  This excludes linking these programs natively on
  # Windows when building shared libraries, since the static libraries share
  # names with the DLL import libraries.
  IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
382
    PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
383
                     tls13encryptiontest wpackettest
384 385 386
    IF[{- !$disabled{poly1305} -}]
      PROGRAMS_NO_INST=poly1305_internal_test
    ENDIF
A
Andy Polyakov 已提交
387 388 389
    IF[{- !$disabled{chacha} -}]
      PROGRAMS_NO_INST=chacha_internal_test
    ENDIF
390 391 392
    IF[{- !$disabled{siphash} -}]
      PROGRAMS_NO_INST=siphash_internal_test
    ENDIF
393

R
Richard Levitte 已提交
394
    SOURCE[poly1305_internal_test]=poly1305_internal_test.c
395
    INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
396
    DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
397

R
Richard Levitte 已提交
398
    SOURCE[chacha_internal_test]=chacha_internal_test.c
A
Andy Polyakov 已提交
399
    INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
400
    DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
A
Andy Polyakov 已提交
401

R
Richard Levitte 已提交
402
    SOURCE[asn1_internal_test]=asn1_internal_test.c
403
    INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
404
    DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
405

R
Richard Levitte 已提交
406
    SOURCE[modes_internal_test]=modes_internal_test.c
407
    INCLUDE[modes_internal_test]=.. ../include
R
Richard Levitte 已提交
408
    DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
409

R
Richard Levitte 已提交
410
    SOURCE[x509_internal_test]=x509_internal_test.c
411
    INCLUDE[x509_internal_test]=.. ../include
R
Richard Levitte 已提交
412
    DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
413

R
Richard Levitte 已提交
414
    SOURCE[tls13encryptiontest]=tls13encryptiontest.c
415
    INCLUDE[tls13encryptiontest]=.. ../include
R
Richard Levitte 已提交
416
    DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
417

R
Richard Levitte 已提交
418
    SOURCE[wpackettest]=wpackettest.c
419
    INCLUDE[wpackettest]=../include
R
Richard Levitte 已提交
420
    DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
421

R
Richard Levitte 已提交
422
    SOURCE[siphash_internal_test]=siphash_internal_test.c
423
    INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
424
    DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
425
  ENDIF
426

427 428
  IF[{- !$disabled{mdc2} -}]
    PROGRAMS_NO_INST=mdc2_internal_test
429
  ENDIF
430

R
Richard Levitte 已提交
431
  SOURCE[mdc2_internal_test]=mdc2_internal_test.c
432
  INCLUDE[mdc2_internal_test]=.. ../include
R
Richard Levitte 已提交
433
  DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
434 435 436 437 438 439

  # We disable this test completely in a shared build because it deliberately
  # redefines some internal libssl symbols. This doesn't work in a non-shared
  # build
  IF[{- !$disabled{shared} -}]
    PROGRAMS_NO_INST=tls13secretstest
R
Richard Levitte 已提交
440
    SOURCE[tls13secretstest]=tls13secretstest.c
441 442
    SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
    INCLUDE[tls13secretstest]=.. ../include
R
Richard Levitte 已提交
443
    DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
444
  ENDIF
445 446 447 448

  SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
  INCLUDE[sslbuffertest]=../include
  DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
449 450 451
ENDIF

{-
452
   use File::Spec::Functions;
453
   use File::Basename;
454
   use if $^O ne "VMS", 'File::Glob' => qw/:bsd_glob/;
455 456 457 458 459 460 461 462 463 464 465 466 467

   my @nogo_headers = ( "asn1_mac.h",
                        "__decc_include_prologue.h",
                        "__decc_include_epilogue.h" );
   my @headerfiles = glob catfile($sourcedir,
                                  updir(), "include", "openssl", "*.h");

   foreach my $headerfile (@headerfiles) {
       my $name = basename($headerfile, ".h");
       next if $disabled{$name};
       next if grep { $_ eq lc("$name.h") } @nogo_headers;
       $OUT .= <<"_____";

468
  PROGRAMS_NO_INST=buildtest_$name
469 470
  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  SOURCE[buildtest_$name]=buildtest_$name.c
471
  INCLUDE[buildtest_$name]=../include
472 473 474
  DEPEND[buildtest_$name]=../libssl ../libcrypto
_____
   }
475
-}