Add unit test for OpenSSL manual initialization
This test checks whether Thrift leaves OpenSSL functionality available
after the last TSSLSocketFactory is destroyed when manual
initialization is set. It uses the EVP_get_digestbyname function as
an example function that requires OpenSSL initialization to work
properly.
Signed-off-by: Alan Dunn <amdunn@gmail.com>
Signed-off-by: Roger Meier <roger@apache.org>
diff --git a/lib/cpp/test/Makefile.am b/lib/cpp/test/Makefile.am
index 3c97452..6779ac6 100755
--- a/lib/cpp/test/Makefile.am
+++ b/lib/cpp/test/Makefile.am
@@ -64,7 +64,8 @@
ZlibTest \
TFileTransportTest \
UnitTests \
- link_test
+ link_test \
+ OpenSSLManualInitTest
# disable these test ... too strong
# processor_test
# concurrency_test
@@ -215,6 +216,14 @@
$(BOOST_LDFLAGS) \
-levent \
-l:libboost_unit_test_framework.a
+
+OpenSSLManualInitTest_SOURCES = \
+ OpenSSLManualInitTest.cpp
+
+OpenSSLManualInitTest_LDADD = \
+ $(top_builddir)/lib/cpp/libthrift.la \
+ -l:libboost_unit_test_framework.a
+
#
# Common thrift code generation rules
#