aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2024-08-06 16:46:10 +0200
committerTheo Buehler <tb@openbsd.org>2024-08-11 15:32:32 +0200
commitdc710c5f64c377ea47477e6d4d251b7a7bf22a78 (patch)
tree11f1cc57d36133b7bce769b1bc80015dd26a8fef
parentec3abe7b9b733500911fdf4d056ce6181c74da6b (diff)
downloadportable-dc710c5f64c377ea47477e6d4d251b7a7bf22a78.tar.gz
portable-dc710c5f64c377ea47477e6d4d251b7a7bf22a78.tar.bz2
portable-dc710c5f64c377ea47477e6d4d251b7a7bf22a78.zip
... and tests
-rw-r--r--tests/CMakeLists.txt22
-rw-r--r--tests/Makefile.am41
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
21if(HOST_AARCH64)
22 include_directories(../crypto/arch/aarch64/)
23elseif(HOST_ARM)
24 include_directories(../crypto/arch/arm/)
25elseif(HOST_I386)
26 include_directories(../crypto/arch/i386/)
27elseif(HOST_MIPS64)
28 include_directories(../crypto/arch/mips64)
29elseif(HOST_MIPS)
30 # XXX - can this go away? the directory doesn't exist...
31elseif(HOST_POWERPC)
32 include_directories(../crypto/arch/powerpc)
33elseif(HOST_POWERPC64)
34 include_directories(../crypto/arch/powerpc64)
35elseif(HOST_RISCV64)
36 include_directories(../crypto/arch/riscv64)
37elseif(HOST_SPARC64)
38 include_directories(../crypto/arch/sparc64)
39elseif(HOST_X86_64)
40 include_directories(../crypto/arch/amd64)
41endif()
42
21add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../cert.pem\") 43add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_CURRENT_SOURCE_DIR}/../cert.pem\")
22 44
23file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} TEST_SOURCE_DIR) 45file(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
19AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat 19AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat
20AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\" 20AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\"
21 21
22# arch
23if HOST_AARCH64
24AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/aarch64/
25endif
26
27if HOST_ARM
28AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/arm/
29endif
30
31if HOST_I386
32AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/i386/
33endif
34
35# XXX - do we still need this?
36if HOST_MIPS
37endif
38
39if HOST_MIPS64
40AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/mips64/
41endif
42
43if HOST_POWERPC
44AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/powerpc/
45endif
46
47if HOST_POWERPC64
48AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/powerpc64/
49endif
50
51if HOST_RISCV64
52AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/riscv64/
53endif
54
55if HOST_SPARC64
56AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/sparc64/
57endif
58
59if HOST_X86_64
60AM_CPPFLAGS += -I$(top_srcdir)/crypto/arch/amd64/
61endif
62
22noinst_LTLIBRARIES = libtest.la 63noinst_LTLIBRARIES = libtest.la
23libtest_la_LIBADD = $(libcrypto_la_objects) 64libtest_la_LIBADD = $(libcrypto_la_objects)
24libtest_la_LIBADD += $(libcompat_la_objects) 65libtest_la_LIBADD += $(libcompat_la_objects)