build.info 25 KB

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