aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2023-04-17 10:55:52 +0200
committerBrent Cook <busterb@gmail.com>2023-07-03 16:45:02 +0300
commit33b2c49c9bde6aff3f8c460e46007fd9301e1dbf (patch)
tree054832f70c70cab15054e6a6e41cb746d5252a3d /tests
parent559f40996a938c8563821e0920974d3779f29c6a (diff)
downloadportable-33b2c49c9bde6aff3f8c460e46007fd9301e1dbf.tar.gz
portable-33b2c49c9bde6aff3f8c460e46007fd9301e1dbf.tar.bz2
portable-33b2c49c9bde6aff3f8c460e46007fd9301e1dbf.zip
link signertest to build
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt20
-rw-r--r--tests/Makefile.am12
2 files changed, 20 insertions, 12 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 96981ba..1828f0f 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -595,14 +595,20 @@ add_executable(sha_test sha_test.c)
595target_link_libraries(sha_test ${OPENSSL_TEST_LIBS}) 595target_link_libraries(sha_test ${OPENSSL_TEST_LIBS})
596add_test(sha_test sha_test) 596add_test(sha_test sha_test)
597 597
598# XXX HAVE_SOCKETPAIR
599# signertest 598# signertest
600# add_executable(signertest signertest.c) 599if(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 set(SIGNERTEST_SRC ${SIGNERTEST_SRC} compat/pipe2.c)
605# add_test(signertest signertest) 604 endif()
605 set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS
606 -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\")
607 add_executable(signertest ${SIGNERTEST_SRC})
608 target_link_libraries(signertest ${LIBTLS_TEST_LIBS})
609 target_include_directories(signertest BEFORE PUBLIC ../tls)
610 add_test(signertest signertest)
611endif()
606 612
607# sm2crypttest 613# sm2crypttest
608# sm2evptest 614# 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
626check_PROGRAMS += sha_test 626check_PROGRAMS += sha_test
627sha_test_SOURCES = sha_test.c 627sha_test_SOURCES = sha_test.c
628 628
629# XXX HAVE_SOCKETPAIR
630# signertest 629# signertest
631# TESTS += signertest 630TESTS += signertest
632# check_PROGRAMS += signertest 631check_PROGRAMS += signertest
633# signertest_CPPFLAGS = -I $(top_srcdir)/tls $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\" 632signertest_CPPFLAGS = -I $(top_srcdir)/tls $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\"
634# signertest_SOURCES = signertest.c 633signertest_SOURCES = signertest.c
634if !HAVE_PIPE2
635signertest_SOURCES += compat/pipe2.c
636endif
635 637
636# sm2crypttest 638# sm2crypttest
637# sm2evptest 639# sm2evptest