build.info 14.5 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 \
14 15
          {- rebase_files("../apps", $target{apps_aux_src}) -} \
          testutil/test_main.c testutil/main.c
16
  INCLUDE[libtestutil.a]=.. ../include
17 18
  DEPEND[libtestutil.a]=../libcrypto

19 20 21 22 23 24 25
  # 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]

26
  PROGRAMS_NO_INST=\
P
Pauli 已提交
27
          aborttest test_test \
R
Rich Salz 已提交
28
          sanitytest exdatatest bntest \
N
Nicola Tuveri 已提交
29
          ectest ecdsatest gmdifftest pbelutest ideatest \
30
          md2test \
31
          hmactest \
32
          rc2test rc4test rc5test \
M
Matt Caswell 已提交
33
          destest sha1test sha256t sha512t \
34
          mdc2test \
M
Matt Caswell 已提交
35 36
          randtest dhtest enginetest casttest \
          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 \
R
Rich Salz 已提交
45
          x509_time_test x509_dup_cert_test recordlentest
M
Matt Caswell 已提交
46 47

  SOURCE[aborttest]=aborttest.c
48
  INCLUDE[aborttest]=../include
M
Matt Caswell 已提交
49 50
  DEPEND[aborttest]=../libcrypto

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

R
Richard Levitte 已提交
55
  SOURCE[test_test]=test_test.c
P
Pauli 已提交
56
  INCLUDE[test_test]=.. ../include
R
Richard Levitte 已提交
57
  DEPEND[test_test]=../libcrypto libtestutil.a
P
Pauli 已提交
58

R
Richard Levitte 已提交
59
  SOURCE[exdatatest]=exdatatest.c
R
Rich Salz 已提交
60
  INCLUDE[exdatatest]=../include
R
Richard Levitte 已提交
61
  DEPEND[exdatatest]=../libcrypto libtestutil.a
R
Rich Salz 已提交
62

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

  SOURCE[ectest]=ectest.c
68
  INCLUDE[ectest]=.. ../include
M
Matt Caswell 已提交
69 70
  DEPEND[ectest]=../libcrypto

R
Richard Levitte 已提交
71
  SOURCE[ecdsatest]=ecdsatest.c
72
  INCLUDE[ecdsatest]=../include
R
Richard Levitte 已提交
73
  DEPEND[ecdsatest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
74

R
Richard Levitte 已提交
75
  SOURCE[gmdifftest]=gmdifftest.c
76
  INCLUDE[gmdifftest]=../include
R
Richard Levitte 已提交
77
  DEPEND[gmdifftest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
78

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

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

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

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

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

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

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

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

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

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

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

R
Richard Levitte 已提交
123
  SOURCE[mdc2test]=mdc2test.c
124
  INCLUDE[mdc2test]=../include
R
Richard Levitte 已提交
125
  DEPEND[mdc2test]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
126

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

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

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

R
Richard Levitte 已提交
139
  SOURCE[casttest]=casttest.c
140
  INCLUDE[casttest]=.. ../include
R
Richard Levitte 已提交
141
  DEPEND[casttest]=../libcrypto libtestutil.a
142

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

M
Matt Caswell 已提交
147
  SOURCE[ssltest_old]=ssltest_old.c
148
  INCLUDE[ssltest_old]=.. ../include
M
Matt Caswell 已提交
149
  DEPEND[ssltest_old]=../libcrypto ../libssl
150

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

M
Matt Caswell 已提交
155
  SOURCE[exptest]=exptest.c
156
  INCLUDE[exptest]=../include
157
  DEPEND[exptest]=../libcrypto libtestutil.a
158

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

M
Matt Caswell 已提交
163
  SOURCE[evp_test]=evp_test.c
164
  INCLUDE[evp_test]=../include
M
Matt Caswell 已提交
165
  DEPEND[evp_test]=../libcrypto
166

R
Richard Levitte 已提交
167
  SOURCE[evp_extra_test]=evp_extra_test.c
168
  INCLUDE[evp_extra_test]=../include
R
Richard Levitte 已提交
169
  DEPEND[evp_extra_test]=../libcrypto libtestutil.a
170

M
Matt Caswell 已提交
171
  SOURCE[igetest]=igetest.c
172
  INCLUDE[igetest]=.. ../include
M
Matt Caswell 已提交
173
  DEPEND[igetest]=../libcrypto
174

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

R
Richard Levitte 已提交
179
  SOURCE[crltest]=crltest.c
R
Rich Salz 已提交
180
  INCLUDE[crltest]=../include
R
Richard Levitte 已提交
181
  DEPEND[crltest]=../libcrypto libtestutil.a
R
Rich Salz 已提交
182

R
Richard Levitte 已提交
183
  SOURCE[v3ext]=v3ext.c
184
  INCLUDE[v3ext]=../include
R
Richard Levitte 已提交
185
  DEPEND[v3ext]=../libcrypto libtestutil.a
R
Rich Salz 已提交
186

M
Matt Caswell 已提交
187
  SOURCE[danetest]=danetest.c
188
  INCLUDE[danetest]=../include
M
Matt Caswell 已提交
189
  DEPEND[danetest]=../libcrypto ../libssl
190

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

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

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

R
Richard Levitte 已提交
203
  SOURCE[bad_dtls_test]=bad_dtls_test.c
204
  INCLUDE[bad_dtls_test]=../include
R
Richard Levitte 已提交
205
  DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
206

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

M
Matt Caswell 已提交
211
  SOURCE[asynctest]=asynctest.c
212
  INCLUDE[asynctest]=.. ../include
M
Matt Caswell 已提交
213
  DEPEND[asynctest]=../libcrypto
214

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

R
Richard Levitte 已提交
219
  SOURCE[srptest]=srptest.c
220
  INCLUDE[srptest]=../include
R
Richard Levitte 已提交
221
  DEPEND[srptest]=../libcrypto libtestutil.a
222

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

R
Richard Levitte 已提交
227
  SOURCE[stack_test]=stack_test.c
P
Pauli 已提交
228
  INCLUDE[stack_test]=.. ../include
R
Richard Levitte 已提交
229
  DEPEND[stack_test]=../libcrypto libtestutil.a
P
Pauli 已提交
230

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

M
Matt Caswell 已提交
235
  SOURCE[dtlsv1listentest]=dtlsv1listentest.c
236
  INCLUDE[dtlsv1listentest]=.. ../include
237
  DEPEND[dtlsv1listentest]=../libssl libtestutil.a
R
Rich Salz 已提交
238

R
Richard Levitte 已提交
239
  SOURCE[ct_test]=ct_test.c
240
  INCLUDE[ct_test]=../crypto/include ../include
R
Richard Levitte 已提交
241
  DEPEND[ct_test]=../libcrypto libtestutil.a
242

R
Richard Levitte 已提交
243
  SOURCE[threadstest]=threadstest.c
244
  INCLUDE[threadstest]=.. ../include
R
Richard Levitte 已提交
245
  DEPEND[threadstest]=../libcrypto libtestutil.a
246

R
Richard Levitte 已提交
247
  SOURCE[afalgtest]=afalgtest.c
248
  INCLUDE[afalgtest]=.. ../include
R
Richard Levitte 已提交
249
  DEPEND[afalgtest]=../libcrypto libtestutil.a
C
clucey 已提交
250

R
Richard Levitte 已提交
251
  SOURCE[d2i_test]=d2i_test.c
252
  INCLUDE[d2i_test]=.. ../include
R
Richard Levitte 已提交
253
  DEPEND[d2i_test]=../libcrypto libtestutil.a
E
Emilia Kasper 已提交
254

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

R
Richard Levitte 已提交
259
  SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
260
  INCLUDE[ssl_test]=.. ../include
R
Richard Levitte 已提交
261
  DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
E
Emilia Kasper 已提交
262

R
Richard Levitte 已提交
263
  SOURCE[cipherlist_test]=cipherlist_test.c
264
  INCLUDE[cipherlist_test]=.. ../include
R
Richard Levitte 已提交
265
  DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
E
Emilia Kasper 已提交
266

M
Matt Caswell 已提交
267
  INCLUDE[testutil.o]=..
268 269
  INCLUDE[ssl_test_ctx.o]=../include
  INCLUDE[handshake_helper.o]=../include
R
Rich Salz 已提交
270
  INCLUDE[ssltestlib.o]=.. ../include
271

R
Richard Levitte 已提交
272
  SOURCE[x509aux]=x509aux.c
273
  INCLUDE[x509aux]=.. ../include
R
Richard Levitte 已提交
274
  DEPEND[x509aux]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
275

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

R
Richard Levitte 已提交
280
  SOURCE[bioprinttest]=bioprinttest.c
R
Rich Salz 已提交
281
  INCLUDE[bioprinttest]=../ ../include
R
Richard Levitte 已提交
282
  DEPEND[bioprinttest]=../libcrypto libtestutil.a
283

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

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

R
Richard Levitte 已提交
292
  SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
293
  INCLUDE[sslcorrupttest]=../include .
R
Richard Levitte 已提交
294
  DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
295

R
Richard Levitte 已提交
296
  SOURCE[bio_enc_test]=bio_enc_test.c
A
Andy Polyakov 已提交
297
  INCLUDE[bio_enc_test]=../include
R
Richard Levitte 已提交
298
  DEPEND[bio_enc_test]=../libcrypto libtestutil.a
299

R
Richard Levitte 已提交
300
  SOURCE[pkey_meth_test]=pkey_meth_test.c
301
  INCLUDE[pkey_meth_test]=../include
R
Richard Levitte 已提交
302
  DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
303

R
Richard Levitte 已提交
304
  SOURCE[x509_time_test]=x509_time_test.c
305
  INCLUDE[x509_time_test]=.. ../include
R
Richard Levitte 已提交
306
  DEPEND[x509_time_test]=../libcrypto libtestutil.a
307

R
Richard Levitte 已提交
308
  SOURCE[recordlentest]=recordlentest.c ssltestlib.c
309
  INCLUDE[recordlentest]=../include .
R
Richard Levitte 已提交
310
  DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
311

R
Richard Levitte 已提交
312
  SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
R
Rich Salz 已提交
313
  INCLUDE[x509_dup_cert_test]=../include
R
Richard Levitte 已提交
314
  DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
R
Rich Salz 已提交
315

316 317 318 319
  IF[{- !$disabled{psk} -}]
    PROGRAMS_NO_INST=dtls_mtu_test
    SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
    INCLUDE[dtls_mtu_test]=.. ../include
320
    DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
321 322
  ENDIF

R
Richard Levitte 已提交
323
  IF[{- !$disabled{shared} -}]
324 325 326 327 328
    PROGRAMS_NO_INST=shlibloadtest
    SOURCE[shlibloadtest]=shlibloadtest.c
    INCLUDE[shlibloadtest]=../include
  ENDIF

329
  IF[{- $disabled{shared} -}]
330
    PROGRAMS_NO_INST=cipher_overhead_test
R
Richard Levitte 已提交
331
    SOURCE[cipher_overhead_test]=cipher_overhead_test.c
332
    INCLUDE[cipher_overhead_test]=.. ../include
R
Richard Levitte 已提交
333
    DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
334
  ENDIF
335

R
Richard Levitte 已提交
336
  SOURCE[uitest]=uitest.c ../apps/apps.c ../apps/opt.c
R
Richard Levitte 已提交
337
  INCLUDE[uitest]=.. ../include
R
Richard Levitte 已提交
338
  DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
R
Richard Levitte 已提交
339

R
Richard Levitte 已提交
340
  SOURCE[cipherbytes_test]=cipherbytes_test.c
341
  INCLUDE[cipherbytes_test]=.. ../include
R
Richard Levitte 已提交
342
  DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
343

R
Richard Levitte 已提交
344
  SOURCE[asn1_encode_test]=asn1_encode_test.c
345
  INCLUDE[asn1_encode_test]=../include
R
Richard Levitte 已提交
346
  DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
347

348
  # Internal test programs.  These are essentially a collection of internal
349 350 351
  # 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 已提交
352
  # programs are forcibly linked with the static libraries, where all symbols
353 354 355 356
  # 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' -}]
357
    PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
358
                     tls13encryptiontest wpackettest
359 360 361
    IF[{- !$disabled{poly1305} -}]
      PROGRAMS_NO_INST=poly1305_internal_test
    ENDIF
A
Andy Polyakov 已提交
362 363 364
    IF[{- !$disabled{chacha} -}]
      PROGRAMS_NO_INST=chacha_internal_test
    ENDIF
365 366 367
    IF[{- !$disabled{siphash} -}]
      PROGRAMS_NO_INST=siphash_internal_test
    ENDIF
368

R
Richard Levitte 已提交
369
    SOURCE[poly1305_internal_test]=poly1305_internal_test.c
370
    INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
371
    DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
372

R
Richard Levitte 已提交
373
    SOURCE[chacha_internal_test]=chacha_internal_test.c
A
Andy Polyakov 已提交
374
    INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
375
    DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
A
Andy Polyakov 已提交
376

R
Richard Levitte 已提交
377
    SOURCE[asn1_internal_test]=asn1_internal_test.c
378
    INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
379
    DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
380

R
Richard Levitte 已提交
381
    SOURCE[modes_internal_test]=modes_internal_test.c
382
    INCLUDE[modes_internal_test]=.. ../include
R
Richard Levitte 已提交
383
    DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
384

R
Richard Levitte 已提交
385
    SOURCE[x509_internal_test]=x509_internal_test.c
386
    INCLUDE[x509_internal_test]=.. ../include
R
Richard Levitte 已提交
387
    DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
388

R
Richard Levitte 已提交
389
    SOURCE[tls13encryptiontest]=tls13encryptiontest.c
390
    INCLUDE[tls13encryptiontest]=.. ../include
R
Richard Levitte 已提交
391
    DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
392

R
Richard Levitte 已提交
393
    SOURCE[wpackettest]=wpackettest.c
394
    INCLUDE[wpackettest]=../include
R
Richard Levitte 已提交
395
    DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
396

R
Richard Levitte 已提交
397
    SOURCE[siphash_internal_test]=siphash_internal_test.c
398
    INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
399
    DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
400
  ENDIF
401

402 403
  IF[{- !$disabled{mdc2} -}]
    PROGRAMS_NO_INST=mdc2_internal_test
404
  ENDIF
405

R
Richard Levitte 已提交
406
  SOURCE[mdc2_internal_test]=mdc2_internal_test.c
407
  INCLUDE[mdc2_internal_test]=.. ../include
R
Richard Levitte 已提交
408
  DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
409 410 411 412 413 414

  # 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 已提交
415
    SOURCE[tls13secretstest]=tls13secretstest.c
416 417
    SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
    INCLUDE[tls13secretstest]=.. ../include
R
Richard Levitte 已提交
418
    DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
419
  ENDIF
420 421 422
ENDIF

{-
423
   use File::Spec::Functions;
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
   use File::Basename;
   use if $^O ne "VMS", 'File::Glob' => qw/glob/;

   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 .= <<"_____";

439
  PROGRAMS_NO_INST=buildtest_$name
440 441
  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  SOURCE[buildtest_$name]=buildtest_$name.c
442
  INCLUDE[buildtest_$name]=../include
443 444 445
  DEPEND[buildtest_$name]=../libssl ../libcrypto
_____
   }
446
-}