diff options
| author | Geoff Beier <geoffbeier@gmail.com> | 2016-08-01 21:28:53 -0400 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2016-08-02 11:02:48 -0500 |
| commit | 1d36474726ce4d53120e2968209cdb892a194e82 (patch) | |
| tree | adb687898e923e61cefac4b3e124dd1c9e988e26 /tests | |
| parent | 48ecc2d05d2d28bbd10ae3328ede1a6fbdfd0de3 (diff) | |
| download | portable-1d36474726ce4d53120e2968209cdb892a194e82.tar.gz portable-1d36474726ce4d53120e2968209cdb892a194e82.tar.bz2 portable-1d36474726ce4d53120e2968209cdb892a194e82.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
Diffstat (limited to 'tests')
| -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) |
