2
0

build.info 20 KB

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