build.info 15.0 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 16
          {- rebase_files("../apps", $target{apps_aux_src}) -} \
          testutil/test_main.c testutil/main.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 \
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 \
45
          x509_time_test x509_dup_cert_test x509_check_cert_pkey_test recordlentest \
46
          time_offset_test pemtest
M
Matt Caswell 已提交
47 48

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

R
Richard Levitte 已提交
120
  SOURCE[randtest]=randtest.c
121
  INCLUDE[randtest]=../include
R
Richard Levitte 已提交
122
  DEPEND[randtest]=../libcrypto libtestutil.a
123

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

309 310 311 312
  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

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

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

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

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

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

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

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

T
Todd Short 已提交
350 351 352 353
  SOURCE[time_offset_test]=time_offset_test.c
  INCLUDE[time_offset_test]=.. ../include
  DEPEND[time_offset_test]=../libcrypto libtestutil.a

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

R
Richard Levitte 已提交
375
    SOURCE[poly1305_internal_test]=poly1305_internal_test.c
376
    INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
377
    DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
378

R
Richard Levitte 已提交
379
    SOURCE[chacha_internal_test]=chacha_internal_test.c
A
Andy Polyakov 已提交
380
    INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
381
    DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
A
Andy Polyakov 已提交
382

R
Richard Levitte 已提交
383
    SOURCE[asn1_internal_test]=asn1_internal_test.c
384
    INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
385
    DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
386

R
Richard Levitte 已提交
387
    SOURCE[modes_internal_test]=modes_internal_test.c
388
    INCLUDE[modes_internal_test]=.. ../include
R
Richard Levitte 已提交
389
    DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
390

R
Richard Levitte 已提交
391
    SOURCE[x509_internal_test]=x509_internal_test.c
392
    INCLUDE[x509_internal_test]=.. ../include
R
Richard Levitte 已提交
393
    DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
394

R
Richard Levitte 已提交
395
    SOURCE[tls13encryptiontest]=tls13encryptiontest.c
396
    INCLUDE[tls13encryptiontest]=.. ../include
R
Richard Levitte 已提交
397
    DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
398

R
Richard Levitte 已提交
399
    SOURCE[wpackettest]=wpackettest.c
400
    INCLUDE[wpackettest]=../include
R
Richard Levitte 已提交
401
    DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
402

R
Richard Levitte 已提交
403
    SOURCE[siphash_internal_test]=siphash_internal_test.c
404
    INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
405
    DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
406
  ENDIF
407

408 409
  IF[{- !$disabled{mdc2} -}]
    PROGRAMS_NO_INST=mdc2_internal_test
410
  ENDIF
411

R
Richard Levitte 已提交
412
  SOURCE[mdc2_internal_test]=mdc2_internal_test.c
413
  INCLUDE[mdc2_internal_test]=.. ../include
R
Richard Levitte 已提交
414
  DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
415 416 417 418 419 420

  # 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 已提交
421
    SOURCE[tls13secretstest]=tls13secretstest.c
422 423
    SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
    INCLUDE[tls13secretstest]=.. ../include
R
Richard Levitte 已提交
424
    DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
425
  ENDIF
426 427 428
ENDIF

{-
429
   use File::Spec::Functions;
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444
   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 .= <<"_____";

445
  PROGRAMS_NO_INST=buildtest_$name
446 447
  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  SOURCE[buildtest_$name]=buildtest_$name.c
448
  INCLUDE[buildtest_$name]=../include
449 450 451
  DEPEND[buildtest_$name]=../libssl ../libcrypto
_____
   }
452
-}