From eceebc3ba6582b206d098aa91261a30f147d5cff Mon Sep 17 00:00:00 2001 From: Hyihong Chae Date: Tue, 11 Jul 2017 16:13:31 +0900 Subject: [PATCH] added unit test console app to devel package for Building Block. Change-Id: Ice3170ffe9860009b7c27727f2735496c41eb870 Signed-off-by: HyiHong Chae --- packaging/capi-network-smartcard.spec | 3 ++- test/CMakeLists.txt | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/capi-network-smartcard.spec b/packaging/capi-network-smartcard.spec index 0dc809e..677bc1b 100755 --- a/packaging/capi-network-smartcard.spec +++ b/packaging/capi-network-smartcard.spec @@ -1,6 +1,6 @@ Name: capi-network-smartcard Summary: A Smartcard library in Native API -Version: 0.0.10 +Version: 0.0.11 Release: 1 Group: Network & Connectivity/Smartcard License: Apache-2.0 @@ -59,3 +59,4 @@ rm -rf %{buildroot} %{_includedir}/*.h %{_libdir}/pkgconfig/*.pc %{_libdir}/libcapi-network-smartcard.so +%{_bindir}/smartcard_unit_test \ No newline at end of file diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 474d37d..0d1f21e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,5 @@ +PROJECT(smartcard_unit_test C) + SET(fw_test "${fw_name}-test") INCLUDE(FindPkgConfig) @@ -16,3 +18,5 @@ FOREACH(src ${sources}) ADD_EXECUTABLE(${src_name} ${src}) TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS}) ENDFOREACH() + +INSTALL(TARGETS smartcard_unit_test RUNTIME DESTINATION bin/) -- 2.34.1