Include testsuites in devel package. 55/209355/5
authorHyunsoo Park <hance.park@samsung.com>
Fri, 5 Jul 2019 06:05:58 +0000 (15:05 +0900)
committerHyunsoo Park <hance.park@samsung.com>
Mon, 8 Jul 2019 07:01:26 +0000 (16:01 +0900)
'scmirroring_test' and 'scmirroring_sink_test' testsuites are included in 'devel' package for convinient testing.

Change-Id: Id7bf03141232a159c229f92402aba8f00336c407
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
CMakeLists.txt
packaging/capi-media-screen-mirroring.spec
test/CMakeLists.txt
test_sink/CMakeLists.txt

index 4640a66edea33f2e7bc384f7a8aa9fbdd89cb443..411dd86f66069d79aaf96d3b96c03174a8b97d2c 100644 (file)
@@ -90,7 +90,7 @@ ADD_CUSTOM_COMMAND(
         DEPENDS clean
         COMMENT "distribution clean"
         COMMAND find
-        ARGS    . 
+        ARGS    .
         -not -name config.cmake -and \(
         -name tester.c -or
         -name Testing -or
index b04ac974f049fd4024288cfeac3808b979aea2f4..067aae265017feb0946c089717f2107807d8b325 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-screen-mirroring
 Summary:    A screen mirroring library in Tizen C API
-Version:    0.2.2
+Version:    0.2.3
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
@@ -43,10 +43,17 @@ Group: Development/Multimedia
 %description gcov
 Collection of files related to Line Coverage. It is teseted as gcov for a screen mirroring library in Tizen native API
 %endif
+
+%package tool
+Summary: Test related files for Screen Mirroring library in Tizen native API
+Group: Development/Multimedia
+
+%description tool
+Collection of files related to test of Screen Mirroring. It has test suites of Source and Sink of Screen Mirroring.
+
 %prep
 %setup -q
 
-
 %build
 export CFLAGS+=" -Wextra -Wno-array-bounds"
 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
@@ -124,3 +131,7 @@ install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
 %files gcov
 %{_datadir}/gcov/obj/*
 %endif
+
+%files tool
+%{_bindir}/scmirroring_test
+%{_bindir}/scmirroring_sink_test
index ac2374eb57ae2e4ec21019f57bb96c236e4c260e..0f305162716c9e7004ca95533e69ca3bec1f987e 100755 (executable)
@@ -15,4 +15,7 @@ FOREACH(src ${sources})
     MESSAGE("${src_name}")
     ADD_EXECUTABLE(${src_name} ${src})
     TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
+    IF(${src_name} STREQUAL "scmirroring_test")
+        INSTALL(TARGETS ${src_name} DESTINATION ${TZ_SYS_BIN})
+    ENDIF()
 ENDFOREACH()
index 6e3bc9400d4e5b8b9f90564b6cbab3126d269376..bb152ed8963ddd47250f5120c120c16dc0087e09 100755 (executable)
@@ -15,4 +15,7 @@ FOREACH(src ${sources})
     MESSAGE("${src_name}")
     ADD_EXECUTABLE(${src_name} ${src})
     TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
+    IF(${src_name} STREQUAL "scmirroring_sink_test")
+        INSTALL(TARGETS ${src_name} DESTINATION ${TZ_SYS_BIN})
+    ENDIF()
 ENDFOREACH()