build.info 19.1 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
          testutil/test_cleanup.c testutil/main.c testutil/init.c
16
  INCLUDE[libtestutil.a]=../include
17 18
  DEPEND[libtestutil.a]=../libcrypto

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

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

56 57 58 59
  SOURCE[versions]=versions.c
  INCLUDE[versions]=../include
  DEPEND[versions]=../libcrypto

M
Matt Caswell 已提交
60
  SOURCE[aborttest]=aborttest.c
61
  INCLUDE[aborttest]=../include
M
Matt Caswell 已提交
62 63
  DEPEND[aborttest]=../libcrypto

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

R
Richard Levitte 已提交
68
  SOURCE[test_test]=test_test.c
69
  INCLUDE[test_test]=../include
R
Richard Levitte 已提交
70
  DEPEND[test_test]=../libcrypto libtestutil.a
P
Pauli 已提交
71

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

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

  SOURCE[ectest]=ectest.c
81
  INCLUDE[ectest]=../include
82
  DEPEND[ectest]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
83

R
Rich Salz 已提交
84
  SOURCE[ecstresstest]=ecstresstest.c
85
  INCLUDE[ecstresstest]=../include
R
Rich Salz 已提交
86 87
  DEPEND[ecstresstest]=../libcrypto libtestutil.a

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

J
Jack Lloyd 已提交
92 93 94 95 96 97 98 99
  SOURCE[sm2sigtest]=sm2sigtest.c
  INCLUDE[sm2sigtest]=../include
  DEPEND[sm2sigtest]=../libcrypto libtestutil.a

  SOURCE[sm2crypttest]=sm2crypttest.c
  INCLUDE[sm2crypttest]=../include
  DEPEND[sm2crypttest]=../libcrypto libtestutil.a

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

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

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

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

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

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

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

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

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

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

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

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

R
Richard Levitte 已提交
148
  SOURCE[casttest]=casttest.c
149
  INCLUDE[casttest]=../include
R
Richard Levitte 已提交
150
  DEPEND[casttest]=../libcrypto libtestutil.a
151

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

M
Matt Caswell 已提交
156
  SOURCE[ssltest_old]=ssltest_old.c
157
  INCLUDE[ssltest_old]=.. ../include
M
Matt Caswell 已提交
158
  DEPEND[ssltest_old]=../libcrypto ../libssl
159

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

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

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

P
Paul Yang 已提交
172
  SOURCE[rsa_mp_test]=rsa_mp_test.c
173
  INCLUDE[rsa_mp_test]=../include
P
Paul Yang 已提交
174 175
  DEPEND[rsa_mp_test]=../libcrypto libtestutil.a

M
Matt Caswell 已提交
176
  SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c
177
  INCLUDE[fatalerrtest]=../include
M
Matt Caswell 已提交
178
  DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
M
Matt Caswell 已提交
179 180 181 182

  SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c
  INCLUDE[tls13ccstest]=../include
  DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
M
Matt Caswell 已提交
183

M
Matt Caswell 已提交
184
  SOURCE[evp_test]=evp_test.c
185
  INCLUDE[evp_test]=../include
R
Rich Salz 已提交
186
  DEPEND[evp_test]=../libcrypto libtestutil.a
187

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

M
Matt Caswell 已提交
192
  SOURCE[igetest]=igetest.c
193
  INCLUDE[igetest]=../include
194
  DEPEND[igetest]=../libcrypto libtestutil.a
195

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

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

R
Richard Levitte 已提交
204
  SOURCE[v3ext]=v3ext.c
205
  INCLUDE[v3ext]=../include
R
Richard Levitte 已提交
206
  DEPEND[v3ext]=../libcrypto libtestutil.a
R
Rich Salz 已提交
207

M
Matt Caswell 已提交
208
  SOURCE[danetest]=danetest.c
209
  INCLUDE[danetest]=../include
R
Rich Salz 已提交
210
  DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
211

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

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

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

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

R
Richard Levitte 已提交
228
  SOURCE[packettest]=packettest.c
229
  INCLUDE[packettest]=../include
R
Richard Levitte 已提交
230
  DEPEND[packettest]=../libcrypto libtestutil.a
231

M
Matt Caswell 已提交
232
  SOURCE[asynctest]=asynctest.c
233
  INCLUDE[asynctest]=../include
M
Matt Caswell 已提交
234
  DEPEND[asynctest]=../libcrypto
235

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

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

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

R
Richard Levitte 已提交
248
  SOURCE[stack_test]=stack_test.c
249
  INCLUDE[stack_test]=../include
R
Richard Levitte 已提交
250
  DEPEND[stack_test]=../libcrypto libtestutil.a
P
Pauli 已提交
251

R
Richard Levitte 已提交
252
  SOURCE[lhash_test]=lhash_test.c
253
  INCLUDE[lhash_test]=../include
R
Richard Levitte 已提交
254
  DEPEND[lhash_test]=../libcrypto libtestutil.a
255

M
Matt Caswell 已提交
256
  SOURCE[dtlsv1listentest]=dtlsv1listentest.c
257
  INCLUDE[dtlsv1listentest]=../include
258
  DEPEND[dtlsv1listentest]=../libssl libtestutil.a
R
Rich Salz 已提交
259

R
Richard Levitte 已提交
260
  SOURCE[ct_test]=ct_test.c
261
  INCLUDE[ct_test]=../include
R
Richard Levitte 已提交
262
  DEPEND[ct_test]=../libcrypto libtestutil.a
263

R
Richard Levitte 已提交
264
  SOURCE[threadstest]=threadstest.c
265
  INCLUDE[threadstest]=../include
R
Richard Levitte 已提交
266
  DEPEND[threadstest]=../libcrypto libtestutil.a
267

R
Richard Levitte 已提交
268
  SOURCE[afalgtest]=afalgtest.c
269
  INCLUDE[afalgtest]=../include
R
Richard Levitte 已提交
270
  DEPEND[afalgtest]=../libcrypto libtestutil.a
C
clucey 已提交
271

R
Richard Levitte 已提交
272
  SOURCE[d2i_test]=d2i_test.c
273
  INCLUDE[d2i_test]=../include
R
Richard Levitte 已提交
274
  DEPEND[d2i_test]=../libcrypto libtestutil.a
E
Emilia Kasper 已提交
275

R
Richard Levitte 已提交
276
  SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
277
  INCLUDE[ssl_test_ctx_test]=../include
R
Richard Levitte 已提交
278
  DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
E
Emilia Kasper 已提交
279

R
Richard Levitte 已提交
280
  SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
281
  INCLUDE[ssl_test]=../include
R
Richard Levitte 已提交
282
  DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
E
Emilia Kasper 已提交
283

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

288
  INCLUDE[ssl_test_ctx.o]=../include
289
  INCLUDE[handshake_helper.o]=.. ../include
R
Rich Salz 已提交
290
  INCLUDE[ssltestlib.o]=.. ../include
291

R
Richard Levitte 已提交
292
  SOURCE[x509aux]=x509aux.c
293
  INCLUDE[x509aux]=../include
R
Richard Levitte 已提交
294
  DEPEND[x509aux]=../libcrypto libtestutil.a
M
Matt Caswell 已提交
295

R
Richard Levitte 已提交
296
  SOURCE[asynciotest]=asynciotest.c ssltestlib.c
297
  INCLUDE[asynciotest]=../include
R
Richard Levitte 已提交
298
  DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
299

300 301 302 303
  SOURCE[bio_callback_test]=bio_callback_test.c
  INCLUDE[bio_callback_test]=../include
  DEPEND[bio_callback_test]=../libcrypto libtestutil.a

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

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

  SOURCE[ocspapitest]=ocspapitest.c
313
  INCLUDE[ocspapitest]=../include
B
Benjamin Kaduk 已提交
314
  DEPEND[ocspapitest]=../libcrypto libtestutil.a
315

R
Richard Levitte 已提交
316
  SOURCE[dtlstest]=dtlstest.c ssltestlib.c
317
  INCLUDE[dtlstest]=../include
R
Richard Levitte 已提交
318
  DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
A
Andy Polyakov 已提交
319

R
Richard Levitte 已提交
320
  SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
321
  INCLUDE[sslcorrupttest]=../include
R
Richard Levitte 已提交
322
  DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
323

R
Richard Levitte 已提交
324
  SOURCE[bio_enc_test]=bio_enc_test.c
A
Andy Polyakov 已提交
325
  INCLUDE[bio_enc_test]=../include
R
Richard Levitte 已提交
326
  DEPEND[bio_enc_test]=../libcrypto libtestutil.a
327

R
Richard Levitte 已提交
328
  SOURCE[pkey_meth_test]=pkey_meth_test.c
329
  INCLUDE[pkey_meth_test]=../include
R
Richard Levitte 已提交
330
  DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
331

J
Johannes Bauer 已提交
332 333 334 335
  SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
  INCLUDE[pkey_meth_kdf_test]=../include
  DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a

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

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

R
Rich Salz 已提交
344
  SOURCE[drbgtest]=drbgtest.c
345
  INCLUDE[drbgtest]=../include
R
Rich Salz 已提交
346 347
  DEPEND[drbgtest]=../libcrypto libtestutil.a

P
Patrick Steuer 已提交
348 349 350 351
  SOURCE[drbg_cavs_test]=drbg_cavs_test.c drbg_cavs_data.c
  INCLUDE[drbg_cavs_test]=../include . ..
  DEPEND[drbg_cavs_test]=../libcrypto libtestutil.a

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

356 357 358 359
  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

360
  SOURCE[pemtest]=pemtest.c
361
  INCLUDE[pemtest]=../include
362 363
  DEPEND[pemtest]=../libcrypto libtestutil.a

364 365 366 367
  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

368
  SOURCE[ciphername_test]=ciphername_test.c
369
  INCLUDE[ciphername_test]=../include
370 371
  DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a

372
  SOURCE[servername_test]=servername_test.c
373
  INCLUDE[servername_test]=../include
374 375
  DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a

M
Matt Caswell 已提交
376 377 378 379 380 381
  IF[{- !$disabled{cms} -}]
    PROGRAMS_NO_INST=cmsapitest
    SOURCE[cmsapitest]=cmsapitest.c
    INCLUDE[cmsapitest]=../include
    DEPEND[cmsapitest]=../libcrypto libtestutil.a
  ENDIF
M
Matt Caswell 已提交
382

383 384 385 386
  IF[{- !$disabled{psk} -}]
    PROGRAMS_NO_INST=dtls_mtu_test
    SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
    INCLUDE[dtls_mtu_test]=.. ../include
387
    DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
388 389
  ENDIF

R
Richard Levitte 已提交
390
  IF[{- !$disabled{shared} -}]
391 392
    PROGRAMS_NO_INST=shlibloadtest
    SOURCE[shlibloadtest]=shlibloadtest.c
393
    INCLUDE[shlibloadtest]=../include ../crypto/include
394
    DEPEND[shlibloadtest]=libtestutil.a
395 396
  ENDIF

397
  IF[{- $disabled{shared} -}]
398
    PROGRAMS_NO_INST=cipher_overhead_test
R
Richard Levitte 已提交
399
    SOURCE[cipher_overhead_test]=cipher_overhead_test.c
400
    INCLUDE[cipher_overhead_test]=.. ../include
R
Richard Levitte 已提交
401
    DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
402
  ENDIF
403

404 405 406
  SOURCE[uitest]=uitest.c \
                 {- rebase_files("../apps",
                                 split(/\s+/, $target{apps_init_src})) -}
R
Richard Levitte 已提交
407
  INCLUDE[uitest]=.. ../include ../apps
408
  DEPEND[uitest]=../apps/libapps.a ../libcrypto ../libssl libtestutil.a
R
Richard Levitte 已提交
409

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

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

418 419 420 421
  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 已提交
422
  SOURCE[time_offset_test]=time_offset_test.c
423
  INCLUDE[time_offset_test]=../include
T
Todd Short 已提交
424 425
  DEPEND[time_offset_test]=../libcrypto libtestutil.a

426 427 428 429
  SOURCE[conf_include_test]=conf_include_test.c
  INCLUDE[conf_include_test]=../include
  DEPEND[conf_include_test]=../libcrypto libtestutil.a

430
  # Internal test programs.  These are essentially a collection of internal
431 432 433
  # 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 已提交
434
  # programs are forcibly linked with the static libraries, where all symbols
435 436 437 438
  # 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' -}]
439
    PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
440 441
                     tls13encryptiontest wpackettest ctype_internal_test \
                     rdrand_sanitytest
442 443 444
    IF[{- !$disabled{poly1305} -}]
      PROGRAMS_NO_INST=poly1305_internal_test
    ENDIF
A
Andy Polyakov 已提交
445 446 447
    IF[{- !$disabled{chacha} -}]
      PROGRAMS_NO_INST=chacha_internal_test
    ENDIF
448 449 450
    IF[{- !$disabled{siphash} -}]
      PROGRAMS_NO_INST=siphash_internal_test
    ENDIF
R
Ronald Tse 已提交
451 452 453
    IF[{- !$disabled{sm4} -}]
      PROGRAMS_NO_INST=sm4_internal_test
    ENDIF
M
Matt Caswell 已提交
454 455 456
    IF[{- !$disabled{ec} -}]
      PROGRAMS_NO_INST=curve448_internal_test
    ENDIF
457

R
Richard Levitte 已提交
458
    SOURCE[poly1305_internal_test]=poly1305_internal_test.c
459
    INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
460
    DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
461

R
Richard Levitte 已提交
462
    SOURCE[chacha_internal_test]=chacha_internal_test.c
A
Andy Polyakov 已提交
463
    INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
464
    DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
A
Andy Polyakov 已提交
465

R
Richard Levitte 已提交
466
    SOURCE[asn1_internal_test]=asn1_internal_test.c
467
    INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
468
    DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
469

R
Richard Levitte 已提交
470
    SOURCE[modes_internal_test]=modes_internal_test.c
471
    INCLUDE[modes_internal_test]=.. ../include
R
Richard Levitte 已提交
472
    DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
473

R
Richard Levitte 已提交
474
    SOURCE[x509_internal_test]=x509_internal_test.c
475
    INCLUDE[x509_internal_test]=.. ../include
R
Richard Levitte 已提交
476
    DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
477

R
Richard Levitte 已提交
478
    SOURCE[tls13encryptiontest]=tls13encryptiontest.c
479
    INCLUDE[tls13encryptiontest]=.. ../include
R
Richard Levitte 已提交
480
    DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
481

R
Richard Levitte 已提交
482
    SOURCE[wpackettest]=wpackettest.c
483
    INCLUDE[wpackettest]=../include
R
Richard Levitte 已提交
484
    DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
485

486 487 488 489
    SOURCE[ctype_internal_test]=ctype_internal_test.c
    INCLUDE[ctype_internal_test]=.. ../crypto/include ../include
    DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a

R
Richard Levitte 已提交
490
    SOURCE[siphash_internal_test]=siphash_internal_test.c
491
    INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
492
    DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
R
Ronald Tse 已提交
493 494 495 496

    SOURCE[sm4_internal_test]=sm4_internal_test.c
    INCLUDE[sm4_internal_test]=.. ../include ../crypto/include
    DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
497 498 499 500

    SOURCE[curve448_internal_test]=curve448_internal_test.c
    INCLUDE[curve448_internal_test]=.. ../include ../crypto/ec/curve448
    DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
501 502 503 504

    SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c
    INCLUDE[rdrand_sanitytest]=../include
    DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a
505
  ENDIF
506

507 508
  IF[{- !$disabled{mdc2} -}]
    PROGRAMS_NO_INST=mdc2_internal_test
509
  ENDIF
510

R
Richard Levitte 已提交
511
  SOURCE[mdc2_internal_test]=mdc2_internal_test.c
512
  INCLUDE[mdc2_internal_test]=.. ../include
R
Richard Levitte 已提交
513
  DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
514

515 516
  PROGRAMS_NO_INST=asn1_time_test
  SOURCE[asn1_time_test]=asn1_time_test.c
517
  INCLUDE[asn1_time_test]=../include
518 519
  DEPEND[asn1_time_test]=../libcrypto libtestutil.a

520 521 522 523 524
  # 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 已提交
525
    SOURCE[tls13secretstest]=tls13secretstest.c
526 527
    SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
    INCLUDE[tls13secretstest]=.. ../include
R
Richard Levitte 已提交
528
    DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
529
  ENDIF
530 531 532 533

  SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
  INCLUDE[sslbuffertest]=../include
  DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
534 535 536 537

  SOURCE[sysdefaulttest]=sysdefaulttest.c
  INCLUDE[sysdefaulttest]=../include
  DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a
538 539 540 541

  SOURCE[errtest]=errtest.c
  INCLUDE[errtest]=../include
  DEPEND[errtest]=../libcrypto libtestutil.a
542 543 544
ENDIF

{-
545
   use File::Spec::Functions;
546
   use File::Basename;
547
   use OpenSSL::Glob;
548 549

   my @nogo_headers = ( "asn1_mac.h",
F
FdaSilvaYY 已提交
550
                        "opensslconf.h",
551 552
                        "__decc_include_prologue.h",
                        "__decc_include_epilogue.h" );
553
   my @nogo_headers_re = ( qr/.*err\.h/ );
554 555 556 557 558 559 560
   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;
561
       next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
562 563
       $OUT .= <<"_____";

564
  PROGRAMS_NO_INST=buildtest_$name
565 566
  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  SOURCE[buildtest_$name]=buildtest_$name.c
567
  INCLUDE[buildtest_$name]=../include
568 569 570
  DEPEND[buildtest_$name]=../libssl ../libcrypto
_____
   }
571
-}