build.info 19 KB

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