aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-06-12 21:56:42 -0500
committerBrent Cook <busterb@gmail.com>2019-06-12 21:56:42 -0500
commitb1823997485db869bd02f1a32467008ba1f03eff (patch)
tree66c4cb148a3710934cadf04614075f441e4b2bc6
parentb3e2e713104298ded9e7ad69e33e0959ceca5f29 (diff)
parent5d686726ec5f3e55236bfdc4869138dc3a0c5f3b (diff)
downloadportable-b1823997485db869bd02f1a32467008ba1f03eff.tar.gz
portable-b1823997485db869bd02f1a32467008ba1f03eff.tar.bz2
portable-b1823997485db869bd02f1a32467008ba1f03eff.zip
Land #535, add regress bn_to_string
-rw-r--r--.gitignore1
-rw-r--r--tests/CMakeLists.txt7
-rw-r--r--tests/Makefile.am5
3 files changed, 13 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index ab4c1dd..38ea860 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,6 +57,7 @@ tests/asn1evp*
57tests/asn1time* 57tests/asn1time*
58tests/bnaddsub* 58tests/bnaddsub*
59tests/bn_rand_interval* 59tests/bn_rand_interval*
60tests/bn_to_string*
60tests/cipher* 61tests/cipher*
61tests/explicit_bzero* 62tests/explicit_bzero*
62tests/freenull* 63tests/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)
85 add_test(bntest bntest) 85 add_test(bntest bntest)
86endif() 86endif()
87 87
88# bn_to_string
89if(NOT BUILD_SHARED_LIBS)
90 add_executable(bn_to_string bn_to_string.c)
91 target_link_libraries(bn_to_string ${OPENSSL_LIBS})
92 add_test(bn_to_string bn_to_string)
93endif()
94
88# buffertest 95# buffertest
89if(NOT BUILD_SHARED_LIBS) 96if(NOT BUILD_SHARED_LIBS)
90 add_executable(buffertest buffertest.c) 97 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
93check_PROGRAMS += bntest 93check_PROGRAMS += bntest
94bntest_SOURCES = bntest.c 94bntest_SOURCES = bntest.c
95 95
96# bn_to_string
97TESTS += bn_to_string
98check_PROGRAMS += bn_to_string
99bn_to_string_SOURCES = bn_to_string.c
100
96# buffertest 101# buffertest
97TESTS += buffertest 102TESTS += buffertest
98buffertest_CPPFLAGS = $(AM_CPPFLAGS) 103buffertest_CPPFLAGS = $(AM_CPPFLAGS)