build.info 13.5 KB
Newer Older
R
Richard Levitte 已提交
1 2 3 4 5 6 7
{-
     use File::Spec::Functions;
     sub rebase_files
     {
         my ($base, $files) = @_;
         return join(" ", map { "$base/$_" } split(/\s+/, $files));
     }
R
Richard Levitte 已提交
8 9 10
     our $apps_extra =
         $config{target} =~ /^vms-/ ? "../apps/vms_term_sock.c" : "";
     ""
R
Richard Levitte 已提交
11
-}
M
Matt Caswell 已提交
12
IF[{- !$disabled{tests} -}]
13
  PROGRAMS_NO_INST=\
P
Pauli 已提交
14
          aborttest test_test \
R
Rich Salz 已提交
15
          sanitytest exdatatest bntest \
M
Matt Caswell 已提交
16
          ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
17
          md2test \
18
          hmactest \
19
          rc2test rc4test rc5test \
M
Matt Caswell 已提交
20
          destest sha1test sha256t sha512t \
21
          mdc2test \
M
Matt Caswell 已提交
22 23
          randtest dhtest enginetest casttest \
          bftest ssltest_old dsatest exptest rsa_test \
R
Rich Salz 已提交
24
          evp_test evp_extra_test igetest v3nametest v3ext \
25
          crltest danetest bad_dtls_test lhash_test \
M
Matt Caswell 已提交
26
          constant_time_test verify_extra_test clienthellotest \
P
Pauli 已提交
27
          packettest asynctest secmemtest srptest memleaktest stack_test \
M
Matt Caswell 已提交
28
          dtlsv1listentest ct_test threadstest afalgtest d2i_test \
29
          ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
30
          bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
31
          pkey_meth_test uitest cipherbytes_test x509_time_test recordlentest
M
Matt Caswell 已提交
32 33

  SOURCE[aborttest]=aborttest.c
34
  INCLUDE[aborttest]=../include
M
Matt Caswell 已提交
35 36
  DEPEND[aborttest]=../libcrypto

R
Rich Salz 已提交
37 38 39
  SOURCE[sanitytest]=sanitytest.c
  INCLUDE[sanitytest]=../include
  DEPEND[sanitytest]=../libcrypto
M
Matt Caswell 已提交
40

P
Pauli 已提交
41 42 43 44
  SOURCE[test_test]=test_test.c testutil.c test_main.c
  INCLUDE[test_test]=.. ../include
  DEPEND[test_test]=../libcrypto

R
Rich Salz 已提交
45 46 47 48
  SOURCE[exdatatest]=exdatatest.c
  INCLUDE[exdatatest]=../include
  DEPEND[exdatatest]=../libcrypto

R
Rich Salz 已提交
49
  SOURCE[bntest]=bntest.c testutil.c test_main_custom.c
50
  INCLUDE[bntest]=.. ../crypto/include ../include
M
Matt Caswell 已提交
51 52 53
  DEPEND[bntest]=../libcrypto

  SOURCE[ectest]=ectest.c
54
  INCLUDE[ectest]=.. ../include
M
Matt Caswell 已提交
55 56 57
  DEPEND[ectest]=../libcrypto

  SOURCE[ecdsatest]=ecdsatest.c
58
  INCLUDE[ecdsatest]=../include
M
Matt Caswell 已提交
59 60 61
  DEPEND[ecdsatest]=../libcrypto

  SOURCE[ecdhtest]=ecdhtest.c
62
  INCLUDE[ecdhtest]=../include
M
Matt Caswell 已提交
63 64 65
  DEPEND[ecdhtest]=../libcrypto

  SOURCE[gmdifftest]=gmdifftest.c
66
  INCLUDE[gmdifftest]=../include
M
Matt Caswell 已提交
67 68 69
  DEPEND[gmdifftest]=../libcrypto

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

  SOURCE[ideatest]=ideatest.c
74
  INCLUDE[ideatest]=../include
M
Matt Caswell 已提交
75 76 77
  DEPEND[ideatest]=../libcrypto

  SOURCE[md2test]=md2test.c
78
  INCLUDE[md2test]=../include
M
Matt Caswell 已提交
79 80 81
  DEPEND[md2test]=../libcrypto

  SOURCE[hmactest]=hmactest.c
82
  INCLUDE[hmactest]=../include
M
Matt Caswell 已提交
83 84 85
  DEPEND[hmactest]=../libcrypto

  SOURCE[rc2test]=rc2test.c
86
  INCLUDE[rc2test]=../include
M
Matt Caswell 已提交
87 88 89
  DEPEND[rc2test]=../libcrypto

  SOURCE[rc4test]=rc4test.c
90
  INCLUDE[rc4test]=../include
M
Matt Caswell 已提交
91 92 93
  DEPEND[rc4test]=../libcrypto

  SOURCE[rc5test]=rc5test.c
94
  INCLUDE[rc5test]=../include
M
Matt Caswell 已提交
95 96 97
  DEPEND[rc5test]=../libcrypto

  SOURCE[destest]=destest.c
98
  INCLUDE[destest]=../include
M
Matt Caswell 已提交
99 100 101
  DEPEND[destest]=../libcrypto

  SOURCE[sha1test]=sha1test.c
102
  INCLUDE[sha1test]=../include
M
Matt Caswell 已提交
103 104 105
  DEPEND[sha1test]=../libcrypto

  SOURCE[sha256t]=sha256t.c
106
  INCLUDE[sha256t]=../include
M
Matt Caswell 已提交
107 108 109
  DEPEND[sha256t]=../libcrypto

  SOURCE[sha512t]=sha512t.c
110
  INCLUDE[sha512t]=../include
M
Matt Caswell 已提交
111 112 113
  DEPEND[sha512t]=../libcrypto

  SOURCE[mdc2test]=mdc2test.c
114
  INCLUDE[mdc2test]=../include
M
Matt Caswell 已提交
115 116 117
  DEPEND[mdc2test]=../libcrypto

  SOURCE[randtest]=randtest.c
118
  INCLUDE[randtest]=../include
M
Matt Caswell 已提交
119
  DEPEND[randtest]=../libcrypto
120

M
Matt Caswell 已提交
121
  SOURCE[dhtest]=dhtest.c
122
  INCLUDE[dhtest]=../include
M
Matt Caswell 已提交
123
  DEPEND[dhtest]=../libcrypto
124

M
Matt Caswell 已提交
125
  SOURCE[enginetest]=enginetest.c
126
  INCLUDE[enginetest]=../include
M
Matt Caswell 已提交
127
  DEPEND[enginetest]=../libcrypto
128

M
Matt Caswell 已提交
129
  SOURCE[casttest]=casttest.c
130
  INCLUDE[casttest]=../include
M
Matt Caswell 已提交
131
  DEPEND[casttest]=../libcrypto
132

M
Matt Caswell 已提交
133
  SOURCE[bftest]=bftest.c
134
  INCLUDE[bftest]=../include
M
Matt Caswell 已提交
135
  DEPEND[bftest]=../libcrypto
136

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

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

M
Matt Caswell 已提交
145
  SOURCE[exptest]=exptest.c
146
  INCLUDE[exptest]=../include
M
Matt Caswell 已提交
147
  DEPEND[exptest]=../libcrypto
148

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

M
Matt Caswell 已提交
153
  SOURCE[evp_test]=evp_test.c
154
  INCLUDE[evp_test]=../include
M
Matt Caswell 已提交
155
  DEPEND[evp_test]=../libcrypto
156

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

M
Matt Caswell 已提交
161
  SOURCE[igetest]=igetest.c
162
  INCLUDE[igetest]=.. ../include
M
Matt Caswell 已提交
163
  DEPEND[igetest]=../libcrypto
164

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

R
Rich Salz 已提交
169 170 171 172
  SOURCE[crltest]=crltest.c testutil.c test_main.c
  INCLUDE[crltest]=../include
  DEPEND[crltest]=../libcrypto

R
Rich Salz 已提交
173
  SOURCE[v3ext]=v3ext.c
174
  INCLUDE[v3ext]=../include
R
Rich Salz 已提交
175 176
  DEPEND[v3ext]=../libcrypto

M
Matt Caswell 已提交
177
  SOURCE[danetest]=danetest.c
178
  INCLUDE[danetest]=../include
M
Matt Caswell 已提交
179
  DEPEND[danetest]=../libcrypto ../libssl
180

M
Matt Caswell 已提交
181
  SOURCE[constant_time_test]=constant_time_test.c
182
  INCLUDE[constant_time_test]=.. ../include
M
Matt Caswell 已提交
183
  DEPEND[constant_time_test]=../libcrypto
184

M
Matt Caswell 已提交
185
  SOURCE[verify_extra_test]=verify_extra_test.c
186
  INCLUDE[verify_extra_test]=../include
M
Matt Caswell 已提交
187
  DEPEND[verify_extra_test]=../libcrypto
188

189
  SOURCE[clienthellotest]=clienthellotest.c testutil.c test_main_custom.c
190
  INCLUDE[clienthellotest]=../include
M
Matt Caswell 已提交
191
  DEPEND[clienthellotest]=../libcrypto ../libssl
192

193
  SOURCE[bad_dtls_test]=bad_dtls_test.c
194
  INCLUDE[bad_dtls_test]=../include
195 196
  DEPEND[bad_dtls_test]=../libcrypto ../libssl

M
Matt Caswell 已提交
197
  SOURCE[packettest]=packettest.c
198
  INCLUDE[packettest]=../include
M
Matt Caswell 已提交
199
  DEPEND[packettest]=../libcrypto
200

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

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

M
Matt Caswell 已提交
209
  SOURCE[srptest]=srptest.c
210
  INCLUDE[srptest]=../include
M
Matt Caswell 已提交
211
  DEPEND[srptest]=../libcrypto
212

M
Matt Caswell 已提交
213
  SOURCE[memleaktest]=memleaktest.c
214
  INCLUDE[memleaktest]=../include
M
Matt Caswell 已提交
215
  DEPEND[memleaktest]=../libcrypto
216

P
Pauli 已提交
217 218 219 220
  SOURCE[stack_test]=stack_test.c testutil.c test_main.c
  INCLUDE[stack_test]=.. ../include
  DEPEND[stack_test]=../libcrypto

221 222 223 224
  SOURCE[lhash_test]=lhash_test.c testutil.c test_main.c
  INCLUDE[lhash_test]=.. ../include
  DEPEND[lhash_test]=../libcrypto

M
Matt Caswell 已提交
225
  SOURCE[dtlsv1listentest]=dtlsv1listentest.c
226
  INCLUDE[dtlsv1listentest]=.. ../include
M
Matt Caswell 已提交
227
  DEPEND[dtlsv1listentest]=../libssl
R
Rich Salz 已提交
228

229
  SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.c
230
  INCLUDE[ct_test]=../crypto/include ../include
M
Matt Caswell 已提交
231
  DEPEND[ct_test]=../libcrypto
232

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

M
Matt Caswell 已提交
237
  SOURCE[afalgtest]=afalgtest.c
238
  INCLUDE[afalgtest]=.. ../include
M
Matt Caswell 已提交
239
  DEPEND[afalgtest]=../libcrypto
C
clucey 已提交
240

241
  SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
242
  INCLUDE[d2i_test]=.. ../include
M
Matt Caswell 已提交
243
  DEPEND[d2i_test]=../libcrypto
E
Emilia Kasper 已提交
244

245
  SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
246
  INCLUDE[ssl_test_ctx_test]=.. ../include
D
Dr. Stephen Henson 已提交
247
  DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl
E
Emilia Kasper 已提交
248

249
  SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
250
  INCLUDE[ssl_test]=.. ../include
M
Matt Caswell 已提交
251
  DEPEND[ssl_test]=../libcrypto ../libssl
E
Emilia Kasper 已提交
252

253
  SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.c
254
  INCLUDE[cipherlist_test]=.. ../include
E
Emilia Kasper 已提交
255 256
  DEPEND[cipherlist_test]=../libcrypto ../libssl

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

  SOURCE[x509aux]=x509aux.c
263
  INCLUDE[x509aux]=../include
264
  DEPEND[x509aux]=../libcrypto
M
Matt Caswell 已提交
265

M
Matt Caswell 已提交
266
  SOURCE[asynciotest]=asynciotest.c ssltestlib.c
267
  INCLUDE[asynciotest]=../include
M
Matt Caswell 已提交
268
  DEPEND[asynciotest]=../libcrypto ../libssl
269 270

  SOURCE[bioprinttest]=bioprinttest.c
271
  INCLUDE[bioprinttest]=../include
272
  DEPEND[bioprinttest]=../libcrypto
273

274
  SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
275
  INCLUDE[sslapitest]=../include ..
276
  DEPEND[sslapitest]=../libcrypto ../libssl
277

278
  SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
279 280
  INCLUDE[dtlstest]=../include .
  DEPEND[dtlstest]=../libcrypto ../libssl
A
Andy Polyakov 已提交
281

282 283 284 285
  SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c
  INCLUDE[sslcorrupttest]=../include .
  DEPEND[sslcorrupttest]=../libcrypto ../libssl

A
Andy Polyakov 已提交
286 287 288
  SOURCE[bio_enc_test]=bio_enc_test.c
  INCLUDE[bio_enc_test]=../include
  DEPEND[bio_enc_test]=../libcrypto
289

290 291 292 293
  SOURCE[pkey_meth_test]=pkey_meth_test.c testutil.c test_main.c
  INCLUDE[pkey_meth_test]=../include
  DEPEND[pkey_meth_test]=../libcrypto

294 295 296 297
  SOURCE[x509_time_test]=x509_time_test.c testutil.c test_main.c
  INCLUDE[x509_time_test]=.. ../include
  DEPEND[x509_time_test]=../libcrypto

298 299 300 301
  SOURCE[recordlentest]=recordlentest.c ssltestlib.c testutil.c test_main_custom.c
  INCLUDE[recordlentest]=../include .
  DEPEND[recordlentest]=../libcrypto ../libssl

302 303 304 305 306 307 308
  IF[{- !$disabled{psk} -}]
    PROGRAMS_NO_INST=dtls_mtu_test
    SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
    INCLUDE[dtls_mtu_test]=.. ../include
    DEPEND[dtls_mtu_test]=../libcrypto ../libssl
  ENDIF

R
Richard Levitte 已提交
309
  IF[{- !$disabled{shared} -}]
310 311 312 313 314
    PROGRAMS_NO_INST=shlibloadtest
    SOURCE[shlibloadtest]=shlibloadtest.c
    INCLUDE[shlibloadtest]=../include
  ENDIF

315
  IF[{- $disabled{shared} -}]
316
    PROGRAMS_NO_INST=cipher_overhead_test
317 318 319
    SOURCE[cipher_overhead_test]=cipher_overhead_test.c
    INCLUDE[cipher_overhead_test]=.. ../include
    DEPEND[cipher_overhead_test]=../libcrypto ../libssl
320
  ENDIF
321

R
Richard Levitte 已提交
322 323
  SOURCE[uitest]=uitest.c testutil.c test_main_custom.c \
    ../apps/apps.c ../apps/opt.c {- $apps_extra -}
R
Richard Levitte 已提交
324 325 326
  INCLUDE[uitest]=.. ../include
  DEPEND[uitest]=../libcrypto ../libssl

327 328 329 330
  SOURCE[cipherbytes_test]=cipherbytes_test.c
  INCLUDE[cipherbytes_test]=.. ../include
  DEPEND[cipherbytes_test]=../libcrypto ../libssl

331
  # Internal test programs.  These are essentially a collection of internal
332 333 334
  # 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 已提交
335
  # programs are forcibly linked with the static libraries, where all symbols
336 337 338 339
  # 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' -}]
340
    PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
341
                     tls13encryptiontest wpackettest
342 343 344
    IF[{- !$disabled{poly1305} -}]
      PROGRAMS_NO_INST=poly1305_internal_test
    ENDIF
A
Andy Polyakov 已提交
345 346 347
    IF[{- !$disabled{chacha} -}]
      PROGRAMS_NO_INST=chacha_internal_test
    ENDIF
348 349 350
    IF[{- !$disabled{siphash} -}]
      PROGRAMS_NO_INST=siphash_internal_test
    ENDIF
351 352 353 354 355

    SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
    INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
    DEPEND[poly1305_internal_test]=../libcrypto.a

A
Andy Polyakov 已提交
356 357 358 359
    SOURCE[chacha_internal_test]=chacha_internal_test.c
    INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
    DEPEND[chacha_internal_test]=../libcrypto.a

360 361 362 363 364 365 366 367 368 369 370
    SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
    INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
    DEPEND[asn1_internal_test]=../libcrypto.a

    SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
    INCLUDE[modes_internal_test]=.. ../include
    DEPEND[modes_internal_test]=../libcrypto.a

    SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
    INCLUDE[x509_internal_test]=.. ../include
    DEPEND[x509_internal_test]=../libcrypto.a
371 372 373 374

    SOURCE[tls13encryptiontest]=tls13encryptiontest.c testutil.c test_main.c
    INCLUDE[tls13encryptiontest]=.. ../include
    DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a
375 376 377 378

    SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
    INCLUDE[wpackettest]=../include
    DEPEND[wpackettest]=../libcrypto ../libssl.a
379 380 381 382

    SOURCE[siphash_internal_test]=siphash_internal_test.c testutil.c test_main_custom.c
    INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
    DEPEND[siphash_internal_test]=../libcrypto.a
383
  ENDIF
384

385 386
  IF[{- !$disabled{mdc2} -}]
    PROGRAMS_NO_INST=mdc2_internal_test
387
  ENDIF
388

389
  SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
390 391
  INCLUDE[mdc2_internal_test]=.. ../include
  DEPEND[mdc2_internal_test]=../libcrypto
392 393 394 395 396 397

  # 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
398
    SOURCE[tls13secretstest]=tls13secretstest.c testutil.c test_main.c
399 400 401 402
    SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
    INCLUDE[tls13secretstest]=.. ../include
    DEPEND[tls13secretstest]=../libcrypto ../libssl
  ENDIF
403 404 405
ENDIF

{-
406
   use File::Spec::Functions;
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421
   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 .= <<"_____";

422
  PROGRAMS_NO_INST=buildtest_$name
423 424
  GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  SOURCE[buildtest_$name]=buildtest_$name.c
425
  INCLUDE[buildtest_$name]=../include
426 427 428
  DEPEND[buildtest_$name]=../libssl ../libcrypto
_____
   }
429
-}