Land #843, add signertest to build
This commit is contained in:
commit
2722f95501
@ -595,14 +595,23 @@ add_executable(sha_test sha_test.c)
|
|||||||
target_link_libraries(sha_test ${OPENSSL_TEST_LIBS})
|
target_link_libraries(sha_test ${OPENSSL_TEST_LIBS})
|
||||||
add_test(sha_test sha_test)
|
add_test(sha_test sha_test)
|
||||||
|
|
||||||
# XXX HAVE_SOCKETPAIR
|
|
||||||
# signertest
|
# signertest
|
||||||
# add_executable(signertest signertest.c)
|
if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
||||||
# target_link_libraries(signertest ${LIBTLS_TEST_LIBS})
|
set(SIGNERTEST_SRC signertest.c)
|
||||||
# target_include_directories(signertest BEFORE PUBLIC ../tls)
|
check_function_exists(pipe2 HAVE_PIPE2)
|
||||||
# set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS
|
if(HAVE_PIPE2)
|
||||||
# -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\")
|
add_definitions(-DHAVE_PIPE2)
|
||||||
# add_test(signertest signertest)
|
else()
|
||||||
|
set(SIGNERTEST_SRC ${SIGNERTEST_SRC} compat/pipe2.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set_source_files_properties(signertest.c PROPERTIES COMPILE_FLAGS
|
||||||
|
-DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\")
|
||||||
|
add_executable(signertest ${SIGNERTEST_SRC})
|
||||||
|
target_link_libraries(signertest ${LIBTLS_TEST_LIBS})
|
||||||
|
target_include_directories(signertest BEFORE PUBLIC ../tls)
|
||||||
|
add_test(signertest signertest)
|
||||||
|
endif()
|
||||||
|
|
||||||
# sm2crypttest
|
# sm2crypttest
|
||||||
# sm2evptest
|
# sm2evptest
|
||||||
|
@ -626,12 +626,14 @@ TESTS += sha_test
|
|||||||
check_PROGRAMS += sha_test
|
check_PROGRAMS += sha_test
|
||||||
sha_test_SOURCES = sha_test.c
|
sha_test_SOURCES = sha_test.c
|
||||||
|
|
||||||
# XXX HAVE_SOCKETPAIR
|
|
||||||
# signertest
|
# signertest
|
||||||
# TESTS += signertest
|
TESTS += signertest
|
||||||
# check_PROGRAMS += signertest
|
check_PROGRAMS += signertest
|
||||||
# signertest_CPPFLAGS = -I $(top_srcdir)/tls $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\"
|
signertest_CPPFLAGS = -I $(top_srcdir)/tls $(AM_CPPFLAGS) -DCERTSDIR=\"$(srcdir)\"
|
||||||
# signertest_SOURCES = signertest.c
|
signertest_SOURCES = signertest.c
|
||||||
|
if !HAVE_PIPE2
|
||||||
|
signertest_SOURCES += compat/pipe2.c
|
||||||
|
endif
|
||||||
|
|
||||||
# sm2crypttest
|
# sm2crypttest
|
||||||
# sm2evptest
|
# sm2evptest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user