diff options
author | Brent Cook <bcook@openbsd.org> | 2016-05-02 01:58:18 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2016-05-02 01:58:18 -0500 |
commit | a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe (patch) | |
tree | 106c0df3da2b3032a5c01fcfebccf8d6de9c64d9 /tests | |
parent | 466e389d3f52c9e75cf4849669bca16e512ee110 (diff) | |
parent | bda62f7fe4ad3965f8f6e7f06838c76455340567 (diff) | |
download | portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.tar.gz portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.tar.bz2 portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.zip |
Land #189, Added extra cmake build options like autotools builds
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2e368c5..2935a82 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -9,8 +9,6 @@ include_directories( | |||
9 | ../apps/openssl/compat | 9 | ../apps/openssl/compat |
10 | ) | 10 | ) |
11 | 11 | ||
12 | set(ENV{srcdir} ${CMAKE_CURRENT_SOURCE_DIR}) | ||
13 | |||
14 | # aeadtest | 12 | # aeadtest |
15 | add_executable(aeadtest aeadtest.c) | 13 | add_executable(aeadtest aeadtest.c) |
16 | target_link_libraries(aeadtest ${OPENSSL_LIBS}) | 14 | target_link_libraries(aeadtest ${OPENSSL_LIBS}) |
@@ -24,7 +22,7 @@ add_test(aes_wrap aes_wrap) | |||
24 | 22 | ||
25 | # arc4randomforktest | 23 | # arc4randomforktest |
26 | # Windows/mingw does not have fork, but Cygwin does. | 24 | # Windows/mingw does not have fork, but Cygwin does. |
27 | if(NOT CMAKE_HOST_WIN32) | 25 | if(NOT CMAKE_HOST_WIN32 AND NOT CMAKE_SYSTEM_NAME MATCHES "MINGW") |
28 | add_executable(arc4randomforktest arc4randomforktest.c) | 26 | add_executable(arc4randomforktest arc4randomforktest.c) |
29 | target_link_libraries(arc4randomforktest ${OPENSSL_LIBS}) | 27 | target_link_libraries(arc4randomforktest ${OPENSSL_LIBS}) |
30 | add_test(arc4randomforktest ${CMAKE_CURRENT_SOURCE_DIR}/arc4randomforktest.sh) | 28 | add_test(arc4randomforktest ${CMAKE_CURRENT_SOURCE_DIR}/arc4randomforktest.sh) |
@@ -50,6 +48,14 @@ add_executable(bftest bftest.c) | |||
50 | target_link_libraries(bftest ${OPENSSL_LIBS}) | 48 | target_link_libraries(bftest ${OPENSSL_LIBS}) |
51 | add_test(bftest bftest) | 49 | add_test(bftest bftest) |
52 | 50 | ||
51 | # biotest | ||
52 | # the BIO tests rely on resolver results that are OS and environment-specific | ||
53 | if(ENABLE_EXTRATESTS) | ||
54 | add_executable(biotest biotest.c) | ||
55 | target_link_libraries(biotest ${OPENSSL_LIBS}) | ||
56 | add_test(biotest biotest) | ||
57 | endif() | ||
58 | |||
53 | # bntest | 59 | # bntest |
54 | add_executable(bntest bntest.c) | 60 | add_executable(bntest bntest.c) |
55 | target_link_libraries(bntest ${OPENSSL_LIBS}) | 61 | target_link_libraries(bntest ${OPENSSL_LIBS}) |
@@ -198,6 +204,15 @@ add_executable(pbkdf2 pbkdf2.c) | |||
198 | target_link_libraries(pbkdf2 ${OPENSSL_LIBS}) | 204 | target_link_libraries(pbkdf2 ${OPENSSL_LIBS}) |
199 | add_test(pbkdf2 pbkdf2) | 205 | add_test(pbkdf2 pbkdf2) |
200 | 206 | ||
207 | # pidwraptest | ||
208 | # pidwraptest relies on an OS-specific way to give out pids and is generally | ||
209 | # awkward on systems with slow fork | ||
210 | if(ENABLE_EXTRATESTS) | ||
211 | add_executable(pidwraptest pidwraptest.c) | ||
212 | target_link_libraries(pidwraptest ${OPENSSL_LIBS}) | ||
213 | add_test(pidwraptest ${CMAKE_CURRENT_SOURCE_DIR}/pidwraptest.sh) | ||
214 | endif() | ||
215 | |||
201 | # pkcs7test | 216 | # pkcs7test |
202 | add_executable(pkcs7test pkcs7test.c) | 217 | add_executable(pkcs7test pkcs7test.c) |
203 | target_link_libraries(pkcs7test ${OPENSSL_LIBS}) | 218 | target_link_libraries(pkcs7test ${OPENSSL_LIBS}) |