diff options
| author | Brent Cook <busterb@gmail.com> | 2023-07-03 11:19:38 -0500 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-07-03 11:19:38 -0500 |
| commit | 2722f95501a11cddf4494b15ac75bca2332ee5ea (patch) | |
| tree | bb52831d6762e94073c827e9bdf8a89a3e1247db | |
| parent | 7d0b106805f08997267c90ddbc6eea8e0b029f84 (diff) | |
| parent | 7179a01c454a997ad884cba3d2cd1804989c6adc (diff) | |
| download | portable-2722f95501a11cddf4494b15ac75bca2332ee5ea.tar.gz portable-2722f95501a11cddf4494b15ac75bca2332ee5ea.tar.bz2 portable-2722f95501a11cddf4494b15ac75bca2332ee5ea.zip | |
Land #843, add signertest to build
| -rw-r--r-- | tests/CMakeLists.txt | 23 | ||||
| -rw-r--r-- | tests/Makefile.am | 12 |
2 files changed, 23 insertions, 12 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 96981ba..7a7e391 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
| @@ -595,14 +595,23 @@ add_executable(sha_test sha_test.c) | |||
| 595 | target_link_libraries(sha_test ${OPENSSL_TEST_LIBS}) | 595 | target_link_libraries(sha_test ${OPENSSL_TEST_LIBS}) |
| 596 | add_test(sha_test sha_test) | 596 | add_test(sha_test sha_test) |
| 597 | 597 | ||
| 598 | # XXX HAVE_SOCKETPAIR | ||
| 599 | # signertest | 598 | # signertest |
| 600 | # add_executable(signertest signertest.c) | 599 | if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") |
| 601 | # target_link_libraries(signertest ${LIBTLS_TEST_LIBS}) | 600 | set(SIGNERTEST_SRC signertest.c) |
| 602 | # target_include_directories(signertest BEFORE PUBLIC ../tls) | 601 | check_function_exists(pipe2 HAVE_PIPE2) |
| 603 | # set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS | 602 | if(HAVE_PIPE2) |
| 604 | # -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | 603 | add_definitions(-DHAVE_PIPE2) |
| 605 | # add_test(signertest signertest) | 604 | else() |
| 605 | set(SIGNERTEST_SRC ${SIGNERTEST_SRC} compat/pipe2.c) | ||
| 606 | endif() | ||
| 607 | |||
| 608 | set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS | ||
| 609 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | ||
| 610 | add_executable(signertest ${SIGNERTEST_SRC}) | ||
| 611 | target_link_libraries(signertest ${LIBTLS_TEST_LIBS}) | ||
| 612 | target_include_directories(signertest BEFORE PUBLIC ../tls) | ||
| 613 | add_test(signertest signertest) | ||
| 614 | endif() | ||
| 606 | 615 | ||
| 607 | # sm2crypttest | 616 | # sm2crypttest |
| 608 | # sm2evptest | 617 | # sm2evptest |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 3e605cf..2353396 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
| @@ -626,12 +626,14 @@ TESTS += sha_test | |||
| 626 | check_PROGRAMS += sha_test | 626 | check_PROGRAMS += sha_test |
| 627 | sha_test_SOURCES = sha_test.c | 627 | sha_test_SOURCES = sha_test.c |
| 628 | 628 | ||
| 629 | # XXX HAVE_SOCKETPAIR | ||
| 630 | # signertest | 629 | # signertest |
| 631 | # TESTS += signertest | 630 | TESTS += signertest |
| 632 | # check_PROGRAMS += signertest | 631 | check_PROGRAMS += signertest |
| 633 | # signertest_CPPFLAGS = -I $(top_srcdir)/tls $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\" | 632 | signertest_CPPFLAGS = -I $(top_srcdir)/tls $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\" |
| 634 | # signertest_SOURCES = signertest.c | 633 | signertest_SOURCES = signertest.c |
| 634 | if !HAVE_PIPE2 | ||
| 635 | signertest_SOURCES += compat/pipe2.c | ||
| 636 | endif | ||
| 635 | 637 | ||
| 636 | # sm2crypttest | 638 | # sm2crypttest |
| 637 | # sm2evptest | 639 | # sm2evptest |
