diff options
| author | kinichiro <kinichiro.inoguchi@gmail.com> | 2016-04-04 11:28:46 +0900 |
|---|---|---|
| committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2016-04-04 14:27:43 +0900 |
| commit | 3207606f117fe4844c5eb18019a4f0939349ece7 (patch) | |
| tree | 9d245cfc79e840affb460a19f0d4aff943dd28e8 /tests | |
| parent | 8131b377bffdacb8789c78ef31160b3bf4ee054b (diff) | |
| download | portable-3207606f117fe4844c5eb18019a4f0939349ece7.tar.gz portable-3207606f117fe4844c5eb18019a4f0939349ece7.tar.bz2 portable-3207606f117fe4844c5eb18019a4f0939349ece7.zip | |
fix cmake on HP-UX
- CMakeLists.txt
* add OS specific compiler flags and library
* add checking size of time_t
* add checking memmem()
- tests/CMakeLists.txt
* add if(HAVE_MEMMEM) for explicit_bzero
* add checking SMALL_TIME_T for rfc5280time
- crypto/CMakeLists.txt
* add getentropy_hpux.c
- tls/CMakeLists.txt
* fix checking strsep
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3ca41a2..f98a266 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
| @@ -134,12 +134,13 @@ add_test(enginetest enginetest) | |||
| 134 | # explicit_bzero | 134 | # explicit_bzero |
| 135 | # explicit_bzero relies on SA_ONSTACK, which is unavailable on Windows | 135 | # explicit_bzero relies on SA_ONSTACK, which is unavailable on Windows |
| 136 | if(NOT CMAKE_HOST_WIN32) | 136 | if(NOT CMAKE_HOST_WIN32) |
| 137 | add_executable(explicit_bzero explicit_bzero.c) | 137 | if(HAVE_MEMMEM) |
| 138 | add_executable(explicit_bzero explicit_bzero.c) | ||
| 139 | else() | ||
| 140 | add_executable(explicit_bzero explicit_bzero.c memmem.c) | ||
| 141 | endif() | ||
| 138 | target_link_libraries(explicit_bzero ${OPENSSL_LIBS}) | 142 | target_link_libraries(explicit_bzero ${OPENSSL_LIBS}) |
| 139 | add_test(explicit_bzero explicit_bzero) | 143 | add_test(explicit_bzero explicit_bzero) |
| 140 | #if !HAVE_MEMMEM | ||
| 141 | #explicit_bzero_SOURCES += memmem.c | ||
| 142 | #endif | ||
| 143 | endif() | 144 | endif() |
| 144 | 145 | ||
| 145 | # exptest | 146 | # exptest |
| @@ -230,7 +231,11 @@ add_test(rc4test rc4test) | |||
| 230 | # rfc5280time | 231 | # rfc5280time |
| 231 | add_executable(rfc5280time rfc5280time.c) | 232 | add_executable(rfc5280time rfc5280time.c) |
| 232 | target_link_libraries(rfc5280time ${OPENSSL_LIBS}) | 233 | target_link_libraries(rfc5280time ${OPENSSL_LIBS}) |
| 233 | add_test(rfc5280time rfc5280time) | 234 | if(SMALL_TIME_T) |
| 235 | add_test(rfc5280time ${CMAKE_CURRENT_SOURCE_DIR}/rfc5280time_small.test) | ||
| 236 | else() | ||
| 237 | add_test(rfc5280time rfc5280time) | ||
| 238 | endif() | ||
| 234 | 239 | ||
| 235 | # rmdtest | 240 | # rmdtest |
| 236 | add_executable(rmdtest rmdtest.c) | 241 | add_executable(rmdtest rmdtest.c) |
