diff options
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9a6242c..f53495f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -40,6 +40,13 @@ add_executable(aes_wrap aes_wrap.c) | |||
40 | target_link_libraries(aes_wrap ${OPENSSL_TEST_LIBS}) | 40 | target_link_libraries(aes_wrap ${OPENSSL_TEST_LIBS}) |
41 | add_test(aes_wrap aes_wrap) | 41 | add_test(aes_wrap aes_wrap) |
42 | 42 | ||
43 | # apitest | ||
44 | add_executable(apitest apitest.c) | ||
45 | target_link_libraries(apitest ${OPENSSL_TEST_LIBS}) | ||
46 | set_source_files_properties(apitest.c PROPERTIES COMPILE_FLAGS | ||
47 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | ||
48 | add_test(apitest apitest) | ||
49 | |||
43 | # arc4randomforktest | 50 | # arc4randomforktest |
44 | # Windows/mingw does not have fork, but Cygwin does. | 51 | # Windows/mingw does not have fork, but Cygwin does. |
45 | if(NOT (WIN32 OR (CMAKE_SYSTEM_NAME MATCHES "MINGW"))) | 52 | if(NOT (WIN32 OR (CMAKE_SYSTEM_NAME MATCHES "MINGW"))) |
@@ -146,6 +153,8 @@ add_executable(bn_gcd bn_cmp.c) | |||
146 | target_link_libraries(bn_gcd ${OPENSSL_TEST_LIBS}) | 153 | target_link_libraries(bn_gcd ${OPENSSL_TEST_LIBS}) |
147 | add_test(bn_gcd bn_gcd) | 154 | add_test(bn_gcd bn_gcd) |
148 | 155 | ||
156 | # bn_general is a benchmark | ||
157 | |||
149 | # bn_isqrt | 158 | # bn_isqrt |
150 | add_executable(bn_isqrt bn_isqrt.c) | 159 | add_executable(bn_isqrt bn_isqrt.c) |
151 | target_link_libraries(bn_isqrt ${OPENSSL_TEST_LIBS}) | 160 | target_link_libraries(bn_isqrt ${OPENSSL_TEST_LIBS}) |
@@ -215,6 +224,9 @@ add_executable(bytestringtest bytestringtest.c) | |||
215 | target_link_libraries(bytestringtest ${OPENSSL_TEST_LIBS}) | 224 | target_link_libraries(bytestringtest ${OPENSSL_TEST_LIBS}) |
216 | add_test(bytestringtest bytestringtest) | 225 | add_test(bytestringtest bytestringtest) |
217 | 226 | ||
227 | # callback | ||
228 | # callbackfailures | ||
229 | |||
218 | # casttest | 230 | # casttest |
219 | add_executable(casttest casttest.c) | 231 | add_executable(casttest casttest.c) |
220 | target_link_libraries(casttest ${OPENSSL_TEST_LIBS}) | 232 | target_link_libraries(casttest ${OPENSSL_TEST_LIBS}) |
@@ -260,6 +272,13 @@ add_executable(cts128test cts128test.c) | |||
260 | target_link_libraries(cts128test ${OPENSSL_TEST_LIBS}) | 272 | target_link_libraries(cts128test ${OPENSSL_TEST_LIBS}) |
261 | add_test(cts128test cts128test) | 273 | add_test(cts128test cts128test) |
262 | 274 | ||
275 | # cttest | ||
276 | add_executable(cttest cttest.c) | ||
277 | target_link_libraries(cttest ${OPENSSL_TEST_LIBS}) | ||
278 | set_source_files_properties(cttest.c PROPERTIES COMPILE_FLAGS | ||
279 | -DCTPATH=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | ||
280 | add_test(cttest cttest) | ||
281 | |||
263 | # destest | 282 | # destest |
264 | add_executable(destest destest.c) | 283 | add_executable(destest destest.c) |
265 | target_link_libraries(destest ${OPENSSL_TEST_LIBS}) | 284 | target_link_libraries(destest ${OPENSSL_TEST_LIBS}) |
@@ -339,6 +358,13 @@ add_executable(evptest evptest.c) | |||
339 | target_link_libraries(evptest ${OPENSSL_TEST_LIBS}) | 358 | target_link_libraries(evptest ${OPENSSL_TEST_LIBS}) |
340 | add_test(evptest evptest ${CMAKE_CURRENT_SOURCE_DIR}/evptests.txt) | 359 | add_test(evptest evptest ${CMAKE_CURRENT_SOURCE_DIR}/evptests.txt) |
341 | 360 | ||
361 | # evp_test | ||
362 | add_executable(evp_test evp_test.c) | ||
363 | target_link_libraries(evp_test ${OPENSSL_TEST_LIBS}) | ||
364 | add_test(evp_test evp_test) | ||
365 | |||
366 | # expirecallback.c | ||
367 | |||
342 | # explicit_bzero | 368 | # explicit_bzero |
343 | # explicit_bzero relies on SA_ONSTACK, which is unavailable on Windows | 369 | # explicit_bzero relies on SA_ONSTACK, which is unavailable on Windows |
344 | if(NOT WIN32) | 370 | if(NOT WIN32) |
@@ -351,6 +377,11 @@ if(NOT WIN32) | |||
351 | add_test(explicit_bzero explicit_bzero) | 377 | add_test(explicit_bzero explicit_bzero) |
352 | endif() | 378 | endif() |
353 | 379 | ||
380 | # exportertest | ||
381 | add_executable(exportertest exportertest.c) | ||
382 | target_link_libraries(exportertest ${OPENSSL_TEST_LIBS}) | ||
383 | add_test(exportertest exportertest) | ||
384 | |||
354 | # freenull | 385 | # freenull |
355 | add_executable(freenull freenull.c) | 386 | add_executable(freenull freenull.c) |
356 | set_source_files_properties(freenull.c PROPERTIES COMPILE_FLAGS | 387 | set_source_files_properties(freenull.c PROPERTIES COMPILE_FLAGS |
@@ -393,11 +424,14 @@ add_executable(igetest igetest.c) | |||
393 | target_link_libraries(igetest ${OPENSSL_TEST_LIBS}) | 424 | target_link_libraries(igetest ${OPENSSL_TEST_LIBS}) |
394 | add_test(igetest igetest) | 425 | add_test(igetest igetest) |
395 | 426 | ||
396 | # keypairtest | 427 | # init_pledge |
428 | |||
429 | # key_schedule | ||
397 | add_executable(key_schedule key_schedule.c) | 430 | add_executable(key_schedule key_schedule.c) |
398 | target_link_libraries(key_schedule ${OPENSSL_TEST_LIBS}) | 431 | target_link_libraries(key_schedule ${OPENSSL_TEST_LIBS}) |
399 | add_test(key_schedule key_schedule) | 432 | add_test(key_schedule key_schedule) |
400 | 433 | ||
434 | # keypair | ||
401 | add_executable(keypairtest keypairtest.c) | 435 | add_executable(keypairtest keypairtest.c) |
402 | target_link_libraries(keypairtest ${LIBTLS_TEST_LIBS}) | 436 | target_link_libraries(keypairtest ${LIBTLS_TEST_LIBS}) |
403 | target_include_directories(keypairtest BEFORE PUBLIC ../tls) | 437 | target_include_directories(keypairtest BEFORE PUBLIC ../tls) |
@@ -528,6 +562,8 @@ add_executable(rsa_test rsa_test.c) | |||
528 | target_link_libraries(rsa_test ${OPENSSL_TEST_LIBS}) | 562 | target_link_libraries(rsa_test ${OPENSSL_TEST_LIBS}) |
529 | add_test(rsa_test rsa_test) | 563 | add_test(rsa_test rsa_test) |
530 | 564 | ||
565 | # server.c | ||
566 | |||
531 | # servertest | 567 | # servertest |
532 | add_executable(servertest servertest.c) | 568 | add_executable(servertest servertest.c) |
533 | target_link_libraries(servertest ${OPENSSL_TEST_LIBS}) | 569 | target_link_libraries(servertest ${OPENSSL_TEST_LIBS}) |
@@ -543,6 +579,18 @@ add_executable(sha_test sha_test.c) | |||
543 | target_link_libraries(sha_test ${OPENSSL_TEST_LIBS}) | 579 | target_link_libraries(sha_test ${OPENSSL_TEST_LIBS}) |
544 | add_test(sha_test sha_test) | 580 | add_test(sha_test sha_test) |
545 | 581 | ||
582 | # signertest | ||
583 | add_executable(signertest signertest.c) | ||
584 | target_link_libraries(signertest ${LIBTLS_TEST_LIBS}) | ||
585 | target_include_directories(signertest BEFORE PUBLIC ../tls) | ||
586 | set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS | ||
587 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | ||
588 | add_test(signertest signertest) | ||
589 | |||
590 | # sm2crypttest | ||
591 | # sm2evptest | ||
592 | # sm2sigtest | ||
593 | |||
546 | # sm3test | 594 | # sm3test |
547 | add_executable(sm3test sm3test.c) | 595 | add_executable(sm3test sm3test.c) |
548 | target_link_libraries(sm3test ${OPENSSL_TEST_LIBS}) | 596 | target_link_libraries(sm3test ${OPENSSL_TEST_LIBS}) |