From 5d686726ec5f3e55236bfdc4869138dc3a0c5f3b Mon Sep 17 00:00:00 2001 From: kinichiro Date: Thu, 13 Jun 2019 10:15:28 +0900 Subject: Add regress bn_to_string --- .gitignore | 1 + tests/CMakeLists.txt | 7 +++++++ tests/Makefile.am | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index ab4c1dd..38ea860 100644 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,7 @@ tests/asn1evp* tests/asn1time* tests/bnaddsub* tests/bn_rand_interval* +tests/bn_to_string* tests/cipher* tests/explicit_bzero* tests/freenull* diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 25e2352..00dcd8b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -85,6 +85,13 @@ if(NOT BUILD_SHARED_LIBS) add_test(bntest bntest) endif() +# bn_to_string +if(NOT BUILD_SHARED_LIBS) + add_executable(bn_to_string bn_to_string.c) + target_link_libraries(bn_to_string ${OPENSSL_LIBS}) + add_test(bn_to_string bn_to_string) +endif() + # buffertest if(NOT BUILD_SHARED_LIBS) add_executable(buffertest buffertest.c) diff --git a/tests/Makefile.am b/tests/Makefile.am index bf1db36..e14257b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -93,6 +93,11 @@ bntest_CPPFLAGS = $(AM_CPPFLAGS) -ULIBRESSL_INTERNAL check_PROGRAMS += bntest bntest_SOURCES = bntest.c +# bn_to_string +TESTS += bn_to_string +check_PROGRAMS += bn_to_string +bn_to_string_SOURCES = bn_to_string.c + # buffertest TESTS += buffertest buffertest_CPPFLAGS = $(AM_CPPFLAGS) -- cgit v1.2.3-55-g6feb