summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorsangwan.kwon <sangwan.kwon@samsung.com>2016-05-11 10:25:56 +0900
committersangwan.kwon <sangwan.kwon@samsung.com>2016-05-11 14:35:31 +0900
commit93a4383419a348cb773f638776062648b5dc71d2 (patch)
tree7eb7977324f924d63cf27d052237949f797655de /tests
parent6b884475b0cedb1bf67d438fd4bb01d1ac2e0680 (diff)
downloadcert-checker-93a4383419a348cb773f638776062648b5dc71d2.tar.gz
cert-checker-93a4383419a348cb773f638776062648b5dc71d2.tar.bz2
cert-checker-93a4383419a348cb773f638776062648b5dc71d2.zip
Implement on-demand style about client-side
[AS-IS] * cert-checker was daemon. [TO-BE] * Change to on-demand style. * Add client library. Change-Id: Ia318bc8a724db1f50a50bd42aa4c8c94b078e287
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt6
-rw-r--r--tests/test_logic.cpp10
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index cf924e1..ff25260 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -95,6 +95,11 @@ ADD_EXECUTABLE(${TARGET_CERT_CHECKER_TESTS} ${CERT_CHECKER_TESTS_SOURCES})
ADD_EXECUTABLE(${TARGET_CERT_CHECKER_TESTS_LOGIC} ${CERT_CHECKER_TESTS_LOGIC_SOURCES})
ADD_EXECUTABLE(${TARGET_CERT_CHECKER_POPUP_TEST} ${CERT_CHECKER_POPUP_TEST_SOURCES})
+SET_TARGET_PROPERTIES(${TARGET_CERT_CHECKER_TESTS_LOGIC}
+ PROPERTIES
+ COMPILE_FLAGS "-D_GNU_SOURCE -fvisibility=default"
+)
+
TARGET_LINK_LIBRARIES(${TARGET_CERT_CHECKER_TESTS}
${TARGET_CERT_CHECKER_COMMON}
${CERT_CHECKER_TESTS_DEP_LIBRARIES}
@@ -105,6 +110,7 @@ TARGET_LINK_LIBRARIES(${TARGET_CERT_CHECKER_TESTS}
TARGET_LINK_LIBRARIES(${TARGET_CERT_CHECKER_TESTS_LOGIC}
${TARGET_CERT_CHECKER_COMMON}
+ ${TARGET_CERT_CHECKER_CLIENT}
${CERT_CHECKER_TESTS_DEP_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
boost_unit_test_framework
diff --git a/tests/test_logic.cpp b/tests/test_logic.cpp
index e471e99..5ddbd8c 100644
--- a/tests/test_logic.cpp
+++ b/tests/test_logic.cpp
@@ -30,6 +30,8 @@
#include <logic_.h>
#include <app_event_operators.h>
+#include "client/ocsp-client.h"
+
using namespace CCHECKER;
namespace {
@@ -53,6 +55,14 @@ std::string log_apps(std::list<app_t> &apps, std::list<app_t> buff)
BOOST_FIXTURE_TEST_SUITE(LOGIC_TEST, LogicWrapper)
+// TODO(sangwan.kwon) : seperate anothor test program
+BOOST_AUTO_TEST_CASE(client) {
+
+ CCHECKER::Client::OcspClient oc;
+ oc.request();
+
+}
+
BOOST_AUTO_TEST_CASE(logic_setup) {
BOOST_REQUIRE(setup() == NO_ERROR);