build.info 16.7 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 \
J
Johannes Bauer 已提交
44 45
          pkey_meth_test pkey_meth_kdf_test uitest cipherbytes_test \
          asn1_encode_test asn1_string_table_test \
R
Rich Salz 已提交
46
          x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
47
          recordlentest drbgtest sslbuffertest \
48 49
          time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
          servername_test
M
Matt Caswell 已提交
50 51

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

R
Richard Levitte 已提交
159
  SOURCE[evp_extra_test]=evp_extra_test.c
P
Paul Yang 已提交
160
  INCLUDE[evp_extra_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
161
  DEPEND[evp_extra_test]=../libcrypto libtestutil.a
162

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

J
Johannes Bauer 已提交
296 297 298 299
  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 已提交
300
  SOURCE[x509_time_test]=x509_time_test.c
301
  INCLUDE[x509_time_test]=.. ../include
R
Richard Levitte 已提交
302
  DEPEND[x509_time_test]=../libcrypto libtestutil.a
303

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

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

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
  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

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

324 325 326 327
  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

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

332 333 334 335
  SOURCE[servername_test]=servername_test.c
  INCLUDE[servername_test]=.. ../include
  DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a

336 337 338 339
  IF[{- !$disabled{psk} -}]
    PROGRAMS_NO_INST=dtls_mtu_test
    SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
    INCLUDE[dtls_mtu_test]=.. ../include
340
    DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
341 342
  ENDIF

R
Richard Levitte 已提交
343
  IF[{- !$disabled{shared} -}]
344 345 346
    PROGRAMS_NO_INST=shlibloadtest
    SOURCE[shlibloadtest]=shlibloadtest.c
    INCLUDE[shlibloadtest]=../include
347
    DEPEND[shlibloadtest]=libtestutil.a
348 349
  ENDIF

350
  IF[{- $disabled{shared} -}]
351
    PROGRAMS_NO_INST=cipher_overhead_test
R
Richard Levitte 已提交
352
    SOURCE[cipher_overhead_test]=cipher_overhead_test.c
353
    INCLUDE[cipher_overhead_test]=.. ../include
R
Richard Levitte 已提交
354
    DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
355
  ENDIF
356

R
Richard Levitte 已提交
357
  SOURCE[uitest]=uitest.c ../apps/apps.c ../apps/opt.c
358
  DEPEND[uitest.o]=../apps/progs.h
R
Richard Levitte 已提交
359
  INCLUDE[uitest]=.. ../include ../apps
R
Richard Levitte 已提交
360
  DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
R
Richard Levitte 已提交
361

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

R
Richard Levitte 已提交
366
  SOURCE[asn1_encode_test]=asn1_encode_test.c
367
  INCLUDE[asn1_encode_test]=../include
R
Richard Levitte 已提交
368
  DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
369

370 371 372 373
  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 已提交
374 375 376 377
  SOURCE[time_offset_test]=time_offset_test.c
  INCLUDE[time_offset_test]=.. ../include
  DEPEND[time_offset_test]=../libcrypto libtestutil.a

378
  # Internal test programs.  These are essentially a collection of internal
379 380 381
  # 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 已提交
382
  # programs are forcibly linked with the static libraries, where all symbols
383 384 385 386
  # 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' -}]
387
    PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
388
                     tls13encryptiontest wpackettest ctype_internal_test
389 390 391
    IF[{- !$disabled{poly1305} -}]
      PROGRAMS_NO_INST=poly1305_internal_test
    ENDIF
A
Andy Polyakov 已提交
392 393 394
    IF[{- !$disabled{chacha} -}]
      PROGRAMS_NO_INST=chacha_internal_test
    ENDIF
395 396 397
    IF[{- !$disabled{siphash} -}]
      PROGRAMS_NO_INST=siphash_internal_test
    ENDIF
R
Ronald Tse 已提交
398 399 400
    IF[{- !$disabled{sm4} -}]
      PROGRAMS_NO_INST=sm4_internal_test
    ENDIF
401

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

R
Richard Levitte 已提交
406
    SOURCE[chacha_internal_test]=chacha_internal_test.c
A
Andy Polyakov 已提交
407
    INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
408
    DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
A
Andy Polyakov 已提交
409

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

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

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

R
Richard Levitte 已提交
422
    SOURCE[tls13encryptiontest]=tls13encryptiontest.c
423
    INCLUDE[tls13encryptiontest]=.. ../include
R
Richard Levitte 已提交
424
    DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
425

R
Richard Levitte 已提交
426
    SOURCE[wpackettest]=wpackettest.c
427
    INCLUDE[wpackettest]=../include
R
Richard Levitte 已提交
428
    DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
429

430 431 432 433
    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 已提交
434
    SOURCE[siphash_internal_test]=siphash_internal_test.c
435
    INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
R
Richard Levitte 已提交
436
    DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
R
Ronald Tse 已提交
437 438 439 440

    SOURCE[sm4_internal_test]=sm4_internal_test.c
    INCLUDE[sm4_internal_test]=.. ../include ../crypto/include
    DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
441
  ENDIF
442

443 444
  IF[{- !$disabled{mdc2} -}]
    PROGRAMS_NO_INST=mdc2_internal_test
445
  ENDIF
446

R
Richard Levitte 已提交
447
  SOURCE[mdc2_internal_test]=mdc2_internal_test.c
448
  INCLUDE[mdc2_internal_test]=.. ../include
R
Richard Levitte 已提交
449
  DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
450

451 452 453 454 455
  PROGRAMS_NO_INST=asn1_time_test
  SOURCE[asn1_time_test]=asn1_time_test.c
  INCLUDE[asn1_time_test]=.. ../include
  DEPEND[asn1_time_test]=../libcrypto libtestutil.a

456 457 458 459 460
  # 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 已提交
461
    SOURCE[tls13secretstest]=tls13secretstest.c
462 463
    SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
    INCLUDE[tls13secretstest]=.. ../include
R
Richard Levitte 已提交
464
    DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
465
  ENDIF
466 467 468 469

  SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
  INCLUDE[sslbuffertest]=../include
  DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
470 471 472
ENDIF

{-
473
   use File::Spec::Functions;
474
   use File::Basename;
475
   use OpenSSL::Glob;
476 477 478 479 480 481 482 483 484 485 486 487 488

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

489
  PROGRAMS_NO_INST=buildtest_$name
490 491
  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  SOURCE[buildtest_$name]=buildtest_$name.c
492
  INCLUDE[buildtest_$name]=../include
493 494 495
  DEPEND[buildtest_$name]=../libssl ../libcrypto
_____
   }
496
-}