diff options
author | Theo Buehler <tb@openbsd.org> | 2024-08-06 16:46:10 +0200 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-08-11 15:32:32 +0200 |
commit | dc710c5f64c377ea47477e6d4d251b7a7bf22a78 (patch) | |
tree | 11f1cc57d36133b7bce769b1bc80015dd26a8fef | |
parent | ec3abe7b9b733500911fdf4d056ce6181c74da6b (diff) | |
download | portable-dc710c5f64c377ea47477e6d4d251b7a7bf22a78.tar.gz portable-dc710c5f64c377ea47477e6d4d251b7a7bf22a78.tar.bz2 portable-dc710c5f64c377ea47477e6d4d251b7a7bf22a78.zip |
... and tests
-rw-r--r-- | tests/CMakeLists.txt | 22 | ||||
-rw-r--r-- | tests/Makefile.am | 41 |
2 files changed, 63 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f79f69e..e930236 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -18,6 +18,28 @@ include_directories( | |||
18 | ../include/compat | 18 | ../include/compat |
19 | ) | 19 | ) |
20 | 20 | ||
21 | if(HOST_AARCH64) | ||
22 | include_directories(../crypto/arch/aarch64/) | ||
23 | elseif(HOST_ARM) | ||
24 | include_directories(../crypto/arch/arm/) | ||
25 | elseif(HOST_I386) | ||
26 | include_directories(../crypto/arch/i386/) | ||
27 | elseif(HOST_MIPS64) | ||
28 | include_directories(../crypto/arch/mips64) | ||
29 | elseif(HOST_MIPS) | ||
30 | # XXX - can this go away? the directory doesn't exist... | ||
31 | elseif(HOST_POWERPC) | ||
32 | include_directories(../crypto/arch/powerpc) | ||
33 | elseif(HOST_POWERPC64) | ||
34 | include_directories(../crypto/arch/powerpc64) | ||
35 | elseif(HOST_RISCV64) | ||
36 | include_directories(../crypto/arch/riscv64) | ||
37 | elseif(HOST_SPARC64) | ||
38 | include_directories(../crypto/arch/sparc64) | ||
39 | elseif(HOST_X86_64) | ||
40 | include_directories(../crypto/arch/amd64) | ||
41 | endif() | ||
42 | |||
21 | add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../cert.pem\") | 43 | add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../cert.pem\") |
22 | 44 | ||
23 | file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} TEST_SOURCE_DIR) | 45 | file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} TEST_SOURCE_DIR) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 190e4eb..5388126 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -19,6 +19,47 @@ AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl | |||
19 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat | 19 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat |
20 | AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\" | 20 | AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\" |
21 | 21 | ||
22 | # arch | ||
23 | if HOST_AARCH64 | ||
24 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/aarch64/ | ||
25 | endif | ||
26 | |||
27 | if HOST_ARM | ||
28 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/arm/ | ||
29 | endif | ||
30 | |||
31 | if HOST_I386 | ||
32 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/i386/ | ||
33 | endif | ||
34 | |||
35 | # XXX - do we still need this? | ||
36 | if HOST_MIPS | ||
37 | endif | ||
38 | |||
39 | if HOST_MIPS64 | ||
40 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/mips64/ | ||
41 | endif | ||
42 | |||
43 | if HOST_POWERPC | ||
44 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/powerpc/ | ||
45 | endif | ||
46 | |||
47 | if HOST_POWERPC64 | ||
48 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/powerpc64/ | ||
49 | endif | ||
50 | |||
51 | if HOST_RISCV64 | ||
52 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/riscv64/ | ||
53 | endif | ||
54 | |||
55 | if HOST_SPARC64 | ||
56 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/sparc64/ | ||
57 | endif | ||
58 | |||
59 | if HOST_X86_64 | ||
60 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/amd64/ | ||
61 | endif | ||
62 | |||
22 | noinst_LTLIBRARIES = libtest.la | 63 | noinst_LTLIBRARIES = libtest.la |
23 | libtest_la_LIBADD = $(libcrypto_la_objects) | 64 | libtest_la_LIBADD = $(libcrypto_la_objects) |
24 | libtest_la_LIBADD += $(libcompat_la_objects) | 65 | libtest_la_LIBADD += $(libcompat_la_objects) |