aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2016-08-13 11:52:06 -0500
committerBrent Cook <bcook@openbsd.org>2016-08-13 11:52:06 -0500
commit8edd509e2c42219ec1104913e6597332b9e5f2e9 (patch)
tree9630f82267574a26639c881ba1bec7a054fafa5f /tests
parent439de92dc6a11c24f4a306f925e15d701e6816b0 (diff)
parentfef54aef369f0ea48d82d77ceb9a8c128f856384 (diff)
downloadportable-8edd509e2c42219ec1104913e6597332b9e5f2e9.tar.gz
portable-8edd509e2c42219ec1104913e6597332b9e5f2e9.tar.bz2
portable-8edd509e2c42219ec1104913e6597332b9e5f2e9.zip
Land #217, Set _PATH_SSL_CA_FILE to the tarball internal path for regression tests
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt8
-rw-r--r--tests/Makefile.am1
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
12add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../apps/openssl/cert.pem\")
13
12# aeadtest 14# aeadtest
13add_executable(aeadtest aeadtest.c) 15add_executable(aeadtest aeadtest.c)
14target_link_libraries(aeadtest ${OPENSSL_LIBS}) 16target_link_libraries(aeadtest ${OPENSSL_LIBS})
@@ -196,15 +198,9 @@ add_test(mont mont)
196 198
197# ocsp_test 199# ocsp_test
198if(ENABLE_EXTRATESTS) 200if(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}")
208endif() 204endif()
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
5AM_CPPFLAGS += -I $(top_srcdir)/ssl 5AM_CPPFLAGS += -I $(top_srcdir)/ssl
6AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl 6AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl
7AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat 7AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat
8AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/apps/openssl/cert.pem\"
8 9
9LDADD = $(PLATFORM_LDADD) $(PROG_LDADD) 10LDADD = $(PLATFORM_LDADD) $(PROG_LDADD)
10LDADD += $(abs_top_builddir)/ssl/libssl.la 11LDADD += $(abs_top_builddir)/ssl/libssl.la