build.info 20 KB

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