diff options
author | Geoff Beier <geoffbeier@gmail.com> | 2016-08-01 21:28:53 -0400 |
---|---|---|
committer | Geoff Beier <geoffbeier@gmail.com> | 2016-08-01 21:28:53 -0400 |
commit | 36aafbb2410a9a0da0c83c32499d3dcb6e5d2025 (patch) | |
tree | 2dbff890af90ae7f03e678347ab903cc3eade39b | |
parent | 7a46efa40de2ef73a78e54e701b47a57ef732b6d (diff) | |
download | portable-36aafbb2410a9a0da0c83c32499d3dcb6e5d2025.tar.gz portable-36aafbb2410a9a0da0c83c32499d3dcb6e5d2025.tar.bz2 portable-36aafbb2410a9a0da0c83c32499d3dcb6e5d2025.zip |
Set _PATH_SSL_CA_FILE to either CMAKE_INSTALL_PREFIX or OPENSSLDIR for the OCSP tests so that OCSP tests can be executed on a system without /etc/ssl/cert.pem
-rw-r--r-- | tests/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b0d5ea0..c44e876 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -196,6 +196,11 @@ add_test(mont mont) | |||
196 | 196 | ||
197 | # ocsp_test | 197 | # ocsp_test |
198 | if(ENABLE_EXTRATESTS) | 198 | if(ENABLE_EXTRATESTS) |
199 | if(NOT "${OPENSSLDIR}" STREQUAL "") | ||
200 | add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\") | ||
201 | else() | ||
202 | add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") | ||
203 | endif() | ||
199 | add_executable(ocsp_test ocsp_test.c) | 204 | add_executable(ocsp_test ocsp_test.c) |
200 | target_link_libraries(ocsp_test ${OPENSSL_LIBS}) | 205 | target_link_libraries(ocsp_test ${OPENSSL_LIBS}) |
201 | add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) | 206 | add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) |