build.info 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. SUBDIRS=ossl_shim
  2. {-
  3. use File::Spec::Functions;
  4. sub rebase_files
  5. {
  6. my ($base, $files) = @_;
  7. return join(" ", map { "$base/$_" } split(/\s+/, $files));
  8. }
  9. ""
  10. -}
  11. IF[{- !$disabled{tests} -}]
  12. LIBS_NO_INST=libtestutil.a
  13. SOURCE[libtestutil.a]=testutil/basic_output.c testutil/output_helpers.c \
  14. testutil/driver.c testutil/tests.c testutil/cb.c testutil/stanza.c \
  15. testutil/format_output.c testutil/tap_bio.c \
  16. testutil/test_cleanup.c testutil/main.c testutil/init.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 \
  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 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 ../crypto/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[bioprinttest]=bioprinttest.c
  239. INCLUDE[bioprinttest]=../include
  240. DEPEND[bioprinttest]=../libcrypto libtestutil.a
  241. SOURCE[sslapitest]=sslapitest.c ssltestlib.c
  242. INCLUDE[sslapitest]=../include ..
  243. DEPEND[sslapitest]=../libcrypto ../libssl libtestutil.a
  244. SOURCE[ocspapitest]=ocspapitest.c
  245. INCLUDE[ocspapitest]=../include
  246. DEPEND[ocspapitest]=../libcrypto libtestutil.a
  247. SOURCE[dtlstest]=dtlstest.c ssltestlib.c
  248. INCLUDE[dtlstest]=../include
  249. DEPEND[dtlstest]=../libcrypto ../libssl libtestutil.a
  250. SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c
  251. INCLUDE[sslcorrupttest]=../include
  252. DEPEND[sslcorrupttest]=../libcrypto ../libssl libtestutil.a
  253. SOURCE[bio_enc_test]=bio_enc_test.c
  254. INCLUDE[bio_enc_test]=../include
  255. DEPEND[bio_enc_test]=../libcrypto libtestutil.a
  256. SOURCE[pkey_meth_test]=pkey_meth_test.c
  257. INCLUDE[pkey_meth_test]=../include
  258. DEPEND[pkey_meth_test]=../libcrypto libtestutil.a
  259. SOURCE[pkey_meth_kdf_test]=pkey_meth_kdf_test.c
  260. INCLUDE[pkey_meth_kdf_test]=../include
  261. DEPEND[pkey_meth_kdf_test]=../libcrypto libtestutil.a
  262. SOURCE[x509_time_test]=x509_time_test.c
  263. INCLUDE[x509_time_test]=../include
  264. DEPEND[x509_time_test]=../libcrypto libtestutil.a
  265. SOURCE[recordlentest]=recordlentest.c ssltestlib.c
  266. INCLUDE[recordlentest]=../include
  267. DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
  268. SOURCE[drbgtest]=drbgtest.c
  269. INCLUDE[drbgtest]=../include
  270. DEPEND[drbgtest]=../libcrypto.a libtestutil.a
  271. SOURCE[drbg_cavs_test]=drbg_cavs_test.c drbg_cavs_data_ctr.c \
  272. drbg_cavs_data_hash.c drbg_cavs_data_hmac.c
  273. INCLUDE[drbg_cavs_test]=../include . ..
  274. DEPEND[drbg_cavs_test]=../libcrypto libtestutil.a
  275. SOURCE[x509_dup_cert_test]=x509_dup_cert_test.c
  276. INCLUDE[x509_dup_cert_test]=../include
  277. DEPEND[x509_dup_cert_test]=../libcrypto libtestutil.a
  278. SOURCE[x509_check_cert_pkey_test]=x509_check_cert_pkey_test.c
  279. INCLUDE[x509_check_cert_pkey_test]=../include
  280. DEPEND[x509_check_cert_pkey_test]=../libcrypto libtestutil.a
  281. SOURCE[pemtest]=pemtest.c
  282. INCLUDE[pemtest]=../include
  283. DEPEND[pemtest]=../libcrypto libtestutil.a
  284. SOURCE[ssl_cert_table_internal_test]=ssl_cert_table_internal_test.c
  285. INCLUDE[ssl_cert_table_internal_test]=.. ../include
  286. DEPEND[ssl_cert_table_internal_test]=../libcrypto libtestutil.a
  287. SOURCE[ciphername_test]=ciphername_test.c
  288. INCLUDE[ciphername_test]=../include
  289. DEPEND[ciphername_test]=../libcrypto ../libssl libtestutil.a
  290. SOURCE[servername_test]=servername_test.c ssltestlib.c
  291. INCLUDE[servername_test]=../include
  292. DEPEND[servername_test]=../libcrypto ../libssl libtestutil.a
  293. IF[{- !$disabled{cms} -}]
  294. PROGRAMS_NO_INST=cmsapitest
  295. SOURCE[cmsapitest]=cmsapitest.c
  296. INCLUDE[cmsapitest]=../include
  297. DEPEND[cmsapitest]=../libcrypto libtestutil.a
  298. ENDIF
  299. IF[{- !$disabled{psk} -}]
  300. PROGRAMS_NO_INST=dtls_mtu_test
  301. SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
  302. INCLUDE[dtls_mtu_test]=.. ../include
  303. DEPEND[dtls_mtu_test]=../libcrypto ../libssl libtestutil.a
  304. ENDIF
  305. IF[{- !$disabled{shared} -}]
  306. PROGRAMS_NO_INST=shlibloadtest
  307. SOURCE[shlibloadtest]=shlibloadtest.c
  308. INCLUDE[shlibloadtest]=../include ../crypto/include
  309. DEPEND[shlibloadtest]=libtestutil.a
  310. ENDIF
  311. IF[{- $disabled{shared} -}]
  312. PROGRAMS_NO_INST=cipher_overhead_test
  313. SOURCE[cipher_overhead_test]=cipher_overhead_test.c
  314. INCLUDE[cipher_overhead_test]=.. ../include
  315. DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
  316. ENDIF
  317. SOURCE[uitest]=uitest.c \
  318. {- rebase_files("../apps",
  319. split(/\s+/, $target{apps_init_src})) -}
  320. INCLUDE[uitest]=.. ../include ../apps
  321. DEPEND[uitest]=../apps/libapps.a ../libcrypto ../libssl libtestutil.a
  322. SOURCE[cipherbytes_test]=cipherbytes_test.c
  323. INCLUDE[cipherbytes_test]=../include
  324. DEPEND[cipherbytes_test]=../libcrypto ../libssl libtestutil.a
  325. SOURCE[asn1_encode_test]=asn1_encode_test.c
  326. INCLUDE[asn1_encode_test]=../include
  327. DEPEND[asn1_encode_test]=../libcrypto libtestutil.a
  328. SOURCE[asn1_decode_test]=asn1_decode_test.c
  329. INCLUDE[asn1_decode_test]=../include
  330. DEPEND[asn1_decode_test]=../libcrypto libtestutil.a
  331. SOURCE[asn1_string_table_test]=asn1_string_table_test.c
  332. INCLUDE[asn1_string_table_test]=../include
  333. DEPEND[asn1_string_table_test]=../libcrypto libtestutil.a
  334. SOURCE[time_offset_test]=time_offset_test.c
  335. INCLUDE[time_offset_test]=../include
  336. DEPEND[time_offset_test]=../libcrypto libtestutil.a
  337. SOURCE[conf_include_test]=conf_include_test.c
  338. INCLUDE[conf_include_test]=../include
  339. DEPEND[conf_include_test]=../libcrypto libtestutil.a
  340. # Internal test programs. These are essentially a collection of internal
  341. # test routines. Some of them need to reach internal symbols that aren't
  342. # available through the shared library (at least on Linux, Solaris, Windows
  343. # and VMS, where the exported symbols are those listed in util/*.num), these
  344. # programs are forcibly linked with the static libraries, where all symbols
  345. # are always available.
  346. IF[1]
  347. PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test \
  348. tls13encryptiontest wpackettest ctype_internal_test \
  349. rdrand_sanitytest
  350. IF[{- !$disabled{poly1305} -}]
  351. PROGRAMS_NO_INST=poly1305_internal_test
  352. ENDIF
  353. IF[{- !$disabled{chacha} -}]
  354. PROGRAMS_NO_INST=chacha_internal_test
  355. ENDIF
  356. IF[{- !$disabled{siphash} -}]
  357. PROGRAMS_NO_INST=siphash_internal_test
  358. ENDIF
  359. IF[{- !$disabled{sm2} -}]
  360. PROGRAMS_NO_INST=sm2_internal_test
  361. ENDIF
  362. IF[{- !$disabled{sm4} -}]
  363. PROGRAMS_NO_INST=sm4_internal_test
  364. ENDIF
  365. IF[{- !$disabled{ec} -}]
  366. PROGRAMS_NO_INST=curve448_internal_test
  367. ENDIF
  368. SOURCE[poly1305_internal_test]=poly1305_internal_test.c
  369. INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
  370. DEPEND[poly1305_internal_test]=../libcrypto.a libtestutil.a
  371. SOURCE[chacha_internal_test]=chacha_internal_test.c
  372. INCLUDE[chacha_internal_test]=.. ../include ../crypto/include
  373. DEPEND[chacha_internal_test]=../libcrypto.a libtestutil.a
  374. SOURCE[asn1_internal_test]=asn1_internal_test.c
  375. INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
  376. DEPEND[asn1_internal_test]=../libcrypto.a libtestutil.a
  377. SOURCE[modes_internal_test]=modes_internal_test.c
  378. INCLUDE[modes_internal_test]=.. ../include
  379. DEPEND[modes_internal_test]=../libcrypto.a libtestutil.a
  380. SOURCE[x509_internal_test]=x509_internal_test.c
  381. INCLUDE[x509_internal_test]=.. ../include
  382. DEPEND[x509_internal_test]=../libcrypto.a libtestutil.a
  383. SOURCE[tls13encryptiontest]=tls13encryptiontest.c
  384. INCLUDE[tls13encryptiontest]=.. ../include
  385. DEPEND[tls13encryptiontest]=../libcrypto ../libssl.a libtestutil.a
  386. SOURCE[wpackettest]=wpackettest.c
  387. INCLUDE[wpackettest]=../include
  388. DEPEND[wpackettest]=../libcrypto ../libssl.a libtestutil.a
  389. SOURCE[ctype_internal_test]=ctype_internal_test.c
  390. INCLUDE[ctype_internal_test]=.. ../crypto/include ../include
  391. DEPEND[ctype_internal_test]=../libcrypto.a libtestutil.a
  392. SOURCE[siphash_internal_test]=siphash_internal_test.c
  393. INCLUDE[siphash_internal_test]=.. ../include ../crypto/include
  394. DEPEND[siphash_internal_test]=../libcrypto.a libtestutil.a
  395. SOURCE[sm2_internal_test]=sm2_internal_test.c
  396. INCLUDE[sm2_internal_test]=../include ../crypto/include
  397. DEPEND[sm2_internal_test]=../libcrypto.a libtestutil.a
  398. SOURCE[sm4_internal_test]=sm4_internal_test.c
  399. INCLUDE[sm4_internal_test]=.. ../include ../crypto/include
  400. DEPEND[sm4_internal_test]=../libcrypto.a libtestutil.a
  401. SOURCE[curve448_internal_test]=curve448_internal_test.c
  402. INCLUDE[curve448_internal_test]=.. ../include ../crypto/ec/curve448
  403. DEPEND[curve448_internal_test]=../libcrypto.a libtestutil.a
  404. SOURCE[rdrand_sanitytest]=rdrand_sanitytest.c
  405. INCLUDE[rdrand_sanitytest]=../include
  406. DEPEND[rdrand_sanitytest]=../libcrypto.a libtestutil.a
  407. ENDIF
  408. IF[{- !$disabled{mdc2} -}]
  409. PROGRAMS_NO_INST=mdc2_internal_test
  410. ENDIF
  411. SOURCE[mdc2_internal_test]=mdc2_internal_test.c
  412. INCLUDE[mdc2_internal_test]=.. ../include
  413. DEPEND[mdc2_internal_test]=../libcrypto libtestutil.a
  414. PROGRAMS_NO_INST=asn1_time_test
  415. SOURCE[asn1_time_test]=asn1_time_test.c
  416. INCLUDE[asn1_time_test]=../include
  417. DEPEND[asn1_time_test]=../libcrypto libtestutil.a
  418. # We disable this test completely in a shared build because it deliberately
  419. # redefines some internal libssl symbols. This doesn't work in a non-shared
  420. # build
  421. IF[{- !$disabled{shared} -}]
  422. PROGRAMS_NO_INST=tls13secretstest
  423. SOURCE[tls13secretstest]=tls13secretstest.c
  424. SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
  425. INCLUDE[tls13secretstest]=.. ../include
  426. DEPEND[tls13secretstest]=../libcrypto ../libssl libtestutil.a
  427. ENDIF
  428. SOURCE[sslbuffertest]=sslbuffertest.c ssltestlib.c
  429. INCLUDE[sslbuffertest]=../include
  430. DEPEND[sslbuffertest]=../libcrypto ../libssl libtestutil.a
  431. SOURCE[sysdefaulttest]=sysdefaulttest.c
  432. INCLUDE[sysdefaulttest]=../include
  433. DEPEND[sysdefaulttest]=../libcrypto ../libssl libtestutil.a
  434. SOURCE[errtest]=errtest.c
  435. INCLUDE[errtest]=../include
  436. DEPEND[errtest]=../libcrypto libtestutil.a
  437. SOURCE[gosttest]=gosttest.c ssltestlib.c
  438. INCLUDE[gosttest]=../include ..
  439. DEPEND[gosttest]=../libcrypto ../libssl libtestutil.a
  440. ENDIF
  441. {-
  442. use File::Spec::Functions;
  443. use File::Basename;
  444. use OpenSSL::Glob;
  445. my @nogo_headers = ( "asn1_mac.h",
  446. "opensslconf.h",
  447. "__decc_include_prologue.h",
  448. "__decc_include_epilogue.h" );
  449. my @nogo_headers_re = ( qr/.*err\.h/ );
  450. my @headerfiles = glob catfile($sourcedir,
  451. updir(), "include", "openssl", "*.h");
  452. foreach my $headerfile (@headerfiles) {
  453. my $name = basename($headerfile, ".h");
  454. next if $disabled{$name};
  455. next if grep { $_ eq lc("$name.h") } @nogo_headers;
  456. next if grep { lc("$name.h") =~ m/$_/i } @nogo_headers_re;
  457. $OUT .= <<"_____";
  458. PROGRAMS_NO_INST=buildtest_$name
  459. GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
  460. SOURCE[buildtest_$name]=buildtest_$name.c
  461. INCLUDE[buildtest_$name]=../include
  462. DEPEND[buildtest_$name]=../libssl ../libcrypto
  463. _____
  464. }
  465. -}