diff options
| author | kinichiro <kinichiro.inoguchi@gmail.com> | 2016-08-12 16:27:18 +0900 |
|---|---|---|
| committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2016-08-12 16:27:18 +0900 |
| commit | fef54aef369f0ea48d82d77ceb9a8c128f856384 (patch) | |
| tree | cfaf4f082bc6e03cf791a3ad83e25ad1f58e7794 /tests | |
| parent | 36aafbb2410a9a0da0c83c32499d3dcb6e5d2025 (diff) | |
| download | portable-fef54aef369f0ea48d82d77ceb9a8c128f856384.tar.gz portable-fef54aef369f0ea48d82d77ceb9a8c128f856384.tar.bz2 portable-fef54aef369f0ea48d82d77ceb9a8c128f856384.zip | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | tests/Makefile.am | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c44e876..a7d2fba 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
| @@ -9,6 +9,8 @@ include_directories( | |||
| 9 | ../apps/openssl/compat | 9 | ../apps/openssl/compat |
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../apps/openssl/cert.pem\") | ||
| 13 | |||
| 12 | # aeadtest | 14 | # aeadtest |
| 13 | add_executable(aeadtest aeadtest.c) | 15 | add_executable(aeadtest aeadtest.c) |
| 14 | target_link_libraries(aeadtest ${OPENSSL_LIBS}) | 16 | target_link_libraries(aeadtest ${OPENSSL_LIBS}) |
| @@ -196,15 +198,9 @@ add_test(mont mont) | |||
| 196 | 198 | ||
| 197 | # ocsp_test | 199 | # ocsp_test |
| 198 | if(ENABLE_EXTRATESTS) | 200 | 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() | ||
| 204 | add_executable(ocsp_test ocsp_test.c) | 201 | add_executable(ocsp_test ocsp_test.c) |
| 205 | target_link_libraries(ocsp_test ${OPENSSL_LIBS}) | 202 | target_link_libraries(ocsp_test ${OPENSSL_LIBS}) |
| 206 | add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) | 203 | add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) |
| 207 | set_tests_properties(ocsptest PROPERTIES ENVIRONMENT "srcdir=${CMAKE_CURRENT_SOURCE_DIR}") | ||
| 208 | endif() | 204 | endif() |
| 209 | 205 | ||
| 210 | # optionstest | 206 | # optionstest |
diff --git a/tests/Makefile.am b/tests/Makefile.am index c229b66..aad86d9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
| @@ -5,6 +5,7 @@ AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 | |||
| 5 | AM_CPPFLAGS += -I $(top_srcdir)/ssl | 5 | AM_CPPFLAGS += -I $(top_srcdir)/ssl |
| 6 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl | 6 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl |
| 7 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat | 7 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat |
| 8 | AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/apps/openssl/cert.pem\" | ||
| 8 | 9 | ||
| 9 | LDADD = $(PLATFORM_LDADD) $(PROG_LDADD) | 10 | LDADD = $(PLATFORM_LDADD) $(PROG_LDADD) |
| 10 | LDADD += $(abs_top_builddir)/ssl/libssl.la | 11 | LDADD += $(abs_top_builddir)/ssl/libssl.la |
