build.info 22 KB

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