diff options
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 19 | ||||
-rw-r--r-- | tests/Makefile.am | 18 |
3 files changed, 35 insertions, 8 deletions
@@ -47,6 +47,10 @@ Makefile.in | |||
47 | *.3 | 47 | *.3 |
48 | *.5 | 48 | *.5 |
49 | 49 | ||
50 | cert.pem | ||
51 | openssl.cnf | ||
52 | x509v3.cnf | ||
53 | |||
50 | # tests | 54 | # tests |
51 | test-driver | 55 | test-driver |
52 | *.log | 56 | *.log |
@@ -60,12 +64,14 @@ tests/bn_rand_interval* | |||
60 | tests/bn_to_string* | 64 | tests/bn_to_string* |
61 | tests/cipher* | 65 | tests/cipher* |
62 | tests/constraints* | 66 | tests/constraints* |
67 | tests/ec_point_conversion* | ||
63 | tests/explicit_bzero* | 68 | tests/explicit_bzero* |
64 | tests/freenull* | 69 | tests/freenull* |
65 | tests/gost2814789t* | 70 | tests/gost2814789t* |
66 | tests/key_schedule* | 71 | tests/key_schedule* |
67 | tests/mont* | 72 | tests/mont* |
68 | tests/rfc5280time* | 73 | tests/rfc5280time* |
74 | tests/ssl_get_shared_ciphers* | ||
69 | tests/ssl_methods* | 75 | tests/ssl_methods* |
70 | tests/ssl_versions* | 76 | tests/ssl_versions* |
71 | tests/timingsafe* | 77 | tests/timingsafe* |
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index cebb474..52acbba 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -132,10 +132,9 @@ if(NOT BUILD_SHARED_LIBS) | |||
132 | endif() | 132 | endif() |
133 | 133 | ||
134 | # clienttest | 134 | # clienttest |
135 | # disabled | 135 | add_executable(clienttest clienttest.c) |
136 | #add_executable(clienttest clienttest.c) | 136 | target_link_libraries(clienttest ${OPENSSL_LIBS}) |
137 | #target_link_libraries(clienttest ${OPENSSL_LIBS}) | 137 | add_test(clienttest clienttest) |
138 | #add_test(clienttest clienttest) | ||
139 | 138 | ||
140 | # cmstest | 139 | # cmstest |
141 | add_executable(cmstest cmstest.c) | 140 | add_executable(cmstest cmstest.c) |
@@ -447,6 +446,13 @@ add_executable(sm4test sm4test.c) | |||
447 | target_link_libraries(sm4test ${OPENSSL_LIBS}) | 446 | target_link_libraries(sm4test ${OPENSSL_LIBS}) |
448 | add_test(sm4test sm4test) | 447 | add_test(sm4test sm4test) |
449 | 448 | ||
449 | # ssl_get_shared_ciphers | ||
450 | add_executable(ssl_get_shared_ciphers ssl_get_shared_ciphers.c) | ||
451 | set_source_files_properties(ssl_get_shared_ciphers.c PROPERTIES COMPILE_FLAGS | ||
452 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | ||
453 | target_link_libraries(ssl_get_shared_ciphers ${OPENSSL_LIBS}) | ||
454 | add_test(ssl_get_shared_ciphers ssl_get_shared_ciphers) | ||
455 | |||
450 | # ssl_versions | 456 | # ssl_versions |
451 | if(NOT BUILD_SHARED_LIBS) | 457 | if(NOT BUILD_SHARED_LIBS) |
452 | add_executable(ssl_versions ssl_versions.c) | 458 | add_executable(ssl_versions ssl_versions.c) |
@@ -500,6 +506,11 @@ if(NOT BUILD_SHARED_LIBS) | |||
500 | add_test(tlsexttest tlsexttest) | 506 | add_test(tlsexttest tlsexttest) |
501 | endif() | 507 | endif() |
502 | 508 | ||
509 | # tlslegacytest | ||
510 | add_executable(tlslegacytest tlslegacytest.c) | ||
511 | target_link_libraries(tlslegacytest ${OPENSSL_LIBS}) | ||
512 | add_test(tlslegacytest tlslegacytest) | ||
513 | |||
503 | # tlstest | 514 | # tlstest |
504 | set(TLSTEST_SRC tlstest.c) | 515 | set(TLSTEST_SRC tlstest.c) |
505 | check_function_exists(pipe2 HAVE_PIPE2) | 516 | check_function_exists(pipe2 HAVE_PIPE2) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index d942b54..8ce338f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -132,10 +132,9 @@ check_PROGRAMS += cipherstest | |||
132 | cipherstest_SOURCES = cipherstest.c | 132 | cipherstest_SOURCES = cipherstest.c |
133 | 133 | ||
134 | # clienttest | 134 | # clienttest |
135 | # disabled | 135 | TESTS += clienttest |
136 | #TESTS += clienttest | 136 | check_PROGRAMS += clienttest |
137 | #check_PROGRAMS += clienttest | 137 | clienttest_SOURCES = clienttest.c |
138 | #clienttest_SOURCES = clienttest.c | ||
139 | 138 | ||
140 | # cmstest | 139 | # cmstest |
141 | TESTS += cmstest | 140 | TESTS += cmstest |
@@ -416,6 +415,12 @@ TESTS += sm4test | |||
416 | check_PROGRAMS += sm4test | 415 | check_PROGRAMS += sm4test |
417 | sm4test_SOURCES = sm4test.c | 416 | sm4test_SOURCES = sm4test.c |
418 | 417 | ||
418 | # ssl_get_shared_ciphers | ||
419 | TESTS += ssl_get_shared_ciphers | ||
420 | ssl_get_shared_ciphers_CPPFLAGS = $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\" | ||
421 | check_PROGRAMS += ssl_get_shared_ciphers | ||
422 | ssl_get_shared_ciphers_SOURCES = ssl_get_shared_ciphers.c | ||
423 | |||
419 | # ssl_methods | 424 | # ssl_methods |
420 | TESTS += ssl_methods | 425 | TESTS += ssl_methods |
421 | check_PROGRAMS += ssl_methods | 426 | check_PROGRAMS += ssl_methods |
@@ -456,6 +461,11 @@ TESTS += tlsexttest | |||
456 | check_PROGRAMS += tlsexttest | 461 | check_PROGRAMS += tlsexttest |
457 | tlsexttest_SOURCES = tlsexttest.c | 462 | tlsexttest_SOURCES = tlsexttest.c |
458 | 463 | ||
464 | # tlslegacytest | ||
465 | TESTS += tlslegacytest | ||
466 | check_PROGRAMS += tlslegacytest | ||
467 | tlslegacytest_SOURCES = tlslegacytest.c | ||
468 | |||
459 | # tlstest | 469 | # tlstest |
460 | TESTS += tlstest.sh | 470 | TESTS += tlstest.sh |
461 | check_PROGRAMS += tlstest | 471 | check_PROGRAMS += tlstest |