]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/build.info
Fix compile error detected by Solaris build
[thirdparty/openssl.git] / test / build.info
CommitLineData
9654924f 1SUBDIRS=ossl_shim
989b2ad7 2
2ad75c6c 3# TODO: use ../apps/libapps.a instead of direct ../apps/lib source.
989b2ad7 4# This can't currently be done, because some of its units drag in too many
2ad75c6c
RL
5# unresolved references that don't apply here.
6# Most of all, ../apps/lib/apps.c needs to be divided in smaller pieces to
7# be useful here.
989b2ad7
RL
8#
9# Auxilliary program source (copied from ../apps/build.info)
10IF[{- $config{target} =~ /^(?:VC-|mingw)/ -}]
11 # It's called 'init', but doesn't have much 'init' in it...
2ad75c6c 12 $AUXLIBAPPSSRC=../apps/lib/win32_init.c
989b2ad7
RL
13ENDIF
14IF[{- $config{target} =~ /^vms-/ -}]
2ad75c6c 15 $AUXLIBAPPSSRC=../apps/lib/vms_term_sock.c ../apps/lib/vms_decc_argv.c
989b2ad7 16ENDIF
2ad75c6c 17$LIBAPPSSRC=../apps/lib/opt.c ../apps/lib/bf_prefix.c $AUXLIBAPPSSRC
989b2ad7 18
d90a6beb 19IF[{- !$disabled{tests} -}]
77550dbf 20 LIBS{noinst,has_main}=libtestutil.a
603ddbdb 21 SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output_helpers.c \
ae269dd8 22 testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
a69de3f2 23 testutil/format_output.c testutil/tap_bio.c \
a43ce58f 24 testutil/test_cleanup.c testutil/main.c testutil/init.c \
ce506d27 25 testutil/options.c testutil/test_options.c \
e9a5932d 26 testutil/apps_mem.c testutil/random.c $LIBAPPSSRC
5674466e 27 INCLUDE[libtestutil.a]=../include ../apps/include ..
4db40c94
RL
28 DEPEND[libtestutil.a]=../libcrypto
29
ac6bba6f 30 PROGRAMS{noinst}=\
efe749c8 31 versions \
2fae041d 32 aborttest test_test \
da5fac72 33 sanitytest rsa_complex exdatatest bntest \
2556aec5 34 ectest ecstresstest ecdsatest gmdifftest pbelutest ideatest \
816060d2 35 md2test \
a2121e14 36 hmactest \
c5055adf 37 rc2test rc4test rc5test \
a0a760cc 38 destest mdc2test \
75e2c877 39 dhtest enginetest casttest \
cb809437 40 bftest ssltest_old dsatest dsa_no_digest_size_test exptest rsa_test \
e417070c 41 evp_test evp_extra_test igetest v3nametest v3ext \
a40f0f64 42 crltest danetest bad_dtls_test lhash_test sparse_array_test \
9830e7ea 43 conf_include_test params_api_test params_conversion_test \
d90a6beb 44 constant_time_test verify_extra_test clienthellotest \
98374961 45 packettest asynctest secmemtest srptest memleaktest stack_test \
d90a6beb 46 dtlsv1listentest ct_test threadstest afalgtest d2i_test \
f8f686ec 47 ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
3c93fbac 48 bio_callback_test bio_memleak_test param_build_test \
52fe14e6 49 bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
5a285add
DM
50 pkey_meth_test pkey_meth_kdf_test evp_kdf_test uitest \
51 cipherbytes_test \
c2278c8b 52 asn1_encode_test asn1_decode_test asn1_string_table_test \
12fb8c3d 53 x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \
a58eb06d 54 recordlentest drbgtest sslbuffertest \
e613b1ef 55 recordlentest drbgtest drbg_cavs_test sslbuffertest \
190b9a03 56 time_offset_test pemtest ssl_cert_table_internal_test ciphername_test \
8a5ed9dc 57 servername_test ocspapitest rsa_mp_test fatalerrtest tls13ccstest \
d64b6299 58 sysdefaulttest errtest gosttest \
6aa2e59e 59 context_internal_test aesgcmtest params_test evp_pkey_dparams_test
d90a6beb 60
efe749c8 61 SOURCE[versions]=versions.c
5674466e 62 INCLUDE[versions]=../include ../apps/include
efe749c8
RL
63 DEPEND[versions]=../libcrypto
64
d90a6beb 65 SOURCE[aborttest]=aborttest.c
5674466e 66 INCLUDE[aborttest]=../include ../apps/include
d90a6beb
MC
67 DEPEND[aborttest]=../libcrypto
68
a9c6d221 69 SOURCE[sanitytest]=sanitytest.c
5674466e 70 INCLUDE[sanitytest]=../include ../apps/include
a9c6d221 71 DEPEND[sanitytest]=../libcrypto libtestutil.a
d90a6beb 72
da5fac72 73 SOURCE[rsa_complex]=rsa_complex.c
5674466e 74 INCLUDE[rsa_complex]=../include ../apps/include
da5fac72 75
a9c6d221 76 SOURCE[test_test]=test_test.c
5674466e 77 INCLUDE[test_test]=../include ../apps/include
a9c6d221 78 DEPEND[test_test]=../libcrypto libtestutil.a
2fae041d 79
a9c6d221 80 SOURCE[exdatatest]=exdatatest.c
5674466e 81 INCLUDE[exdatatest]=../include ../apps/include
a9c6d221 82 DEPEND[exdatatest]=../libcrypto libtestutil.a
629192c1 83
a9c6d221 84 SOURCE[bntest]=bntest.c
5674466e 85 INCLUDE[bntest]=../include ../apps/include
a9c6d221 86 DEPEND[bntest]=../libcrypto libtestutil.a
d90a6beb
MC
87
88 SOURCE[ectest]=ectest.c
5674466e 89 INCLUDE[ectest]=../include ../apps/include
2db85ac9 90 DEPEND[ectest]=../libcrypto libtestutil.a
d90a6beb 91
2556aec5 92 SOURCE[ecstresstest]=ecstresstest.c
5674466e 93 INCLUDE[ecstresstest]=../include ../apps/include
2556aec5
RS
94 DEPEND[ecstresstest]=../libcrypto libtestutil.a
95
a9c6d221 96 SOURCE[ecdsatest]=ecdsatest.c
5674466e 97 INCLUDE[ecdsatest]=../include ../apps/include
a9c6d221 98 DEPEND[ecdsatest]=../libcrypto libtestutil.a
d90a6beb 99
a9c6d221 100 SOURCE[gmdifftest]=gmdifftest.c
5674466e 101 INCLUDE[gmdifftest]=../include ../apps/include
a9c6d221 102 DEPEND[gmdifftest]=../libcrypto libtestutil.a
d90a6beb 103
a9c6d221 104 SOURCE[pbelutest]=pbelutest.c
5674466e 105 INCLUDE[pbelutest]=../include ../apps/include
a9c6d221 106 DEPEND[pbelutest]=../libcrypto libtestutil.a
d90a6beb 107
a9c6d221 108 SOURCE[ideatest]=ideatest.c
5674466e 109 INCLUDE[ideatest]=../include ../apps/include
a9c6d221 110 DEPEND[ideatest]=../libcrypto libtestutil.a
d90a6beb 111
a9c6d221 112 SOURCE[md2test]=md2test.c
5674466e 113 INCLUDE[md2test]=../include ../apps/include
a9c6d221 114 DEPEND[md2test]=../libcrypto libtestutil.a
d90a6beb 115
a9c6d221 116 SOURCE[hmactest]=hmactest.c
5674466e 117 INCLUDE[hmactest]=../include ../apps/include
a9c6d221 118 DEPEND[hmactest]=../libcrypto libtestutil.a
d90a6beb 119
a9c6d221 120 SOURCE[rc2test]=rc2test.c
5674466e 121 INCLUDE[rc2test]=../include ../apps/include
a9c6d221 122 DEPEND[rc2test]=../libcrypto libtestutil.a
d90a6beb 123
a9c6d221 124 SOURCE[rc4test]=rc4test.c
5674466e 125 INCLUDE[rc4test]=../include ../apps/include
a9c6d221 126 DEPEND[rc4test]=../libcrypto libtestutil.a
d90a6beb 127
a9c6d221 128 SOURCE[rc5test]=rc5test.c
5674466e 129 INCLUDE[rc5test]=../include ../apps/include
a9c6d221 130 DEPEND[rc5test]=../libcrypto libtestutil.a
d90a6beb 131
a9c6d221 132 SOURCE[destest]=destest.c
5674466e 133 INCLUDE[destest]=../include ../apps/include
a9c6d221 134 DEPEND[destest]=../libcrypto libtestutil.a
d90a6beb 135
a9c6d221 136 SOURCE[mdc2test]=mdc2test.c
5674466e 137 INCLUDE[mdc2test]=../include ../apps/include
a9c6d221 138 DEPEND[mdc2test]=../libcrypto libtestutil.a
d90a6beb 139
a9c6d221 140 SOURCE[dhtest]=dhtest.c
5674466e 141 INCLUDE[dhtest]=../include ../apps/include
a9c6d221 142 DEPEND[dhtest]=../libcrypto libtestutil.a
777a2882 143
a9c6d221 144 SOURCE[enginetest]=enginetest.c
5674466e 145 INCLUDE[enginetest]=../include ../apps/include
a9c6d221 146 DEPEND[enginetest]=../libcrypto libtestutil.a
777a2882 147
a9c6d221 148 SOURCE[casttest]=casttest.c
5674466e 149 INCLUDE[casttest]=../include ../apps/include
a9c6d221 150 DEPEND[casttest]=../libcrypto libtestutil.a
777a2882 151
a9c6d221 152 SOURCE[bftest]=bftest.c
5674466e 153 INCLUDE[bftest]=../include ../apps/include
a9c6d221 154 DEPEND[bftest]=../libcrypto libtestutil.a
777a2882 155
d90a6beb 156 SOURCE[ssltest_old]=ssltest_old.c
5674466e 157 INCLUDE[ssltest_old]=.. ../include ../apps/include
d90a6beb 158 DEPEND[ssltest_old]=../libcrypto ../libssl
777a2882 159
a9c6d221 160 SOURCE[dsatest]=dsatest.c
5674466e 161 INCLUDE[dsatest]=../include ../apps/include
a9c6d221 162 DEPEND[dsatest]=../libcrypto libtestutil.a
777a2882 163
cb809437 164 SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c
5674466e 165 INCLUDE[dsa_no_digest_size_test]=../include ../apps/include
cb809437
BD
166 DEPEND[dsa_no_digest_size_test]=../libcrypto libtestutil.a
167
d90a6beb 168 SOURCE[exptest]=exptest.c
5674466e 169 INCLUDE[exptest]=../include ../apps/include
58e754fc 170 DEPEND[exptest]=../libcrypto libtestutil.a
777a2882 171
a9c6d221 172 SOURCE[rsa_test]=rsa_test.c
5674466e 173 INCLUDE[rsa_test]=../include ../apps/include
a9c6d221 174 DEPEND[rsa_test]=../libcrypto libtestutil.a
777a2882 175
665d899f 176 SOURCE[rsa_mp_test]=rsa_mp_test.c
5674466e 177 INCLUDE[rsa_mp_test]=../include ../apps/include
665d899f
PY
178 DEPEND[rsa_mp_test]=../libcrypto libtestutil.a
179
97652f0b 180 SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c
5674466e 181 INCLUDE[fatalerrtest]=../include ../apps/include
97652f0b 182 DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a
0ca3aea7
MC
183
184 SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c
5674466e 185 INCLUDE[tls13ccstest]=../include ../apps/include
0ca3aea7 186 DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a
97652f0b 187
d90a6beb 188 SOURCE[evp_test]=evp_test.c
5674466e 189 INCLUDE[evp_test]=../include ../apps/include
6c5943c9 190 DEPEND[evp_test]=../libcrypto libtestutil.a
d5e5e2ff
SL
191 IF[{- $disabled{legacy} || !$target{dso_scheme} -}]
192 DEFINE[evp_test]=NO_LEGACY_MODULE
193 ENDIF
777a2882 194
a9c6d221 195 SOURCE[evp_extra_test]=evp_extra_test.c
5674466e 196 INCLUDE[evp_extra_test]=../include ../apps/include ../crypto/include
a9c6d221 197 DEPEND[evp_extra_test]=../libcrypto libtestutil.a
1576dfe0
MC
198 IF[{- $disabled{fips} || !$target{dso_scheme} -}]
199 DEFINE[evp_extra_test]=NO_FIPS_MODULE
200 ENDIF
777a2882 201
d90a6beb 202 SOURCE[igetest]=igetest.c
5674466e 203 INCLUDE[igetest]=../include ../apps/include
0e534337 204 DEPEND[igetest]=../libcrypto libtestutil.a
777a2882 205
a9c6d221 206 SOURCE[v3nametest]=v3nametest.c
5674466e 207 INCLUDE[v3nametest]=../include ../apps/include
a9c6d221 208 DEPEND[v3nametest]=../libcrypto libtestutil.a
777a2882 209
a9c6d221 210 SOURCE[crltest]=crltest.c
5674466e 211 INCLUDE[crltest]=../include ../apps/include
a9c6d221 212 DEPEND[crltest]=../libcrypto libtestutil.a
2b406990 213
a9c6d221 214 SOURCE[v3ext]=v3ext.c
5674466e 215 INCLUDE[v3ext]=../include ../apps/include
a9c6d221 216 DEPEND[v3ext]=../libcrypto libtestutil.a
e417070c 217
d90a6beb 218 SOURCE[danetest]=danetest.c
5674466e 219 INCLUDE[danetest]=../include ../apps/include
1f9d203d 220 DEPEND[danetest]=../libcrypto ../libssl libtestutil.a
777a2882 221
a9c6d221 222 SOURCE[constant_time_test]=constant_time_test.c
5674466e 223 INCLUDE[constant_time_test]=../include ../apps/include
a9c6d221 224 DEPEND[constant_time_test]=../libcrypto libtestutil.a
777a2882 225
a9c6d221 226 SOURCE[verify_extra_test]=verify_extra_test.c
5674466e 227 INCLUDE[verify_extra_test]=../include ../apps/include
a9c6d221 228 DEPEND[verify_extra_test]=../libcrypto libtestutil.a
777a2882 229
a9c6d221 230 SOURCE[clienthellotest]=clienthellotest.c
5674466e 231 INCLUDE[clienthellotest]=../include ../apps/include
a9c6d221 232 DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a
777a2882 233
a9c6d221 234 SOURCE[bad_dtls_test]=bad_dtls_test.c
5674466e 235 INCLUDE[bad_dtls_test]=../include ../apps/include
a9c6d221 236 DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a
16938284 237
a9c6d221 238 SOURCE[packettest]=packettest.c
5674466e 239 INCLUDE[packettest]=../include ../apps/include
a9c6d221 240 DEPEND[packettest]=../libcrypto libtestutil.a
777a2882 241
d90a6beb 242 SOURCE[asynctest]=asynctest.c
5674466e 243 INCLUDE[asynctest]=../include ../apps/include
d90a6beb 244 DEPEND[asynctest]=../libcrypto
777a2882 245
a9c6d221 246 SOURCE[secmemtest]=secmemtest.c
5674466e 247 INCLUDE[secmemtest]=../include ../apps/include
a9c6d221 248 DEPEND[secmemtest]=../libcrypto libtestutil.a
777a2882 249
a9c6d221 250 SOURCE[srptest]=srptest.c
5674466e 251 INCLUDE[srptest]=../include ../apps/include
a9c6d221 252 DEPEND[srptest]=../libcrypto libtestutil.a
777a2882 253
a9c6d221 254 SOURCE[memleaktest]=memleaktest.c
5674466e 255 INCLUDE[memleaktest]=../include ../apps/include
a9c6d221 256 DEPEND[memleaktest]=../libcrypto libtestutil.a
04949088 257
a9c6d221 258 SOURCE[stack_test]=stack_test.c
5674466e 259 INCLUDE[stack_test]=../include ../apps/include
a9c6d221 260 DEPEND[stack_test]=../libcrypto libtestutil.a
98374961 261
a9c6d221 262 SOURCE[lhash_test]=lhash_test.c
5674466e 263 INCLUDE[lhash_test]=../include ../apps/include
a9c6d221 264 DEPEND[lhash_test]=../libcrypto libtestutil.a
508ee8f5 265
d90a6beb 266 SOURCE[dtlsv1listentest]=dtlsv1listentest.c
5674466e 267 INCLUDE[dtlsv1listentest]=../include ../apps/include
8ed9a266 268 DEPEND[dtlsv1listentest]=../libssl libtestutil.a
9666ffb3 269
a9c6d221 270 SOURCE[ct_test]=ct_test.c
5674466e 271 INCLUDE[ct_test]=../include ../apps/include
a9c6d221 272 DEPEND[ct_test]=../libcrypto libtestutil.a
71a04cfc 273
a9c6d221 274 SOURCE[threadstest]=threadstest.c
5674466e 275 INCLUDE[threadstest]=../include ../apps/include
a9c6d221 276 DEPEND[threadstest]=../libcrypto libtestutil.a
b37d6abf 277
a9c6d221 278 SOURCE[afalgtest]=afalgtest.c
5674466e 279 INCLUDE[afalgtest]=../include ../apps/include
a9c6d221 280 DEPEND[afalgtest]=../libcrypto libtestutil.a
d2458440 281
a9c6d221 282 SOURCE[d2i_test]=d2i_test.c
5674466e 283 INCLUDE[d2i_test]=../include ../apps/include
a9c6d221 284 DEPEND[d2i_test]=../libcrypto libtestutil.a
1400f013 285
a9c6d221 286 SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c
5674466e 287 INCLUDE[ssl_test_ctx_test]=../include ../apps/include
a9c6d221 288 DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a
453dfd8d 289
a9c6d221 290 SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c
5674466e 291 INCLUDE[ssl_test]=../include ../apps/include
a9c6d221 292 DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a
453dfd8d 293
a9c6d221 294 SOURCE[cipherlist_test]=cipherlist_test.c
5674466e 295 INCLUDE[cipherlist_test]=../include ../apps/include
a9c6d221 296 DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a
5a22cf96 297
0483f586 298 INCLUDE[ssl_test_ctx.o]=../include
9d75dce3 299 INCLUDE[handshake_helper.o]=.. ../include
43708c15 300 INCLUDE[ssltestlib.o]=.. ../include
fde2257f 301
a9c6d221 302 SOURCE[x509aux]=x509aux.c
5674466e 303 INCLUDE[x509aux]=../include ../apps/include
a9c6d221 304 DEPEND[x509aux]=../libcrypto libtestutil.a
d7295cd6 305
a9c6d221 306 SOURCE[asynciotest]=asynciotest.c ssltestlib.c
5674466e 307 INCLUDE[asynciotest]=../include ../apps/include
a9c6d221 308 DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a
f8f686ec 309
c911e5da 310 SOURCE[bio_callback_test]=bio_callback_test.c
5674466e 311 INCLUDE[bio_callback_test]=../include ../apps/include
c911e5da
BE
312 DEPEND[bio_callback_test]=../libcrypto libtestutil.a
313
c6048af2 314 SOURCE[bio_memleak_test]=bio_memleak_test.c
5674466e 315 INCLUDE[bio_memleak_test]=../include ../apps/include
c6048af2
CM
316 DEPEND[bio_memleak_test]=../libcrypto libtestutil.a
317
a9c6d221 318 SOURCE[bioprinttest]=bioprinttest.c
5674466e 319 INCLUDE[bioprinttest]=../include ../apps/include
a9c6d221 320 DEPEND[bioprinttest]=../libcrypto libtestutil.a
5cdad22f 321
7ffbd7ca
P
322 SOURCE[params_api_test]=params_api_test.c
323 INCLUDE[params_api_test]=../include ../apps/include
324 DEPEND[params_api_test]=../libcrypto libtestutil.a
325
9830e7ea
P
326 SOURCE[params_conversion_test]=params_conversion_test.c
327 INCLUDE[params_conversion_test]=../include ../apps/include
328 DEPEND[params_conversion_test]=../libcrypto libtestutil.a
329
3c93fbac
P
330 SOURCE[param_build_test]=param_build_test.c
331 INCLUDE[param_build_test]=../include ../apps/include
332 DEPEND[param_build_test]=../libcrypto.a libtestutil.a
333
a9c6d221 334 SOURCE[sslapitest]=sslapitest.c ssltestlib.c
5674466e 335 INCLUDE[sslapitest]=../include ../apps/include ..
a9c6d221 336 DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
27da1343
BK
337
338 SOURCE[ocspapitest]=ocspapitest.c
5674466e 339 INCLUDE[ocspapitest]=../include ../apps/include
27da1343 340 DEPEND[ocspapitest]=../libcrypto libtestutil.a
6fc1748e 341
a9c6d221 342 SOURCE[dtlstest]=dtlstest.c ssltestlib.c
5674466e 343 INCLUDE[dtlstest]=../include ../apps/include
a9c6d221 344 DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
e6ed2b91 345
a9c6d221 346 SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
5674466e 347 INCLUDE[sslcorrupttest]=../include ../apps/include
a9c6d221 348 DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
c5a56992 349
a9c6d221 350 SOURCE[bio_enc_test]=bio_enc_test.c
5674466e 351 INCLUDE[bio_enc_test]=../include ../apps/include
a9c6d221 352 DEPEND[bio_enc_test]=../libcrypto libtestutil.a
d6c4cc29 353
a9c6d221 354 SOURCE[pkey_meth_test]=pkey_meth_test.c
5674466e 355 INCLUDE[pkey_meth_test]=../include ../apps/include
a9c6d221 356 DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
52fe14e6 357
6aa907a6 358 SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
5674466e 359 INCLUDE[pkey_meth_kdf_test]=../include ../apps/include
6aa907a6
JB
360 DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
361
5a285add 362 SOURCE[evp_kdf_test]=evp_kdf_test.c
953315ae 363 INCLUDE[evp_kdf_test]=../include ../apps/include
5a285add
DM
364 DEPEND[evp_kdf_test]=../libcrypto libtestutil.a
365
6aa2e59e
SL
366 SOURCE[evp_pkey_dparams_test]=evp_pkey_dparams_test.c
367 INCLUDE[evp_pkey_dparams_test]=../include ../apps/include
368 DEPEND[evp_pkey_dparams_test]=../libcrypto libtestutil.a
369
a9c6d221 370 SOURCE[x509_time_test]=x509_time_test.c
5674466e 371 INCLUDE[x509_time_test]=../include ../apps/include
a9c6d221 372 DEPEND[x509_time_test]=../libcrypto libtestutil.a
80770da3 373
a9c6d221 374 SOURCE[recordlentest]=recordlentest.c ssltestlib.c
5674466e 375 INCLUDE[recordlentest]=../include ../apps/include
a9c6d221 376 DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
c1074ce0 377
12fb8c3d 378 SOURCE[drbgtest]=drbgtest.c
57ca171a 379 INCLUDE[drbgtest]=../include ../apps/include ../crypto/include
1c615e4c 380 DEPEND[drbgtest]=../libcrypto.a libtestutil.a
12fb8c3d 381
8bf36651
SL
382 SOURCE[drbg_cavs_test]=drbg_cavs_test.c drbg_cavs_data_ctr.c \
383 drbg_cavs_data_hash.c drbg_cavs_data_hmac.c
df443918 384
57ca171a 385 INCLUDE[drbg_cavs_test]=../include ../apps/include . .. ../crypto/include
e613b1ef
PS
386 DEPEND[drbg_cavs_test]=../libcrypto libtestutil.a
387
a9c6d221 388 SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
5674466e 389 INCLUDE[x509_dup_cert_test]=../include ../apps/include
a9c6d221 390 DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
c0452248 391
6d2523e0 392 SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
5674466e 393 INCLUDE[x509_check_cert_pkey_test]=../include ../apps/include
6d2523e0
PY
394 DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a
395
fa3ed5b2 396 SOURCE[pemtest]=pemtest.c
5674466e 397 INCLUDE[pemtest]=../include ../apps/include
fa3ed5b2
BK
398 DEPEND[pemtest]=../libcrypto libtestutil.a
399
d72a0041 400 SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
5674466e 401 INCLUDE[ssl_cert_table_internal_test]=.. ../include ../apps/include
d72a0041
DSH
402 DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a
403
bbb4ceb8 404 SOURCE[ciphername_test]=ciphername_test.c
5674466e 405 INCLUDE[ciphername_test]=../include ../apps/include
bbb4ceb8
PY
406 DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a
407
f01344cb 408 SOURCE[servername_test]=servername_test.c ssltestlib.c
5674466e 409 INCLUDE[servername_test]=../include ../apps/include
190b9a03
PY
410 DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
411
a01b9cd5 412 IF[{- !$disabled{cms} -}]
ac6bba6f 413 PROGRAMS{noinst}=cmsapitest
a01b9cd5 414 SOURCE[cmsapitest]=cmsapitest.c
5674466e 415 INCLUDE[cmsapitest]=../include ../apps/include
a01b9cd5
MC
416 DEPEND[cmsapitest]=../libcrypto libtestutil.a
417 ENDIF
e15e92db 418
02e22dd4 419 IF[{- !$disabled{psk} -}]
ac6bba6f 420 PROGRAMS{noinst}=dtls_mtu_test
02e22dd4 421 SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
5674466e 422 INCLUDE[dtls_mtu_test]=.. ../include ../apps/include
8ed9a266 423 DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
02e22dd4
DW
424 ENDIF
425
9c89c846 426 IF[{- !$disabled{shared} -}]
ac6bba6f 427 PROGRAMS{noinst}=shlibloadtest
b987d748 428 SOURCE[shlibloadtest]=shlibloadtest.c
5674466e 429 INCLUDE[shlibloadtest]=../include ../apps/include ../crypto/include
b987d748
MC
430 ENDIF
431
d6c4cc29 432 IF[{- $disabled{shared} -}]
ac6bba6f 433 PROGRAMS{noinst}=cipher_overhead_test
a9c6d221 434 SOURCE[cipher_overhead_test]=cipher_overhead_test.c
5674466e 435 INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
a9c6d221 436 DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
d6c4cc29 437 ENDIF
aeac2183 438
2ad75c6c 439 SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c
5674466e 440 INCLUDE[uitest]=.. ../include ../apps/include
a43ce58f 441 DEPEND[uitest]=../libcrypto ../libssl libtestutil.a
66ed24b1 442
a9c6d221 443 SOURCE[cipherbytes_test]=cipherbytes_test.c
5674466e 444 INCLUDE[cipherbytes_test]=../include ../apps/include
a9c6d221 445 DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
6e3dac19 446
a9c6d221 447 SOURCE[asn1_encode_test]=asn1_encode_test.c
5674466e 448 INCLUDE[asn1_encode_test]=../include ../apps/include
a9c6d221 449 DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
37332ecc 450
c2278c8b 451 SOURCE[asn1_decode_test]=asn1_decode_test.c
5674466e 452 INCLUDE[asn1_decode_test]=../include ../apps/include
c2278c8b
RL
453 DEPEND[asn1_decode_test]=../libcrypto libtestutil.a
454
7b608d08 455 SOURCE[asn1_string_table_test]=asn1_string_table_test.c
5674466e 456 INCLUDE[asn1_string_table_test]=../include ../apps/include
7b608d08
PY
457 DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
458
20ee2bf1 459 SOURCE[time_offset_test]=time_offset_test.c
5674466e 460 INCLUDE[time_offset_test]=../include ../apps/include
20ee2bf1
TS
461 DEPEND[time_offset_test]=../libcrypto libtestutil.a
462
b524b808 463 SOURCE[conf_include_test]=conf_include_test.c
5674466e 464 INCLUDE[conf_include_test]=../include ../apps/include
b524b808
TM
465 DEPEND[conf_include_test]=../libcrypto libtestutil.a
466
b5b7c61f 467 # Internal test programs. These are essentially a collection of internal
cf551a51
RL
468 # test routines. Some of them need to reach internal symbols that aren't
469 # available through the shared library (at least on Linux, Solaris, Windows
470 # and VMS, where the exported symbols are those listed in util/*.num), these
69687aa8 471 # programs are forcibly linked with the static libraries, where all symbols
b3023ced
RL
472 # are always available.
473 IF[1]
ac6bba6f 474 PROGRAMS{noinst}=asn1_internal_test modes_internal_test x509_internal_test \
082193ef 475 tls13encryptiontest wpackettest ctype_internal_test \
8240d5fa 476 rdrand_sanitytest property_test \
54846b7c
DM
477 rsa_sp800_56b_test bn_internal_test \
478 asn1_dsa_internal_test
8240d5fa 479
cf551a51 480 IF[{- !$disabled{poly1305} -}]
ac6bba6f 481 PROGRAMS{noinst}=poly1305_internal_test
cf551a51 482 ENDIF
ee6d9dfb 483 IF[{- !$disabled{chacha} -}]
ac6bba6f 484 PROGRAMS{noinst}=chacha_internal_test
ee6d9dfb 485 ENDIF
3f5616d7 486 IF[{- !$disabled{siphash} -}]
ac6bba6f 487 PROGRAMS{noinst}=siphash_internal_test
3f5616d7 488 ENDIF
e425f90f 489 IF[{- !$disabled{sm2} -}]
ac6bba6f 490 PROGRAMS{noinst}=sm2_internal_test
e425f90f 491 ENDIF
f19a5ff9 492 IF[{- !$disabled{sm4} -}]
ac6bba6f 493 PROGRAMS{noinst}=sm4_internal_test
f19a5ff9 494 ENDIF
c7a47adc 495 IF[{- !$disabled{ec} -}]
8f58ede0 496 PROGRAMS{noinst}=ec_internal_test curve448_internal_test
c7a47adc 497 ENDIF
cf551a51 498
a9c6d221 499 SOURCE[poly1305_internal_test]=poly1305_internal_test.c
5674466e 500 INCLUDE[poly1305_internal_test]=.. ../include ../apps/include ../crypto/include
a9c6d221 501 DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
cf551a51 502
a9c6d221 503 SOURCE[chacha_internal_test]=chacha_internal_test.c
5674466e 504 INCLUDE[chacha_internal_test]=.. ../include ../apps/include ../crypto/include
a9c6d221 505 DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
ee6d9dfb 506
a9c6d221 507 SOURCE[asn1_internal_test]=asn1_internal_test.c
5674466e 508 INCLUDE[asn1_internal_test]=.. ../include ../apps/include ../crypto/include
a9c6d221 509 DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
cf551a51 510
a9c6d221 511 SOURCE[modes_internal_test]=modes_internal_test.c
459b15d4 512 INCLUDE[modes_internal_test]=.. ../include ../apps/include ../crypto/include
a9c6d221 513 DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
cf551a51 514
a9c6d221 515 SOURCE[x509_internal_test]=x509_internal_test.c
5674466e 516 INCLUDE[x509_internal_test]=.. ../include ../apps/include
a9c6d221 517 DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
f01675c6 518
a9c6d221 519 SOURCE[tls13encryptiontest]=tls13encryptiontest.c
5674466e 520 INCLUDE[tls13encryptiontest]=.. ../include ../apps/include
a9c6d221 521 DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
e463cb39 522
a9c6d221 523 SOURCE[wpackettest]=wpackettest.c
5674466e 524 INCLUDE[wpackettest]=../include ../apps/include
a9c6d221 525 DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
3f5616d7 526
1bdbdaff 527 SOURCE[property_test]=property_test.c
1aedc35f 528 INCLUDE[property_test]=.. ../include ../apps/include
1bdbdaff
P
529 DEPEND[property_test]=../libcrypto.a libtestutil.a
530
a1df06b3 531 SOURCE[ctype_internal_test]=ctype_internal_test.c
5674466e 532 INCLUDE[ctype_internal_test]=.. ../crypto/include ../include ../apps/include
a1df06b3
P
533 DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
534
a40f0f64 535 SOURCE[sparse_array_test]=sparse_array_test.c
5674466e 536 INCLUDE[sparse_array_test]=../crypto/include ../include ../apps/include
a40f0f64
P
537 DEPEND[sparse_array_test]=../libcrypto.a libtestutil.a
538
a9c6d221 539 SOURCE[siphash_internal_test]=siphash_internal_test.c
5674466e 540 INCLUDE[siphash_internal_test]=.. ../include ../apps/include ../crypto/include
a9c6d221 541 DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
f19a5ff9 542
e14d6cf6 543 SOURCE[sm2_internal_test]=sm2_internal_test.c
5674466e 544 INCLUDE[sm2_internal_test]=../include ../apps/include ../crypto/include
e14d6cf6 545 DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a
e425f90f 546
f19a5ff9 547 SOURCE[sm4_internal_test]=sm4_internal_test.c
5674466e 548 INCLUDE[sm4_internal_test]=.. ../include ../apps/include ../crypto/include
f19a5ff9 549 DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
8f58ede0
BB
550
551 SOURCE[ec_internal_test]=ec_internal_test.c
552 INCLUDE[ec_internal_test]=../include ../crypto/ec ../apps/include ../crypto/include
553 DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a
2c9def25
MC
554
555 SOURCE[curve448_internal_test]=curve448_internal_test.c
5674466e 556 INCLUDE[curve448_internal_test]=.. ../include ../apps/include ../crypto/ec/curve448
2c9def25 557 DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
082193ef
BD
558
559 SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c
5674466e 560 INCLUDE[rdrand_sanitytest]=../include ../apps/include
082193ef 561 DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a
8240d5fa
SL
562
563 SOURCE[rsa_sp800_56b_test]=rsa_sp800_56b_test.c
564 INCLUDE[rsa_sp800_56b_test]=.. ../include ../crypto/include ../crypto/rsa ../apps/include
565 DEPEND[rsa_sp800_56b_test]=../libcrypto.a libtestutil.a
566
567 SOURCE[bn_internal_test]=bn_internal_test.c
568 INCLUDE[bn_internal_test]=.. ../include ../crypto/include ../crypto/bn ../apps/include
569 DEPEND[bn_internal_test]=../libcrypto.a libtestutil.a
54846b7c
DM
570
571 SOURCE[asn1_dsa_internal_test]=asn1_dsa_internal_test.c
572 INCLUDE[asn1_dsa_internal_test]=.. ../include ../apps/include ../crypto/include
573 DEPEND[asn1_dsa_internal_test]=../libcrypto.a libtestutil.a
aeac2183 574 ENDIF
2c166171 575
cf551a51 576 IF[{- !$disabled{mdc2} -}]
ac6bba6f 577 PROGRAMS{noinst}=mdc2_internal_test
f12d6273 578 ENDIF
97f1e971 579
a9c6d221 580 SOURCE[mdc2_internal_test]=mdc2_internal_test.c
5674466e 581 INCLUDE[mdc2_internal_test]=.. ../include ../apps/include
a9c6d221 582 DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
134bfe56 583
ac6bba6f 584 PROGRAMS{noinst}=asn1_time_test
cf37aaa3 585 SOURCE[asn1_time_test]=asn1_time_test.c
5674466e 586 INCLUDE[asn1_time_test]=../include ../apps/include
cf37aaa3
TS
587 DEPEND[asn1_time_test]=../libcrypto libtestutil.a
588
134bfe56
MC
589 # We disable this test completely in a shared build because it deliberately
590 # redefines some internal libssl symbols. This doesn't work in a non-shared
591 # build
592 IF[{- !$disabled{shared} -}]
ac6bba6f 593 PROGRAMS{noinst}=tls13secretstest
a9c6d221 594 SOURCE[tls13secretstest]=tls13secretstest.c
0d345f0e 595 SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../crypto/packet.c
5674466e 596 INCLUDE[tls13secretstest]=.. ../include ../apps/include
a9c6d221 597 DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
134bfe56 598 ENDIF
a58eb06d
TS
599
600 SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
5674466e 601 INCLUDE[sslbuffertest]=../include ../apps/include
a58eb06d 602 DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
8a5ed9dc
TM
603
604 SOURCE[sysdefaulttest]=sysdefaulttest.c
5674466e 605 INCLUDE[sysdefaulttest]=../include ../apps/include
8a5ed9dc 606 DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a
2de108df
DB
607
608 SOURCE[errtest]=errtest.c
5674466e 609 INCLUDE[errtest]=../include ../apps/include
2de108df 610 DEPEND[errtest]=../libcrypto libtestutil.a
1e839545
MC
611
612 SOURCE[gosttest]=gosttest.c ssltestlib.c
5674466e 613 INCLUDE[gosttest]=../include ../apps/include ..
1e839545 614 DEPEND[gosttest]=../libcrypto ../libssl libtestutil.a
d64b6299 615
bcf082d1
SL
616 SOURCE[aesgcmtest]=aesgcmtest.c
617 INCLUDE[aesgcmtest]=../include ../apps/include ..
618 DEPEND[aesgcmtest]=../libcrypto libtestutil.a
619
d64b6299
RL
620 PROGRAMS{noinst}=context_internal_test
621 SOURCE[context_internal_test]=context_internal_test.c
622 INCLUDE[context_internal_test]=.. ../include ../apps/include
623 DEPEND[context_internal_test]=../libcrypto.a libtestutil.a
021a6552
RL
624
625 PROGRAMS{noinst}=provider_internal_test
626 DEFINE[provider_internal_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
627 SOURCE[provider_internal_test]=provider_internal_test.c p_test.c
628 INCLUDE[provider_internal_test]=../include ../apps/include
629 DEPEND[provider_internal_test]=../libcrypto.a libtestutil.a
630 PROGRAMS{noinst}=provider_test
631 DEFINE[provider_test]=PROVIDER_INIT_FUNCTION_NAME=p_test_init
632 SOURCE[provider_test]=provider_test.c p_test.c
633 INCLUDE[provider_test]=../include ../apps/include
634 DEPEND[provider_test]=../libcrypto.a libtestutil.a
34786bde 635 IF[{- !$disabled{module} -}]
021a6552
RL
636 MODULES{noinst}=p_test
637 SOURCE[p_test]=p_test.c
638 INCLUDE[p_test]=../include
639 IF[{- defined $target{shared_defflag} -}]
640 SOURCE[p_test]=p_test.ld
641 GENERATE[p_test.ld]=../util/providers.num
642 ENDIF
521b7cb3
RL
643 ENDIF
644 IF[{- $disabled{module} || !$target{dso_scheme} -}]
2a2bc6fc
RL
645 DEFINE[provider_test]=NO_PROVIDER_MODULE
646 DEFINE[provider_internal_test]=NO_PROVIDER_MODULE
021a6552 647 ENDIF
6d872a83
RL
648 DEPEND[]=provider_internal_test.conf
649 GENERATE[provider_internal_test.conf]=provider_internal_test.conf.in
9ad41d24
RL
650
651 PROGRAMS{noinst}=params_test
652 SOURCE[params_test]=params_test.c
653 INCLUDE[params_test]=.. ../include ../apps/include
654 DEPEND[params_test]=../libcrypto.a libtestutil.a
734a462e
RL
655
656 PROGRAMS{noinst}=namemap_internal_test
657 SOURCE[namemap_internal_test]=namemap_internal_test.c
658 INCLUDE[namemap_internal_test]=.. ../include ../apps/include
659 DEPEND[namemap_internal_test]=../libcrypto.a libtestutil.a
5cdad22f
RL
660ENDIF
661
662{-
0483f586 663 use File::Spec::Functions;
bffb1490 664 use File::Basename;
8d2214c0 665 use OpenSSL::Glob;
bffb1490 666
bffb1490 667 my @nogo_headers = ( "asn1_mac.h",
c7e10755 668 "opensslconf.h",
bffb1490
RL
669 "__decc_include_prologue.h",
670 "__decc_include_epilogue.h" );
3830c194 671 my @nogo_headers_re = ( qr/.*err\.h/ );
bffb1490
RL
672 my @headerfiles = glob catfile($sourcedir,
673 updir(), "include", "openssl", "*.h");
674
675 foreach my $headerfile (@headerfiles) {
676 my $name = basename($headerfile, ".h");
677 next if $disabled{$name};
678 next if grep { $_ eq lc("$name.h") } @nogo_headers;
3830c194 679 next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
bffb1490
RL
680 $OUT .= <<"_____";
681
9f27d4bf
RL
682 PROGRAMS{noinst}=buildtest_c_$name
683 SOURCE[buildtest_c_$name]=buildtest_$name.c
bffb1490 684 GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
9f27d4bf
RL
685 INCLUDE[buildtest_c_$name]=../include
686 DEPEND[buildtest_c_$name]=../libssl ../libcrypto
687_____
ac4033d6 688 $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"};
9f27d4bf
RL
689
690 PROGRAMS{noinst}=buildtest_cc_$name
691 SOURCE[buildtest_cc_$name]=buildtest_$name.cc
692 GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name
693 INCLUDE[buildtest_cc_$name]=../include
694 DEPEND[buildtest_cc_$name]=../libssl ../libcrypto
bffb1490
RL
695_____
696 }
5cdad22f 697-}