diff options
author | Theo Buehler <tb@openbsd.org> | 2024-04-25 12:45:38 -0600 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-04-25 12:45:38 -0600 |
commit | d0221daff6a2dac582cf0239eb0b1930b8f8c1d3 (patch) | |
tree | 385efa440300089d84fff96a0d5e663f25c228e8 /tests | |
parent | a8bd03a588988394b825bdcf71c9e4381b78213f (diff) | |
download | portable-d0221daff6a2dac582cf0239eb0b1930b8f8c1d3.tar.gz portable-d0221daff6a2dac582cf0239eb0b1930b8f8c1d3.tar.bz2 portable-d0221daff6a2dac582cf0239eb0b1930b8f8c1d3.zip |
link crypto_test to the build
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/Makefile.am | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 005f651..e1e4a9c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -2,6 +2,7 @@ add_definitions(-DLIBRESSL_CRYPTO_INTERNAL) | |||
2 | 2 | ||
3 | include_directories( | 3 | include_directories( |
4 | . | 4 | . |
5 | ../crypto/ | ||
5 | ../crypto/asn1 | 6 | ../crypto/asn1 |
6 | ../crypto/bio | 7 | ../crypto/bio |
7 | ../crypto/bn | 8 | ../crypto/bn |
@@ -293,6 +294,11 @@ add_executable(constraints constraints.c) | |||
293 | target_link_libraries(constraints ${OPENSSL_TEST_LIBS}) | 294 | target_link_libraries(constraints ${OPENSSL_TEST_LIBS}) |
294 | add_test(constraints constraints) | 295 | add_test(constraints constraints) |
295 | 296 | ||
297 | # crypto_test | ||
298 | add_executable(crypto_test crypto_test.c) | ||
299 | target_link_libraries(crypto_test ${OPENSSL_TEST_LIBS}) | ||
300 | add_test(crypto_test crypto_test) | ||
301 | |||
296 | # cttest | 302 | # cttest |
297 | add_executable(cttest cttest.c) | 303 | add_executable(cttest cttest.c) |
298 | target_link_libraries(cttest ${OPENSSL_TEST_LIBS}) | 304 | target_link_libraries(cttest ${OPENSSL_TEST_LIBS}) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 3aa7489..2f14f8f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -6,6 +6,7 @@ include $(top_srcdir)/Makefile.am.common | |||
6 | 6 | ||
7 | AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL | 7 | AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL |
8 | 8 | ||
9 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/ | ||
9 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 | 10 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 |
10 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/bio | 11 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/bio |
11 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/bn | 12 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/bn |
@@ -308,6 +309,11 @@ TESTS += constraints | |||
308 | check_PROGRAMS += constraints | 309 | check_PROGRAMS += constraints |
309 | constraints_SOURCES = constraints.c | 310 | constraints_SOURCES = constraints.c |
310 | 311 | ||
312 | # crypto_test | ||
313 | TESTS += crypto_test | ||
314 | check_PROGRAMS += crypto_test | ||
315 | crypto_test_SOURCES = crypto_test.c | ||
316 | |||
311 | # cttest | 317 | # cttest |
312 | TESTS += cttest | 318 | TESTS += cttest |
313 | check_PROGRAMS += cttest | 319 | check_PROGRAMS += cttest |