From d0221daff6a2dac582cf0239eb0b1930b8f8c1d3 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Thu, 25 Apr 2024 12:45:38 -0600 Subject: link crypto_test to the build --- .gitignore | 1 + tests/CMakeLists.txt | 6 ++++++ tests/Makefile.am | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index 329b8c0..9e27a4e 100644 --- a/.gitignore +++ b/.gitignore @@ -104,6 +104,7 @@ tests/bn_word* tests/callback* tests/cipher* tests/constraints* +tests/crypto_test* tests/ctlog.conf tests/*.crt tests/ec_point_conversion* 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) include_directories( . + ../crypto/ ../crypto/asn1 ../crypto/bio ../crypto/bn @@ -293,6 +294,11 @@ add_executable(constraints constraints.c) target_link_libraries(constraints ${OPENSSL_TEST_LIBS}) add_test(constraints constraints) +# crypto_test +add_executable(crypto_test crypto_test.c) +target_link_libraries(crypto_test ${OPENSSL_TEST_LIBS}) +add_test(crypto_test crypto_test) + # cttest add_executable(cttest cttest.c) 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 AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL +AM_CPPFLAGS += -I $(top_srcdir)/crypto/ AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 AM_CPPFLAGS += -I $(top_srcdir)/crypto/bio AM_CPPFLAGS += -I $(top_srcdir)/crypto/bn @@ -308,6 +309,11 @@ TESTS += constraints check_PROGRAMS += constraints constraints_SOURCES = constraints.c +# crypto_test +TESTS += crypto_test +check_PROGRAMS += crypto_test +crypto_test_SOURCES = crypto_test.c + # cttest TESTS += cttest check_PROGRAMS += cttest -- cgit v1.2.3-55-g6feb