Set _PATH_SSL_CA_FILE to the tarball internal path for regression tests
- let tests to use the cert.pem in the tarball, for both automake and cmake. - put this definition out of "if(ENABLE_EXTRATESTS)" since this can be shared by all tests.
This commit is contained in:
parent
36aafbb241
commit
fef54aef36
@ -9,6 +9,8 @@ include_directories(
|
|||||||
../apps/openssl/compat
|
../apps/openssl/compat
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../apps/openssl/cert.pem\")
|
||||||
|
|
||||||
# aeadtest
|
# aeadtest
|
||||||
add_executable(aeadtest aeadtest.c)
|
add_executable(aeadtest aeadtest.c)
|
||||||
target_link_libraries(aeadtest ${OPENSSL_LIBS})
|
target_link_libraries(aeadtest ${OPENSSL_LIBS})
|
||||||
@ -196,15 +198,9 @@ add_test(mont mont)
|
|||||||
|
|
||||||
# ocsp_test
|
# ocsp_test
|
||||||
if(ENABLE_EXTRATESTS)
|
if(ENABLE_EXTRATESTS)
|
||||||
if(NOT "${OPENSSLDIR}" STREQUAL "")
|
|
||||||
add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\")
|
|
||||||
else()
|
|
||||||
add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\")
|
|
||||||
endif()
|
|
||||||
add_executable(ocsp_test ocsp_test.c)
|
add_executable(ocsp_test ocsp_test.c)
|
||||||
target_link_libraries(ocsp_test ${OPENSSL_LIBS})
|
target_link_libraries(ocsp_test ${OPENSSL_LIBS})
|
||||||
add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh)
|
add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh)
|
||||||
set_tests_properties(ocsptest PROPERTIES ENVIRONMENT "srcdir=${CMAKE_CURRENT_SOURCE_DIR}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# optionstest
|
# optionstest
|
||||||
|
@ -5,6 +5,7 @@ AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1
|
|||||||
AM_CPPFLAGS += -I $(top_srcdir)/ssl
|
AM_CPPFLAGS += -I $(top_srcdir)/ssl
|
||||||
AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl
|
AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl
|
||||||
AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat
|
AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat
|
||||||
|
AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/apps/openssl/cert.pem\"
|
||||||
|
|
||||||
LDADD = $(PLATFORM_LDADD) $(PROG_LDADD)
|
LDADD = $(PLATFORM_LDADD) $(PROG_LDADD)
|
||||||
LDADD += $(abs_top_builddir)/ssl/libssl.la
|
LDADD += $(abs_top_builddir)/ssl/libssl.la
|
||||||
|
Loading…
x
Reference in New Issue
Block a user