build.info 15.3 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 \
R
Rich Salz 已提交
45 46
          x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
          recordlentest drbgtest \
47
          time_offset_test pemtest ssl_cert_table_internal_test
M
Matt Caswell 已提交
48 49

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

R
Rich Salz 已提交
306 307 308 309
  SOURCE[drbgtest]=drbgtest.c
  INCLUDE[drbgtest]=../include . ..
  DEPEND[drbgtest]=../libcrypto libtestutil.a

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

314 315 316 317
  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

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

322 323 324 325
  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

326 327 328 329
  IF[{- !$disabled{psk} -}]
    PROGRAMS_NO_INST=dtls_mtu_test
    SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
    INCLUDE[dtls_mtu_test]=.. ../include
330
    DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
331 332
  ENDIF

R
Richard Levitte 已提交
333
  IF[{- !$disabled{shared} -}]
334 335 336
    PROGRAMS_NO_INST=shlibloadtest
    SOURCE[shlibloadtest]=shlibloadtest.c
    INCLUDE[shlibloadtest]=../include
337
    DEPEND[shlibloadtest]=libtestutil.a
338 339
  ENDIF

340
  IF[{- $disabled{shared} -}]
341
    PROGRAMS_NO_INST=cipher_overhead_test
R
Richard Levitte 已提交
342
    SOURCE[cipher_overhead_test]=cipher_overhead_test.c
343
    INCLUDE[cipher_overhead_test]=.. ../include
R
Richard Levitte 已提交
344
    DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
345
  ENDIF
346

R
Richard Levitte 已提交
347
  SOURCE[uitest]=uitest.c ../apps/apps.c ../apps/opt.c
348
  DEPEND[uitest.o]=../apps/progs.h
R
Richard Levitte 已提交
349
  INCLUDE[uitest]=.. ../include ../apps
R
Richard Levitte 已提交
350
  DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
R
Richard Levitte 已提交
351

R
Richard Levitte 已提交
352
  SOURCE[cipherbytes_test]=cipherbytes_test.c
353
  INCLUDE[cipherbytes_test]=.. ../include
R
Richard Levitte 已提交
354
  DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
355

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

T
Todd Short 已提交
360 361 362 363
  SOURCE[time_offset_test]=time_offset_test.c
  INCLUDE[time_offset_test]=.. ../include
  DEPEND[time_offset_test]=../libcrypto libtestutil.a

364
  # Internal test programs.  These are essentially a collection of internal
365 366 367
  # 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 已提交
368
  # programs are forcibly linked with the static libraries, where all symbols
369 370 371 372
  # 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' -}]
373
    PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
374
                     tls13encryptiontest wpackettest
375 376 377
    IF[{- !$disabled{poly1305} -}]
      PROGRAMS_NO_INST=poly1305_internal_test
    ENDIF
A
Andy Polyakov 已提交
378 379 380
    IF[{- !$disabled{chacha} -}]
      PROGRAMS_NO_INST=chacha_internal_test
    ENDIF
381 382 383
    IF[{- !$disabled{siphash} -}]
      PROGRAMS_NO_INST=siphash_internal_test
    ENDIF
384

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

R
Richard Levitte 已提交
389
    SOURCE[chacha_internal_test]=chacha_internal_test.c
A
Andy Polyakov 已提交
390
    INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
391
    DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
A
Andy Polyakov 已提交
392

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

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

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

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

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

R
Richard Levitte 已提交
413
    SOURCE[siphash_internal_test]=siphash_internal_test.c
414
    INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
415
    DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
416
  ENDIF
417

418 419
  IF[{- !$disabled{mdc2} -}]
    PROGRAMS_NO_INST=mdc2_internal_test
420
  ENDIF
421

R
Richard Levitte 已提交
422
  SOURCE[mdc2_internal_test]=mdc2_internal_test.c
423
  INCLUDE[mdc2_internal_test]=.. ../include
R
Richard Levitte 已提交
424
  DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
425 426 427 428 429 430

  # 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 已提交
431
    SOURCE[tls13secretstest]=tls13secretstest.c
432 433
    SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
    INCLUDE[tls13secretstest]=.. ../include
R
Richard Levitte 已提交
434
    DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
435
  ENDIF
436 437 438
ENDIF

{-
439
   use File::Spec::Functions;
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
   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 .= <<"_____";

455
  PROGRAMS_NO_INST=buildtest_$name
456 457
  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  SOURCE[buildtest_$name]=buildtest_$name.c
458
  INCLUDE[buildtest_$name]=../include
459 460 461
  DEPEND[buildtest_$name]=../libssl ../libcrypto
_____
   }
462
-}