1{- 2 use File::Spec::Functions; 3 sub rebase_files 4 { 5 my ($base, $files) = @_; 6 return join(" ", map { "$base/$_" } split(/\s+/, $files)); 7 } 8 "" 9-} 10IF[{- !$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 \ 14 testutil/format_output.c testutil/tap_bio.c \ 15 testutil/test_cleanup.c testutil/main.c testutil/testutil_init.c \ 16 testutil/random.c 17 INCLUDE[libtestutil.a]=../include 18 DEPEND[libtestutil.a]=../libcrypto 19 20 # Special hack for descrip.mms to include the MAIN object module 21 # explicitly. This will only be done if there isn't a MAIN in the 22 # program's object modules already. 23 BEGINRAW[descrip.mms] 24INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN 25 ENDRAW[descrip.mms] 26 27 PROGRAMS_NO_INST=\ 28 versions \ 29 aborttest test_test \ 30 sanitytest rsa_complex exdatatest bntest \ 31 ectest ecstresstest ecdsatest gmdifftest pbelutest ideatest \ 32 md2test \ 33 hmactest \ 34 rc2test rc4test rc5test \ 35 destest mdc2test \ 36 dhtest enginetest casttest \ 37 bftest ssltest_old dsatest dsa_no_digest_size_test exptest rsa_test \ 38 evp_test evp_extra_test igetest v3nametest v3ext \ 39 crltest danetest bad_dtls_test lhash_test \ 40 conf_include_test \ 41 constant_time_test verify_extra_test clienthellotest \ 42 packettest asynctest secmemtest srptest memleaktest stack_test \ 43 dtlsv1listentest ct_test threadstest afalgtest d2i_test \ 44 ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \ 45 bio_callback_test bio_memleak_test \ 46 bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \ 47 pkey_meth_test pkey_meth_kdf_test uitest cipherbytes_test \ 48 asn1_encode_test asn1_decode_test asn1_string_table_test \ 49 x509_time_test x509_dup_cert_test x509_check_cert_pkey_test \ 50 recordlentest drbgtest sslbuffertest \ 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 ssl_ctx_test gosttest 55 56 SOURCE[versions]=versions.c 57 INCLUDE[versions]=../include 58 DEPEND[versions]=../libcrypto 59 60 SOURCE[aborttest]=aborttest.c 61 INCLUDE[aborttest]=../include 62 DEPEND[aborttest]=../libcrypto 63 64 SOURCE[sanitytest]=sanitytest.c 65 INCLUDE[sanitytest]=../include 66 DEPEND[sanitytest]=../libcrypto libtestutil.a 67 68 SOURCE[rsa_complex]=rsa_complex.c 69 INCLUDE[rsa_complex]=../include 70 71 SOURCE[test_test]=test_test.c 72 INCLUDE[test_test]=../include 73 DEPEND[test_test]=../libcrypto libtestutil.a 74 75 SOURCE[exdatatest]=exdatatest.c 76 INCLUDE[exdatatest]=../include 77 DEPEND[exdatatest]=../libcrypto libtestutil.a 78 79 SOURCE[bntest]=bntest.c 80 INCLUDE[bntest]=../include 81 DEPEND[bntest]=../libcrypto libtestutil.a 82 83 SOURCE[ectest]=ectest.c 84 INCLUDE[ectest]=../include 85 DEPEND[ectest]=../libcrypto libtestutil.a 86 87 SOURCE[ecstresstest]=ecstresstest.c 88 INCLUDE[ecstresstest]=../include 89 DEPEND[ecstresstest]=../libcrypto libtestutil.a 90 91 SOURCE[ecdsatest]=ecdsatest.c 92 INCLUDE[ecdsatest]=../include 93 DEPEND[ecdsatest]=../libcrypto libtestutil.a 94 95 SOURCE[gmdifftest]=gmdifftest.c 96 INCLUDE[gmdifftest]=../include 97 DEPEND[gmdifftest]=../libcrypto libtestutil.a 98 99 SOURCE[pbelutest]=pbelutest.c 100 INCLUDE[pbelutest]=../include 101 DEPEND[pbelutest]=../libcrypto libtestutil.a 102 103 SOURCE[ideatest]=ideatest.c 104 INCLUDE[ideatest]=../include 105 DEPEND[ideatest]=../libcrypto libtestutil.a 106 107 SOURCE[md2test]=md2test.c 108 INCLUDE[md2test]=../include 109 DEPEND[md2test]=../libcrypto libtestutil.a 110 111 SOURCE[hmactest]=hmactest.c 112 INCLUDE[hmactest]=../include 113 DEPEND[hmactest]=../libcrypto libtestutil.a 114 115 SOURCE[rc2test]=rc2test.c 116 INCLUDE[rc2test]=../include 117 DEPEND[rc2test]=../libcrypto libtestutil.a 118 119 SOURCE[rc4test]=rc4test.c 120 INCLUDE[rc4test]=../include 121 DEPEND[rc4test]=../libcrypto libtestutil.a 122 123 SOURCE[rc5test]=rc5test.c 124 INCLUDE[rc5test]=../include 125 DEPEND[rc5test]=../libcrypto libtestutil.a 126 127 SOURCE[destest]=destest.c 128 INCLUDE[destest]=../include 129 DEPEND[destest]=../libcrypto libtestutil.a 130 131 SOURCE[mdc2test]=mdc2test.c 132 INCLUDE[mdc2test]=../include 133 DEPEND[mdc2test]=../libcrypto libtestutil.a 134 135 SOURCE[dhtest]=dhtest.c 136 INCLUDE[dhtest]=../include 137 DEPEND[dhtest]=../libcrypto libtestutil.a 138 139 SOURCE[enginetest]=enginetest.c 140 INCLUDE[enginetest]=../include 141 DEPEND[enginetest]=../libcrypto libtestutil.a 142 143 SOURCE[casttest]=casttest.c 144 INCLUDE[casttest]=../include 145 DEPEND[casttest]=../libcrypto libtestutil.a 146 147 SOURCE[bftest]=bftest.c 148 INCLUDE[bftest]=../include 149 DEPEND[bftest]=../libcrypto libtestutil.a 150 151 SOURCE[ssltest_old]=ssltest_old.c 152 INCLUDE[ssltest_old]=.. ../include 153 DEPEND[ssltest_old]=../libcrypto ../libssl 154 155 SOURCE[dsatest]=dsatest.c 156 INCLUDE[dsatest]=../include 157 DEPEND[dsatest]=../libcrypto libtestutil.a 158 159 SOURCE[dsa_no_digest_size_test]=dsa_no_digest_size_test.c 160 INCLUDE[dsa_no_digest_size_test]=../include 161 DEPEND[dsa_no_digest_size_test]=../libcrypto libtestutil.a 162 163 SOURCE[exptest]=exptest.c 164 INCLUDE[exptest]=../include 165 DEPEND[exptest]=../libcrypto libtestutil.a 166 167 SOURCE[rsa_test]=rsa_test.c 168 INCLUDE[rsa_test]=../include 169 DEPEND[rsa_test]=../libcrypto libtestutil.a 170 171 SOURCE[rsa_mp_test]=rsa_mp_test.c 172 INCLUDE[rsa_mp_test]=../include 173 DEPEND[rsa_mp_test]=../libcrypto libtestutil.a 174 175 SOURCE[fatalerrtest]=fatalerrtest.c ssltestlib.c 176 INCLUDE[fatalerrtest]=../include 177 DEPEND[fatalerrtest]=../libcrypto ../libssl libtestutil.a 178 179 SOURCE[tls13ccstest]=tls13ccstest.c ssltestlib.c 180 INCLUDE[tls13ccstest]=../include 181 DEPEND[tls13ccstest]=../libcrypto ../libssl libtestutil.a 182 183 SOURCE[evp_test]=evp_test.c 184 INCLUDE[evp_test]=../include 185 DEPEND[evp_test]=../libcrypto libtestutil.a 186 187 SOURCE[evp_extra_test]=evp_extra_test.c 188 INCLUDE[evp_extra_test]=../include 189 DEPEND[evp_extra_test]=../libcrypto libtestutil.a 190 191 SOURCE[igetest]=igetest.c 192 INCLUDE[igetest]=../include 193 DEPEND[igetest]=../libcrypto libtestutil.a 194 195 SOURCE[v3nametest]=v3nametest.c 196 INCLUDE[v3nametest]=../include 197 DEPEND[v3nametest]=../libcrypto libtestutil.a 198 199 SOURCE[crltest]=crltest.c 200 INCLUDE[crltest]=../include 201 DEPEND[crltest]=../libcrypto libtestutil.a 202 203 SOURCE[v3ext]=v3ext.c 204 INCLUDE[v3ext]=../include 205 DEPEND[v3ext]=../libcrypto libtestutil.a 206 207 SOURCE[danetest]=danetest.c 208 INCLUDE[danetest]=../include 209 DEPEND[danetest]=../libcrypto ../libssl libtestutil.a 210 211 SOURCE[constant_time_test]=constant_time_test.c 212 INCLUDE[constant_time_test]=../include 213 DEPEND[constant_time_test]=../libcrypto libtestutil.a 214 215 SOURCE[verify_extra_test]=verify_extra_test.c 216 INCLUDE[verify_extra_test]=../include 217 DEPEND[verify_extra_test]=../libcrypto libtestutil.a 218 219 SOURCE[clienthellotest]=clienthellotest.c 220 INCLUDE[clienthellotest]=../include 221 DEPEND[clienthellotest]=../libcrypto ../libssl libtestutil.a 222 223 SOURCE[bad_dtls_test]=bad_dtls_test.c 224 INCLUDE[bad_dtls_test]=../include 225 DEPEND[bad_dtls_test]=../libcrypto ../libssl libtestutil.a 226 227 SOURCE[packettest]=packettest.c 228 INCLUDE[packettest]=../include 229 DEPEND[packettest]=../libcrypto libtestutil.a 230 231 SOURCE[asynctest]=asynctest.c 232 INCLUDE[asynctest]=../include 233 DEPEND[asynctest]=../libcrypto 234 235 SOURCE[secmemtest]=secmemtest.c 236 INCLUDE[secmemtest]=../include 237 DEPEND[secmemtest]=../libcrypto libtestutil.a 238 239 SOURCE[srptest]=srptest.c 240 INCLUDE[srptest]=../include 241 DEPEND[srptest]=../libcrypto libtestutil.a 242 243 SOURCE[memleaktest]=memleaktest.c 244 INCLUDE[memleaktest]=../include 245 DEPEND[memleaktest]=../libcrypto libtestutil.a 246 247 SOURCE[stack_test]=stack_test.c 248 INCLUDE[stack_test]=../include 249 DEPEND[stack_test]=../libcrypto libtestutil.a 250 251 SOURCE[lhash_test]=lhash_test.c 252 INCLUDE[lhash_test]=../include 253 DEPEND[lhash_test]=../libcrypto libtestutil.a 254 255 SOURCE[dtlsv1listentest]=dtlsv1listentest.c 256 INCLUDE[dtlsv1listentest]=../include 257 DEPEND[dtlsv1listentest]=../libssl libtestutil.a 258 259 SOURCE[ct_test]=ct_test.c 260 INCLUDE[ct_test]=../include 261 DEPEND[ct_test]=../libcrypto libtestutil.a 262 263 SOURCE[threadstest]=threadstest.c 264 INCLUDE[threadstest]=../include 265 DEPEND[threadstest]=../libcrypto libtestutil.a 266 267 SOURCE[afalgtest]=afalgtest.c 268 INCLUDE[afalgtest]=../include 269 DEPEND[afalgtest]=../libcrypto libtestutil.a 270 271 SOURCE[d2i_test]=d2i_test.c 272 INCLUDE[d2i_test]=../include 273 DEPEND[d2i_test]=../libcrypto libtestutil.a 274 275 SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c 276 INCLUDE[ssl_test_ctx_test]=../include 277 DEPEND[ssl_test_ctx_test]=../libcrypto ../libssl libtestutil.a 278 279 SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c handshake_helper.c 280 INCLUDE[ssl_test]=../include 281 DEPEND[ssl_test]=../libcrypto ../libssl libtestutil.a 282 283 SOURCE[cipherlist_test]=cipherlist_test.c 284 INCLUDE[cipherlist_test]=../include 285 DEPEND[cipherlist_test]=../libcrypto ../libssl libtestutil.a 286 287 INCLUDE[ssl_test_ctx.o]=../include 288 INCLUDE[handshake_helper.o]=.. ../include 289 INCLUDE[ssltestlib.o]=.. ../include 290 291 SOURCE[x509aux]=x509aux.c 292 INCLUDE[x509aux]=../include 293 DEPEND[x509aux]=../libcrypto libtestutil.a 294 295 SOURCE[asynciotest]=asynciotest.c ssltestlib.c 296 INCLUDE[asynciotest]=../include 297 DEPEND[asynciotest]=../libcrypto ../libssl libtestutil.a 298 299 SOURCE[bio_callback_test]=bio_callback_test.c 300 INCLUDE[bio_callback_test]=../include 301 DEPEND[bio_callback_test]=../libcrypto libtestutil.a 302 303 SOURCE[bio_memleak_test]=bio_memleak_test.c 304 INCLUDE[bio_memleak_test]=../include 305 DEPEND[bio_memleak_test]=../libcrypto libtestutil.a 306 307 SOURCE[bioprinttest]=bioprinttest.c 308 INCLUDE[bioprinttest]=../include 309 DEPEND[bioprinttest]=../libcrypto libtestutil.a 310 311 SOURCE[sslapitest]=sslapitest.c ssltestlib.c 312 INCLUDE[sslapitest]=../include .. 313 DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a 314 315 SOURCE[ocspapitest]=ocspapitest.c 316 INCLUDE[ocspapitest]=../include 317 DEPEND[ocspapitest]=../libcrypto libtestutil.a 318 319 SOURCE[dtlstest]=dtlstest.c ssltestlib.c 320 INCLUDE[dtlstest]=../include 321 DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a 322 323 SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c 324 INCLUDE[sslcorrupttest]=../include 325 DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a 326 327 SOURCE[bio_enc_test]=bio_enc_test.c 328 INCLUDE[bio_enc_test]=../include 329 DEPEND[bio_enc_test]=../libcrypto libtestutil.a 330 331 SOURCE[pkey_meth_test]=pkey_meth_test.c 332 INCLUDE[pkey_meth_test]=../include 333 DEPEND[pkey_meth_test]=../libcrypto libtestutil.a 334 335 SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c 336 INCLUDE[pkey_meth_kdf_test]=../include 337 DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a 338 339 SOURCE[x509_time_test]=x509_time_test.c 340 INCLUDE[x509_time_test]=../include 341 DEPEND[x509_time_test]=../libcrypto libtestutil.a 342 343 SOURCE[recordlentest]=recordlentest.c ssltestlib.c 344 INCLUDE[recordlentest]=../include 345 DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a 346 347 SOURCE[drbgtest]=drbgtest.c 348 INCLUDE[drbgtest]=../include 349 DEPEND[drbgtest]=../libcrypto.a libtestutil.a 350 351 SOURCE[drbg_cavs_test]=drbg_cavs_test.c drbg_cavs_data.c 352 INCLUDE[drbg_cavs_test]=../include . .. 353 DEPEND[drbg_cavs_test]=../libcrypto libtestutil.a 354 355 SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c 356 INCLUDE[x509_dup_cert_test]=../include 357 DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a 358 359 SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c 360 INCLUDE[x509_check_cert_pkey_test]=../include 361 DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a 362 363 SOURCE[pemtest]=pemtest.c 364 INCLUDE[pemtest]=../include 365 DEPEND[pemtest]=../libcrypto libtestutil.a 366 367 SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c 368 INCLUDE[ssl_cert_table_internal_test]=.. ../include 369 DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a 370 371 SOURCE[ciphername_test]=ciphername_test.c 372 INCLUDE[ciphername_test]=../include 373 DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a 374 375 SOURCE[servername_test]=servername_test.c ssltestlib.c 376 INCLUDE[servername_test]=../include 377 DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a 378 379 IF[{- !$disabled{cms} -}] 380 PROGRAMS_NO_INST=cmsapitest 381 SOURCE[cmsapitest]=cmsapitest.c 382 INCLUDE[cmsapitest]=../include 383 DEPEND[cmsapitest]=../libcrypto libtestutil.a 384 ENDIF 385 386 IF[{- !$disabled{psk} -}] 387 PROGRAMS_NO_INST=dtls_mtu_test 388 SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c 389 INCLUDE[dtls_mtu_test]=.. ../include 390 DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a 391 ENDIF 392 393 IF[{- !$disabled{shared} -}] 394 PROGRAMS_NO_INST=shlibloadtest 395 SOURCE[shlibloadtest]=shlibloadtest.c 396 INCLUDE[shlibloadtest]=../include 397 ENDIF 398 399 IF[{- $disabled{shared} -}] 400 PROGRAMS_NO_INST=cipher_overhead_test 401 SOURCE[cipher_overhead_test]=cipher_overhead_test.c 402 INCLUDE[cipher_overhead_test]=.. ../include 403 DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a 404 ENDIF 405 406 SOURCE[uitest]=uitest.c \ 407 {- rebase_files("../apps", 408 split(/\s+/, $target{apps_init_src})) -} 409 INCLUDE[uitest]=.. ../include ../apps 410 DEPEND[uitest]=../apps/libapps.a ../libcrypto ../libssl libtestutil.a 411 412 SOURCE[cipherbytes_test]=cipherbytes_test.c 413 INCLUDE[cipherbytes_test]=../include 414 DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a 415 416 SOURCE[asn1_encode_test]=asn1_encode_test.c 417 INCLUDE[asn1_encode_test]=../include 418 DEPEND[asn1_encode_test]=../libcrypto libtestutil.a 419 420 SOURCE[asn1_decode_test]=asn1_decode_test.c 421 INCLUDE[asn1_decode_test]=../include 422 DEPEND[asn1_decode_test]=../libcrypto libtestutil.a 423 424 SOURCE[asn1_string_table_test]=asn1_string_table_test.c 425 INCLUDE[asn1_string_table_test]=../include 426 DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a 427 428 SOURCE[time_offset_test]=time_offset_test.c 429 INCLUDE[time_offset_test]=../include 430 DEPEND[time_offset_test]=../libcrypto libtestutil.a 431 432 SOURCE[conf_include_test]=conf_include_test.c 433 INCLUDE[conf_include_test]=../include 434 DEPEND[conf_include_test]=../libcrypto libtestutil.a 435 436 # Internal test programs. These are essentially a collection of internal 437 # test routines. Some of them need to reach internal symbols that aren't 438 # available through the shared library (at least on Linux, Solaris, Windows 439 # and VMS, where the exported symbols are those listed in util/*.num), these 440 # programs are forcibly linked with the static libraries, where all symbols 441 # are always available. 442 IF[1] 443 PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \ 444 tls13encryptiontest wpackettest ctype_internal_test \ 445 rdrand_sanitytest 446 IF[{- !$disabled{poly1305} -}] 447 PROGRAMS_NO_INST=poly1305_internal_test 448 ENDIF 449 IF[{- !$disabled{chacha} -}] 450 PROGRAMS_NO_INST=chacha_internal_test 451 ENDIF 452 IF[{- !$disabled{siphash} -}] 453 PROGRAMS_NO_INST=siphash_internal_test 454 ENDIF 455 IF[{- !$disabled{sm2} -}] 456 PROGRAMS_NO_INST=sm2_internal_test 457 ENDIF 458 IF[{- !$disabled{sm4} -}] 459 PROGRAMS_NO_INST=sm4_internal_test 460 ENDIF 461 IF[{- !$disabled{ec} -}] 462 PROGRAMS_NO_INST=ec_internal_test curve448_internal_test 463 ENDIF 464 IF[{- !$disabled{cmac} -}] 465 PROGRAMS_NO_INST=cmactest 466 ENDIF 467 468 SOURCE[poly1305_internal_test]=poly1305_internal_test.c 469 INCLUDE[poly1305_internal_test]=.. ../include 470 DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a 471 472 SOURCE[chacha_internal_test]=chacha_internal_test.c 473 INCLUDE[chacha_internal_test]=.. ../include 474 DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a 475 476 SOURCE[asn1_internal_test]=asn1_internal_test.c 477 INCLUDE[asn1_internal_test]=.. ../include 478 DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a 479 480 SOURCE[modes_internal_test]=modes_internal_test.c 481 INCLUDE[modes_internal_test]=.. ../include 482 DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a 483 484 SOURCE[x509_internal_test]=x509_internal_test.c 485 INCLUDE[x509_internal_test]=.. ../include 486 DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a 487 488 SOURCE[tls13encryptiontest]=tls13encryptiontest.c 489 INCLUDE[tls13encryptiontest]=.. ../include 490 DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a 491 492 SOURCE[wpackettest]=wpackettest.c 493 INCLUDE[wpackettest]=../include 494 DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a 495 496 SOURCE[ctype_internal_test]=ctype_internal_test.c 497 INCLUDE[ctype_internal_test]=.. ../include 498 DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a 499 500 IF[{- !$disabled{cmac} -}] 501 SOURCE[cmactest]=cmactest.c 502 INCLUDE[cmactest]=../include 503 DEPEND[cmactest]=../libcrypto.a libtestutil.a 504 ENDIF 505 506 SOURCE[siphash_internal_test]=siphash_internal_test.c 507 INCLUDE[siphash_internal_test]=.. ../include 508 DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a 509 510 SOURCE[sm2_internal_test]=sm2_internal_test.c 511 INCLUDE[sm2_internal_test]=../include 512 DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a 513 514 SOURCE[sm4_internal_test]=sm4_internal_test.c 515 INCLUDE[sm4_internal_test]=.. ../include 516 DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a 517 518 SOURCE[ec_internal_test]=ec_internal_test.c \ 519 {- rebase_files("../apps", 520 split(/\s+/, $target{apps_init_src})) -} 521 INCLUDE[ec_internal_test]=../include ../crypto/ec 522 DEPEND[ec_internal_test]=../libcrypto.a libtestutil.a 523 524 SOURCE[curve448_internal_test]=curve448_internal_test.c 525 INCLUDE[curve448_internal_test]=.. ../include ../crypto/ec/curve448 526 DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a 527 528 SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c 529 INCLUDE[rdrand_sanitytest]=../include 530 DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a 531 ENDIF 532 533 IF[{- !$disabled{mdc2} -}] 534 PROGRAMS_NO_INST=mdc2_internal_test 535 ENDIF 536 537 SOURCE[mdc2_internal_test]=mdc2_internal_test.c 538 INCLUDE[mdc2_internal_test]=.. ../include 539 DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a 540 541 PROGRAMS_NO_INST=asn1_time_test 542 SOURCE[asn1_time_test]=asn1_time_test.c 543 INCLUDE[asn1_time_test]=../include 544 DEPEND[asn1_time_test]=../libcrypto libtestutil.a 545 546 # We disable this test completely in a shared build because it deliberately 547 # redefines some internal libssl symbols. This doesn't work in a non-shared 548 # build 549 IF[{- !$disabled{shared} -}] 550 PROGRAMS_NO_INST=tls13secretstest 551 SOURCE[tls13secretstest]=tls13secretstest.c 552 SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c 553 INCLUDE[tls13secretstest]=.. ../include 554 DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a 555 ENDIF 556 557 SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c 558 INCLUDE[sslbuffertest]=../include 559 DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a 560 561 SOURCE[sysdefaulttest]=sysdefaulttest.c 562 INCLUDE[sysdefaulttest]=../include 563 DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a 564 565 SOURCE[errtest]=errtest.c 566 INCLUDE[errtest]=../include 567 DEPEND[errtest]=../libcrypto libtestutil.a 568 569 SOURCE[gosttest]=gosttest.c ssltestlib.c 570 INCLUDE[gosttest]=../include .. 571 DEPEND[gosttest]=../libcrypto ../libssl libtestutil.a 572 573 SOURCE[ssl_ctx_test]=ssl_ctx_test.c 574 INCLUDE[ssl_ctx_test]=../include 575 DEPEND[ssl_ctx_test]=../libcrypto ../libssl libtestutil.a 576 577{- 578 use File::Spec::Functions; 579 use File::Basename; 580 use OpenSSL::Glob; 581 582 my @nogo_headers = ( "asn1_mac.h", 583 "opensslconf.h", 584 "__decc_include_prologue.h", 585 "__decc_include_epilogue.h" ); 586 my @nogo_headers_re = ( qr/.*err\.h/ ); 587 my @headerfiles = glob catfile($sourcedir, 588 updir(), "include", "openssl", "*.h"); 589 590 foreach my $headerfile (@headerfiles) { 591 my $name = basename($headerfile, ".h"); 592 next if $disabled{$name}; 593 next if grep { $_ eq lc("$name.h") } @nogo_headers; 594 next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re; 595 $OUT .= <<"_____"; 596 597 PROGRAMS_NO_INST=buildtest_c_$name 598 SOURCE[buildtest_c_$name]=buildtest_$name.c 599 GENERATE[buildtest_$name.c]=generate_buildtest.pl $name 600 INCLUDE[buildtest_c_$name]=../include 601 DEPEND[buildtest_c_$name]=../libssl ../libcrypto 602_____ 603 $OUT .= <<"_____" if $config{CXX} && !$disabled{"buildtest-c++"}; 604 605 PROGRAMS_NO_INST=buildtest_cc_$name 606 SOURCE[buildtest_cc_$name]=buildtest_$name.cc 607 GENERATE[buildtest_$name.cc]=generate_buildtest.pl $name 608 INCLUDE[buildtest_cc_$name]=../include 609 DEPEND[buildtest_cc_$name]=../libssl ../libcrypto 610_____ 611 } 612-} 613ENDIF 614